| 1723 | } |
| 1724 | |
| 1725 | static 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 | |
| 1738 | static void opencl_frames_uninit(AVHWFramesContext *hwfc) |
| 1739 | { |
nothing calls this directly
no test coverage detected