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

Function vulkan_frames_uninit

libavutil/hwcontext_vulkan.c:2960–2976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2958}
2959
2960static void vulkan_frames_uninit(AVHWFramesContext *hwfc)
2961{
2962 VulkanDevicePriv *p = hwfc->device_ctx->hwctx;
2963 VulkanFramesPriv *fp = hwfc->hwctx;
2964
2965 if (fp->modifier_info) {
2966 if (fp->modifier_info->pDrmFormatModifiers)
2967 av_freep(&fp->modifier_info->pDrmFormatModifiers);
2968 av_freep(&fp->modifier_info);
2969 }
2970
2971 ff_vk_exec_pool_free(&p->vkctx, &fp->compute_exec);
2972 ff_vk_exec_pool_free(&p->vkctx, &fp->upload_exec);
2973 ff_vk_exec_pool_free(&p->vkctx, &fp->download_exec);
2974
2975 av_buffer_pool_uninit(&fp->tmp);
2976}
2977
2978static int vulkan_frames_init(AVHWFramesContext *hwfc)
2979{

Callers

nothing calls this directly

Calls 3

av_freepFunction · 0.85
ff_vk_exec_pool_freeFunction · 0.85
av_buffer_pool_uninitFunction · 0.85

Tested by

no test coverage detected