[MPlayer-users] Re: TV Tuner - howto invert colors?
Toddmilliner
oddbudman at optushome.com.au
Wed Aug 21 14:27:01 CEST 2002
Hello again,.
to be honest i am a pretty slack coder.
What i need to do is invert the colors of mplayer when it uses the
tvtuner input
it would bo cool if i could do something like
mplayer -vop invert ...... I have tried all the other output filters
but none seem to work.
I had a look at the libmpcodecs/vf_*.c code but I really don't have any
idea what is going on. :(
Here is some code that i have found inverts the colors in the way i
need. I have no idea how to port this code to mplayer
if anyone could help it would be greatly appreciated
#include <stdio.h>
#include <effecto_machine.h>
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 is from a GPL program known as Grabbo
I hope it helps
this code i can understand, the mplayer code is a little beyond me.
anyway if anyone can drop me an email and/or give me some help it would
be greatly appreciated
oddbudman
More information about the MPlayer-users
mailing list