| 312 | } |
| 313 | |
| 314 | static BackendAvailability ProbeBackends(const BenchmarkOptions& options) { |
| 315 | BackendAvailability availability; |
| 316 | availability.vaapi = CanCreateHwDevice(AV_HWDEVICE_TYPE_VAAPI, options.vaapi_device.c_str()); |
| 317 | availability.cuda = CanCreateHwDevice(AV_HWDEVICE_TYPE_CUDA, nullptr); |
| 318 | availability.vulkan_runtime = CanCreateHwDevice(AV_HWDEVICE_TYPE_VULKAN, nullptr); |
| 319 | return availability; |
| 320 | } |
| 321 | |
| 322 | static RenderLayout ComputeRenderLayout(const BenchmarkOptions& options, int input_width, int input_height) { |
| 323 | RenderLayout layout; |
no test coverage detected