MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / ProbeBackends

Function ProbeBackends

examples/VulkanBenchmark.cpp:314–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static 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
322static RenderLayout ComputeRenderLayout(const BenchmarkOptions& options, int input_width, int input_height) {
323 RenderLayout layout;

Callers 1

mainFunction · 0.85

Calls 1

CanCreateHwDeviceFunction · 0.85

Tested by

no test coverage detected