RGB independed correction for GATOS's radeon_video driver!

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4321 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-01-23 17:03:15 +00:00
parent 498f4b2b87
commit b3b5c37c83
1 changed files with 12 additions and 1 deletions

View File

@ -167,8 +167,19 @@ static void set_gamma_correction( unsigned int xv_port )
else else
if(strcmp(attributes[i].name,"XV_HUE") == 0) if(strcmp(attributes[i].name,"XV_HUE") == 0)
port_value = vo_gamma_hue; 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; 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; if(!port_value) continue;
port_min = xv_min; port_min = xv_min;
port_max = xv_max; port_max = xv_max;