[FFmpeg-devel] [PATCH] Implement recusive avfilter_get_video_buffer()

Stefano Sabatini stefano.sabatini-lala
Sun Oct 4 18:09:15 CEST 2009


Hi all,

as thoroughly discussed in the "libavfilter-soc: implement pad
filter":

http://thread.gmane.org/20091003160337.GO2768 at MichaelsNB

attached patch *against the main SVN repo*, implements support to
recursive get_video_buffer() requests.

This allows a filter to request a buffer which is allocated by the
get_video_buffer() of a filter next in the filterchain.

This changes puts the base for making it possible possible direct
rendering (in the case the buffer is allocated for example by a sink
at the end of the chain, which requests a buffer directly to the
display system / the graphic GPU).

Also this makes possible to implement a memcpy-less pad filter, as the
buffer request is processed through all the filterchain, so the
dimensions of the requested buffer may change when recurring the
get_video_buffer() invokation from one filter to the next one.

I'm also providing the already proposed patch for some regression
tests (to directly apply to the soc repo), and a patch to update the
current filters in the soc repo, and the pad filter I implemented
based on this patch, which *is not supposed to be reviewed in this
thread*.

Regards.
-- 
FFmpeg = Fantastic and Fundamental Mastodontic Ponderous Ecumenical God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavfi-recursive-get-video-buffer.patch
Type: text/x-diff
Size: 5141 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091004/0d54cba5/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03_build_system.diff
Type: text/x-diff
Size: 2967 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091004/0d54cba5/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavfi-recursive-get-video-buffer-update.patch
Type: text/x-diff
Size: 6968 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091004/0d54cba5/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pad-implement.patch
Type: text/x-diff
Size: 16581 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091004/0d54cba5/attachment-0002.patch>



More information about the ffmpeg-devel mailing list