Make avfilter_get_video_buffer() recursive.
commit13051632ac995ffe393ecaaac51393bcc99c59b2
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 18 Oct 2009 08:16:18 +0000 (18 08:16 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 18 Oct 2009 08:16:18 +0000 (18 08:16 +0000)
tree72086b787307afa285afdebc9e1238b2edbc79b7
parentddc2c8648e4931e8250749e9f13ada488a550016
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 heigth 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()".

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20272 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/defaults.c