MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / vulkan_device_create

Function vulkan_device_create

libavutil/hwcontext_vulkan.c:2150–2164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2148}
2149
2150static int vulkan_device_create(AVHWDeviceContext *ctx, const char *device,
2151 AVDictionary *opts, int flags)
2152{
2153 VulkanDeviceSelection dev_select = { 0 };
2154 if (device && device[0]) {
2155 char *end = NULL;
2156 dev_select.index = strtol(device, &end, 10);
2157 if (end == device) {
2158 dev_select.index = 0;
2159 dev_select.name = device;
2160 }
2161 }
2162
2163 return vulkan_device_create_internal(ctx, &dev_select, 0, opts, flags);
2164}
2165
2166static int vulkan_device_derive(AVHWDeviceContext *ctx,
2167 AVHWDeviceContext *src_ctx,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected