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

Function opencl_frames_init

libavutil/hwcontext_opencl.c:1725–1736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723}
1724
1725static int opencl_frames_init(AVHWFramesContext *hwfc)
1726{
1727 if (!hwfc->pool) {
1728 ffhwframesctx(hwfc)->pool_internal =
1729 av_buffer_pool_init2(sizeof(cl_mem), hwfc,
1730 &opencl_pool_alloc, NULL);
1731 if (!ffhwframesctx(hwfc)->pool_internal)
1732 return AVERROR(ENOMEM);
1733 }
1734
1735 return opencl_frames_init_command_queue(hwfc);
1736}
1737
1738static void opencl_frames_uninit(AVHWFramesContext *hwfc)
1739{

Callers

nothing calls this directly

Calls 3

ffhwframesctxFunction · 0.85
av_buffer_pool_init2Function · 0.85

Tested by

no test coverage detected