[MPlayer-users] Need to invert colors- New output filter needed

Toddmilliner oddbudman at optushome.com.au
Sun Aug 25 14:24:01 CEST 2002


Hello, i'm still trying to invert the colors on my tv tuner

i have tried all the -vop stuff but it isn't exactly what i am after

i need you to understand that this is not an issue with my tv tuner 
card- it works 100% correctly

i need to decrypt a signal that inverts the colors as a form on encryption

hence i need a color inverter

currently i have found a video program that does exactly what i want to 
an image.  it is called Grabbo and is on freshmeat.

its inverting code is as follows


static void *negative_effecto (int w, int h, unsigned char *image, void 
*private_data)
{
       unsigned char *p = image;
    unsigned int i = w * h * RGB_COMPONENTS;

    while (--i) *p++ = ~(*p);

       return image;
}

this program is more suited to survellance and doesn't have sound 
support, or from what i can tell good framebuffering
but it does a great job at inverting the colors just the way i need it :)

I had a look at the vf_* source but i have no idea what is going on- i'm 
a poor coder.

if anyone could help me it would be greatly appreciated, not only by me, 
but by the rest of the australian broadband community :)

this link may aid your understanding of my dilema   
 http://www.fucu.cjb.net/

oddbudman




More information about the MPlayer-users mailing list