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

Function CanCreateHwDevice

examples/VulkanBenchmark.cpp:306–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306static bool CanCreateHwDevice(AVHWDeviceType type, const char* device_name = nullptr) {
307 AVBufferRef* device = nullptr;
308 const int result = av_hwdevice_ctx_create(&device, type, device_name, nullptr, 0);
309 if (device)
310 av_buffer_unref(&device);
311 return result >= 0;
312}
313
314static BackendAvailability ProbeBackends(const BenchmarkOptions& options) {
315 BackendAvailability availability;

Callers 1

ProbeBackendsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected