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

Michael Niedermayer michaelni at gmx.at
Tue Nov 7 14:31:35 CET 2006


Hi

On Sun, Nov 05, 2006 at 02:13:14PM +0100, Diego Biurrun wrote:
> On Thu, Oct 26, 2006 at 01:59:29PM +0200, Michael Niedermayer wrote:
> > 
> > On Tue, Oct 24, 2006 at 08:52:16PM +0200, Diego Biurrun wrote:
> > > 
> > > 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
> 
> OK, how about
> 
> geq=equation
>   generic equation change filter
>  
>   <equation>
>   Some equation, e.g.\&  'p(W-X\,Y)' to flip the image horizontally.
>   Note that this filter does not yet understand whitespace used to
>   make the equation more readable.

it does since oded fixed it
try
mplayer  -vf 'geq=
st(0\,0);
st(1\,0);
st(2\,0);
st(3\,0);
st(4\,0);
while(lt(ld(0)+ld(2)\,4)*(128-ld(4))\,
    st(3\,2*ld(1)*ld(3)+(Y-H/2)/60);
    st(1\,ld(0)-ld(2)+(X-W/2)/60);
    st(0\,ld(1)^2);
    st(2\,ld(3)^2);
    st(4\,ld(4)+1)
)
*32*eq(SH\,1)+128'


>   There are a couple of constants that can be used in the equation:
>     PI: the number pi
>     E: the number e
>     X / Y: the coordinates of the current sample
>     W / H: width and height of the image
>     SW / SH: width/height scale depending on the currently filtered plane,
>       e.g. 1,1 and 0.5,0.5 for YUV 4:2:0.

looks all good

[...]
-- 
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