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

Function vulkan_get_buffer

libavutil/hwcontext_vulkan.c:3202–3214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3200}
3201
3202static 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
3216static int vulkan_transfer_get_formats(AVHWFramesContext *hwfc,
3217 enum AVHWFrameTransferDirection dir,

Callers

nothing calls this directly

Calls 1

av_buffer_pool_getFunction · 0.85

Tested by

no test coverage detected