[Mplayer-cvslog] CVS: main/libmpcodecs vd_divx4.c,1.10,1.11

Arpi of Ize arpi at mplayerhq.hu
Fri Jul 26 00:18:52 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv10637

Modified Files:
	vd_divx4.c 
Log Message:
video eq:
- ignore case
- -100..100 -> -128..128 remapping


Index: vd_divx4.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_divx4.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vd_divx4.c	11 Jul 2002 19:16:30 -0000	1.10
+++ vd_divx4.c	25 Jul 2002 22:18:49 -0000	1.11
@@ -60,12 +60,12 @@
 	value=va_arg(ap, int);
 	va_end(ap);
 
-        if(!strcmp(arg,"Brightness")) option=DEC_GAMMA_BRIGHTNESS;
-        else if(!strcmp(arg, "Contrast")) option=DEC_GAMMA_CONTRAST;
-        else if(!strcmp(arg,"Saturation")) option=DEC_GAMMA_SATURATION;
+        if(!strcasecmp(arg,"Brightness")) option=DEC_GAMMA_BRIGHTNESS;
+        else if(!strcasecmp(arg, "Contrast")) option=DEC_GAMMA_CONTRAST;
+        else if(!strcasecmp(arg,"Saturation")) option=DEC_GAMMA_SATURATION;
         else return CONTROL_FALSE;
 	
-        value = (value * 256) / 100 - 128;
+        value = (value * 128) / 100;
         decore(0x123, DEC_OPT_GAMMA, (void *)option, (void *) value);
 	return CONTROL_OK;
     }




More information about the MPlayer-cvslog mailing list