changeset 4317:0cf9e05f6de2

intense -> intensity
author nick
date Wed, 23 Jan 2002 16:54:29 +0000
parents 9f8a618e87c3
children 693e4cfd2b84
files cfg-mplayer.h libvo/video_out.c libvo/vo_xv.c libvo/vosub_vidix.c
diffstat 4 files changed, 34 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/cfg-mplayer.h	Wed Jan 23 15:16:20 2002 +0000
+++ b/cfg-mplayer.h	Wed Jan 23 16:54:29 2002 +0000
@@ -44,9 +44,9 @@
 extern int vo_gamma_saturation;
 extern int vo_gamma_contrast;
 extern int vo_gamma_hue;
-extern int vo_gamma_red_intense;
-extern int vo_gamma_green_intense;
-extern int vo_gamma_blue_intense;
+extern int vo_gamma_red_intensity;
+extern int vo_gamma_green_intensity;
+extern int vo_gamma_blue_intensity;
 #endif
 
 #ifdef USE_SUB
@@ -253,9 +253,9 @@
 	{"saturation",&vo_gamma_saturation, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
 	{"contrast",&vo_gamma_contrast, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
 	{"hue",&vo_gamma_hue, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
-	{"red_intense",&vo_gamma_red_intense, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
-	{"green_intense",&vo_gamma_green_intense, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
-	{"blue_intense",&vo_gamma_blue_intense, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
+	{"red_intensity",&vo_gamma_red_intensity, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
+	{"green_intensity",&vo_gamma_green_intensity, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
+	{"blue_intensity",&vo_gamma_blue_intensity, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
 #endif
 
 #ifdef HAVE_AA
--- a/libvo/video_out.c	Wed Jan 23 15:16:20 2002 +0000
+++ b/libvo/video_out.c	Wed Jan 23 16:54:29 2002 +0000
@@ -54,9 +54,9 @@
 int vo_gamma_saturation=0;
 int vo_gamma_contrast=0;
 int vo_gamma_hue=0;
-int vo_gamma_red_intense=0;
-int vo_gamma_green_intense=0;
-int vo_gamma_blue_intense=0;
+int vo_gamma_red_intensity=0;
+int vo_gamma_green_intensity=0;
+int vo_gamma_blue_intensity=0;
 //
 // Externally visible list of all vo drivers
 //
--- a/libvo/vo_xv.c	Wed Jan 23 15:16:20 2002 +0000
+++ b/libvo/vo_xv.c	Wed Jan 23 16:54:29 2002 +0000
@@ -118,9 +118,9 @@
 extern int vo_gamma_saturation;
 extern int vo_gamma_contrast;
 extern int vo_gamma_hue;
-extern int vo_gamma_red_intense;
-extern int vo_gamma_green_intense;
-extern int vo_gamma_blue_intense;
+extern int vo_gamma_red_intensity;
+extern int vo_gamma_green_intensity;
+extern int vo_gamma_blue_intensity;
 
 static void set_gamma_correction( unsigned int xv_port )
 {
--- a/libvo/vosub_vidix.c	Wed Jan 23 15:16:20 2002 +0000
+++ b/libvo/vosub_vidix.c	Wed Jan 23 16:54:29 2002 +0000
@@ -166,9 +166,9 @@
 extern int vo_gamma_saturation;
 extern int vo_gamma_contrast;
 extern int vo_gamma_hue;
-extern int vo_gamma_red_intense;
-extern int vo_gamma_green_intense;
-extern int vo_gamma_blue_intense;
+extern int vo_gamma_red_intensity;
+extern int vo_gamma_green_intensity;
+extern int vo_gamma_blue_intensity;
 
 static vidix_video_eq_t vid_eq;
 
@@ -189,26 +189,30 @@
 	       "vosub_vidix: vo_gamma_saturation=%i\n"
 	       "vosub_vidix: vo_gamma_contrast=%i\n"
 	       "vosub_vidix: vo_gamma_hue=%i\n"
-	       "vosub_vidix: vo_gamma_red_intense=%i\n"
-	       "vosub_vidix: vo_gamma_green_intense=%i\n"
-	       "vosub_vidix: vo_gamma_blue_intense=%i\n"
+	       "vosub_vidix: vo_gamma_red_intensity=%i\n"
+	       "vosub_vidix: vo_gamma_green_intensity=%i\n"
+	       "vosub_vidix: vo_gamma_blue_intensity=%i\n"
 	       ,vo_gamma_brightness
 	       ,vo_gamma_saturation
 	       ,vo_gamma_contrast
 	       ,vo_gamma_hue
-	       ,vo_gamma_red_intense
-	       ,vo_gamma_green_intense
-	       ,vo_gamma_blue_intense);
+	       ,vo_gamma_red_intensity
+	       ,vo_gamma_green_intensity
+	       ,vo_gamma_blue_intensity);
 	}
-	vid_eq.brightness = vo_gamma_brightness;
-	vid_eq.saturation = vo_gamma_saturation;
-	vid_eq.contrast = vo_gamma_contrast;
-	vid_eq.hue = vo_gamma_hue;
-	vid_eq.red_intense = vo_gamma_red_intense;
-	vid_eq.green_intense = vo_gamma_green_intense;
-	vid_eq.blue_intense = vo_gamma_blue_intense;
-	vid_eq.flags = VEQ_FLG_ITU_R_BT_601;
-	vdlPlaybackSetEq(vidix_handler,&vid_eq);
+        /* To use full set of vid_eq.cap */
+	if(vdlPlaybackGetEq(vidix_handler,&vid_eq) == 0)
+	{
+		vid_eq.brightness = vo_gamma_brightness;
+		vid_eq.saturation = vo_gamma_saturation;
+		vid_eq.contrast = vo_gamma_contrast;
+		vid_eq.hue = vo_gamma_hue;
+		vid_eq.red_intensity = vo_gamma_red_intensity;
+		vid_eq.green_intensity = vo_gamma_green_intensity;
+		vid_eq.blue_intensity = vo_gamma_blue_intensity;
+		vid_eq.flags = VEQ_FLG_ITU_R_BT_601;
+		vdlPlaybackSetEq(vidix_handler,&vid_eq);
+	}
     }
     return 0;
 }