[Mplayer-cvslog] CVS: main/libmpcodecs vd.c,1.77,1.78

Sascha Sommer CVS syncmail at mplayerhq.hu
Wed Sep 15 13:26:48 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv9653/libmpcodecs

Modified Files:
	vd.c 
Log Message:
fix ineffectual video equalizer command line options, patch by kiriuja <mplayer-bugs at en-directo.net>, closes #37, some more variable docu by me

Index: vd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- vd.c	15 Jul 2004 20:36:04 -0000	1.77
+++ vd.c	15 Sep 2004 11:26:45 -0000	1.78
@@ -126,6 +126,17 @@
 int vo_flags=0;
 int vd_use_slices=1;
 
+/** global variables for gamma, brightness, contrast, saturation and hue 
+    modified by mplayer.c and Gui/mplayer/gtk/eq.c:
+    ranges -100 - 100
+    1000 if the vo default should be used
+*/   
+int vo_gamma_gamma = 1000;
+int vo_gamma_brightness = 1000;
+int vo_gamma_contrast = 1000;
+int vo_gamma_saturation = 1000;
+int vo_gamma_hue = 1000;
+
 extern vd_functions_t* mpvdec; // FIXME!
 extern int divx_quality;
 
@@ -306,6 +317,18 @@
     }
 
     sh->vf_inited=1;
+
+    if (vo_gamma_gamma != 1000)
+        set_video_colors(sh, "gamma", vo_gamma_gamma);
+    if (vo_gamma_brightness != 1000)
+        set_video_colors(sh, "brightness", vo_gamma_brightness);
+    if (vo_gamma_contrast != 1000)
+        set_video_colors(sh, "contrast", vo_gamma_contrast);
+    if (vo_gamma_saturation != 1000)
+        set_video_colors(sh, "saturation", vo_gamma_saturation);
+    if (vo_gamma_hue != 1000)
+        set_video_colors(sh, "hue", vo_gamma_hue);
+
     return 1;
 }
 




More information about the MPlayer-cvslog mailing list