[FFmpeg-devel] [PATCH v4 0/1] avfilter/buffersink: Add user video frame allocation
John Cox
jc at kynesim.co.uk
Tue Jul 25 14:14:16 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 v3:
Nits picked
Added audio buffer functions too
John Cox (1):
avfilter/buffersink: Add video frame allocation callback
libavfilter/buffersink.c | 38 ++++++++++++++++++++++++++++++
libavfilter/buffersink.h | 51 ++++++++++++++++++++++++++++++++++++++++
libavfilter/version.h | 2 +-
3 files changed, 90 insertions(+), 1 deletion(-)
--
2.39.2
More information about the ffmpeg-devel
mailing list