mbox series

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

Message ID 20230722170357.964313-1-jc@kynesim.co.uk
Headers show
Series avfilter/buffersink: Add user video frame allocation | expand

Message

John Cox July 22, 2023, 5:03 p.m. UTC
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 - but for real this time

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(-)