[FFmpeg-devel] [PATCH v2 0/1] avfilter/buffersink: Add user video frame allocation

John Cox jc at kynesim.co.uk
Sat Jul 22 19:41:56 EEST 2023


This patch adds the ability for the user to allocate frames rather than
being forced to use avfilters default allocator.

This useful for applications like Kodi that wish to be able to control
how the final filter stage frame is allocated so that it is compatible
with whatever it wishes to do next e.g. allocate a dmabuf backed frame
for direct display via DRM. This is similar to the facility provided
by get_buffer2 in avcodec.

Changes from v1:
Style fixes

John Cox (1):
  avfilter/buffersink: Add video frame allocation callback

 libavfilter/buffersink.c | 21 +++++++++++++++++++++
 libavfilter/buffersink.h | 27 +++++++++++++++++++++++++++
 libavfilter/version.h    |  2 +-
 3 files changed, 49 insertions(+), 1 deletion(-)

-- 
2.39.2



More information about the ffmpeg-devel mailing list