[MPlayer-cvslog] r20272 - in trunk/libmpcodecs: Makefile vf.c vf_geq.c

Michael Niedermayer michaelni at gmx.at
Thu Oct 26 13:59:29 CEST 2006


On Tue, Oct 24, 2006 at 08:52:16PM +0200, Diego Biurrun wrote:
> On Mon, Oct 16, 2006 at 05:47:32PM +0200, michael wrote:
> > 
> > Added:
> >    trunk/libmpcodecs/vf_geq.c
> >       - copied, changed from r20265, /trunk/libmpcodecs/vf_qp.c
> > 
> > Log:
> > generic equation filter
> > example: -vf 'geq=(p(X\,Y)+p(mod(Y*2-X*2\,W)\,mod(Y*2+X*2+sin((X-Y)/10/SW+N)*SW*20\,H)))/2'
> Would something like this be a correct description?  Is adding all those
> spaces legal?

no, vf_geq or eval.c should be changed to discard whitespace it doesnt

>   geq=equation
>     generic equation change filter
>       <equation>
>         "(  p(X\,Y) + p( mod( Y*2-X*2 \,W) \,mod( Y*2+X*2 + sin( (X-Y)
>         /10 /SW +N ) *SW *20 \,H)) ) /2"
> Plus, this is still lacking a description of the constants
> ("PI", "E", "X", "Y", "W", "H", "N", "SW", "SH").

PI, E see wikipedia
X and Y are the coordnates of the current sample
W and H are width and height of the image
SW and SH are width/height scale (for YUV 4:2:0 they are 1,1 and 0.5,0.5)
depending on the currently filtered plane

btw some examples

flip image hozizontally
sheer image horizintally with warparound (wrong stride effect)
checkerboard invert
map video onto a sphere


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is

More information about the MPlayer-cvslog mailing list