| 2148 | } |
| 2149 | |
| 2150 | static 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 | |
| 2166 | static int vulkan_device_derive(AVHWDeviceContext *ctx, |
| 2167 | AVHWDeviceContext *src_ctx, |
nothing calls this directly
no test coverage detected