[FFmpeg-devel] [PATCH] libavfilter-soc: Make the overlay filter able to align to opposite edges
Sun May 10 01:11:24 CEST 2009
On date Thursday 2009-05-07 23:01:24 +0300, Martin Storsj? encoded:
> On Wed, 6 May 2009, Robert Swain wrote:
> > Martin Storsj? wrote:
> > >
> > > Any suggestions on a better way of achieving this in the overlay filter's
> > > parameter interface?
> > I think you'd have to add extra parameters to toggle the operation of the
> > offsets and maintain logical functionality as Michael claimed. Maybe have
> > right and bottom parameters that, when non-zero, toggle to make the offsets be
> > calculated from the right/bottom.
> Hmm, what would that look like, more concretely? Something like
> overlay=10:10:align=right;align=bottom, or just some more numeric
> arguments after the first two ones?
What about some flags like:
Also what about to make x and y parametric, for example they could
take as parameters the input width, height, and the overlay width and
height, that would greatly improve flexibility.
Check the vf_pad.c which I recently posted to see how you can
implement it (it also requires the av_set_options_string() patch which
is still pending).
FFmpeg = Fundamentalist and Funny Mere Power Emblematic Gorilla
More information about the ffmpeg-devel