aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authorGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-23 17:03:15 +0000
committerGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-23 17:03:15 +0000
commitb3b5c37c83a49d2639a02a6ca86d9c76cd47c4ba (patch)
treea8d2f1bec4d476741b18c562de3da98d75d70490 /libvo/vo_xv.c
parent498f4b2b875cea15ba1214eeb1c5a62fdd5dc9e6 (diff)
RGB independed correction for GATOS's radeon_video driver!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4321 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index c70d924aeb..9f7fd04ae1 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -167,8 +167,19 @@ static void set_gamma_correction( unsigned int xv_port )
else
if(strcmp(attributes[i].name,"XV_HUE") == 0)
port_value = vo_gamma_hue;
+ else
+ /* Note: since 22.01.2002 GATOS supports these attrs for radeons (NK) */
+ if(strcmp(attributes[i].name,"XV_RED_INTENSITY") == 0)
+ port_value = vo_gamma_red_intensity;
+ else
+ if(strcmp(attributes[i].name,"XV_GREEN_INTENSITY") == 0)
+ port_value = vo_gamma_green_intensity;
+ else
+ if(strcmp(attributes[i].name,"XV_BLUE_INTENSITY") == 0)
+ port_value = vo_gamma_blue_intensity;
else continue;
- /* means that user has untouched this parameter */
+ /* means that user has untouched this parameter since
+ NVidia driver has default == min for XV_HUE but not mid */
if(!port_value) continue;
port_min = xv_min;
port_max = xv_max;