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

Function vulkan_device_uninit

libavutil/hwcontext_vulkan.c:1775–1786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1773}
1774
1775static void vulkan_device_uninit(AVHWDeviceContext *ctx)
1776{
1777 VulkanDevicePriv *p = ctx->hwctx;
1778
1779 for (uint32_t i = 0; i < p->nb_tot_qfs; i++) {
1780 pthread_mutex_destroy(p->qf_mutex[i]);
1781 av_freep(&p->qf_mutex[i]);
1782 }
1783 av_freep(&p->qf_mutex);
1784
1785 ff_vk_uninit(&p->vkctx);
1786}
1787
1788static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
1789 VulkanDeviceSelection *dev_select,

Callers

nothing calls this directly

Calls 3

av_freepFunction · 0.85
ff_vk_uninitFunction · 0.85
pthread_mutex_destroyFunction · 0.50

Tested by

no test coverage detected