[MPlayer-users] Re: TV Tuner - howto invert colors?

WK sprawki at wp.pl
Wed Aug 21 19:10:02 CEST 2002


on 8/22/02 12:23 AM, Toddmilliner at oddbudman at optushome.com.au wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 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.
try somthing like:
mplayer -tv on:driver=v4l:outfmt=<rgb24 or yuv12 or rgb32 find proper format
for your card and force it>
or try tv.diff of Jindrich Makovicka - few days ago (I suppose 12/08/2002
> 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
> 
> 
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
> 




More information about the MPlayer-users mailing list