OSDN Git Service

Make avfilter_get_video_buffer() recursive.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Oct 2009 08:16:18 +0000 (08:16 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Oct 2009 08:16:18 +0000 (08:16 +0000)
commit0eb4ff9e37f2b44bcf143c9b503609cea5db13cb
tree9d4e1147fb92cb99fe7828d562c2990b5183ccce
parent1f09ab5e6665d0cae34fe4b378f16268e712e748
Make avfilter_get_video_buffer() recursive.

When called on a link with a filter whose destination pad has not a
get_video_buffer callback defined, it will call
avfilter_get_video_buffer() on the first output link of the
destination filer, rather than use avfilter_default_get_buffer(), so
the video buffer can be allocated forward in the filterchain.

Also add the w and h parameters to avfilter_get_video_buffer(), as the
minimum width and height requested by each filter in the filterchain
may change, this allows for example a memcpy-less pad filter.

This change breaks API / ABI backward compatibility.

See the thread:
"[PATCH] Implement recusive avfilter_get_video_buffer()".

Originally committed as revision 20272 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/defaults.c