Lines Matching full:ramp
41 static void CalculateGammaRamp(float gamma, Uint16 *ramp)
48 ramp[i] = 0;
55 ramp[i] = (i << 8) | i;
59 /* Calculate a real gamma ramp */
67 ramp[i] = (Uint16)value;
71 static void CalculateGammaFromRamp(float *gamma, Uint16 *ramp)
81 if ( (ramp[i] != 0) && (ramp[i] != 65535) ) {
83 double A = ramp[i] / 65535.0;
102 Uint16 ramp[3][256];
104 CalculateGammaRamp(red, ramp[0]);
105 CalculateGammaRamp(green, ramp[1]);
106 CalculateGammaRamp(blue, ramp[2]);
107 succeeded = SDL_SetGammaRamp(ramp[0], ramp[1], ramp[2]);
128 Uint16 ramp[3][256];
130 succeeded = SDL_GetGammaRamp(ramp[0], ramp[1], ramp[2]);
132 CalculateGammaFromRamp(red, ramp[0]);
133 CalculateGammaFromRamp(green, ramp[1]);
134 CalculateGammaFromRamp(blue, ramp[2]);
186 /* Try to set the gamma ramp in the driver */
191 SDL_SetError("Gamma ramp manipulation not supported");