| 3200 | } |
| 3201 | |
| 3202 | static int vulkan_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) |
| 3203 | { |
| 3204 | frame->buf[0] = av_buffer_pool_get(hwfc->pool); |
| 3205 | if (!frame->buf[0]) |
| 3206 | return AVERROR(ENOMEM); |
| 3207 | |
| 3208 | frame->data[0] = frame->buf[0]->data; |
| 3209 | frame->format = AV_PIX_FMT_VULKAN; |
| 3210 | frame->width = hwfc->width; |
| 3211 | frame->height = hwfc->height; |
| 3212 | |
| 3213 | return 0; |
| 3214 | } |
| 3215 | |
| 3216 | static int vulkan_transfer_get_formats(AVHWFramesContext *hwfc, |
| 3217 | enum AVHWFrameTransferDirection dir, |
nothing calls this directly
no test coverage detected