[FFmpeg-devel] [PATCH] Add pad filter
Sun Nov 29 02:13:51 CET 2009
On date Friday 2009-11-27 02:42:59 +0100, Michael Niedermayer encoded:
> On Fri, Nov 27, 2009 at 01:09:28AM +0100, Stefano Sabatini wrote:
> > +static void draw_slice(AVFilterLink *link, int y, int h)
> > + }
> a draw_rectangle() function could simplify above
Implemented and used.
> > +
> > + y1 = y == 0 ? 0 : y + pad->y;
> > + h1 = h;
> > + if (y == 0)
> > + h1 += pad->y;
> > + if (y+h >= link->h)
> > + h1 += pad->h - pad->y - link->h;
> > +
> > + avfilter_draw_slice(link->dst->outputs, y1, h1);
> this draw slice behaves quite odd, i would have expectd that slices didnt grow
Also this was wrong as it was misbehaving when in combination with
vflip, since the slices direction order wasn't respected.
Now the filter send slices with dimension not greater than those of
the input slice, and keep in consideration the slices direction (which
unfortunately complicates the code).
It seems to work with the random tests I performed, but I found other
problems not related with this patch (see the other mail), and in
combination with other filters vflip, crop, slicify.
FFmpeg = Frenzy and Faboulous Mastodontic Purposeless Extroverse Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 15016 bytes
Desc: not available
More information about the ffmpeg-devel