[FFmpeg-devel] [PATCH] libavfilter-soc: implement pad filter

Stefano Sabatini stefano.sabatini-lala
Tue May 19 02:09:53 CEST 2009


On date Monday 2009-05-18 23:49:50 +0200, Stefano Sabatini encoded:
> On date Sunday 2009-05-17 13:14:22 +0200, Stefano Sabatini encoded:
> > On date Monday 2009-05-11 19:17:51 +0200, Vitor Sessak encoded:
> [...]
> > I'm going to try this approach:
> > int request_frame(AVFilterLink *link, int width, int height, int left, int top);
> > picref *avfilter_get_video_buffer(link, int exp_w, int exp_h, int left, int top, AV_PERM_WRITE);
> > 
> > the additional parameters given to avfilter_get_video_buffer() (at
> > least left and top) seem to be necessary to correctly free the buffer.
> > 
> > An alternative approach would be to extend avfilter_config_links() to
> > take the additional parameters w, h, left, top and store them in the
> > link, but looks somehow more complicated.
> 
> And implementation attached.
> 
> Note how I also extended avfilter_poll_frame(): this seems to be
> required for the way it is used in vf_fps.c.

Please don't still review it, I'm still nailing down some bugs.

Regards.
-- 
FFmpeg = Frightening and Faithless Merciless Powerful Extended Game



More information about the ffmpeg-devel mailing list