| 87 | }; |
| 88 | |
| 89 | int init() { |
| 90 | auto status = cuda_load_functions(&cdf, nullptr); |
| 91 | if (status) { |
| 92 | BOOST_LOG(error) << "Couldn't load cuda: "sv << status; |
| 93 | |
| 94 | return -1; |
| 95 | } |
| 96 | |
| 97 | CU_CHECK(cdf->cuInit(0), "Couldn't initialize cuda"); |
| 98 | |
| 99 | return 0; |
| 100 | } |
| 101 | |
| 102 | class cuda_t: public platf::avcodec_encode_device_t { |
| 103 | public: |
no test coverage detected