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

Function vk_get_dpb_pool

libavcodec/vulkan_decode.c:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static AVFrame *vk_get_dpb_pool(FFVulkanDecodeShared *ctx)
160{
161 int err;
162 AVFrame *avf = av_frame_alloc();
163 if (!avf)
164 return NULL;
165
166 err = av_hwframe_get_buffer(ctx->common.dpb_hwfc_ref, avf, 0x0);
167 if (err < 0)
168 av_frame_free(&avf);
169
170 return avf;
171}
172
173static void init_frame(FFVulkanDecodeContext *dec, FFVulkanDecodePicture *vkpic)
174{

Callers 3

ff_vk_decode_initFunction · 0.85

Calls 3

av_frame_allocFunction · 0.85
av_hwframe_get_bufferFunction · 0.85
av_frame_freeFunction · 0.85

Tested by

no test coverage detected