Lines Matching refs:ramp
41 static void CalculateGammaRamp(float gamma, Uint16 *ramp) in CalculateGammaRamp() argument
48 ramp[i] = 0; in CalculateGammaRamp()
55 ramp[i] = (i << 8) | i; in CalculateGammaRamp()
67 ramp[i] = (Uint16)value; in CalculateGammaRamp()
71 static void CalculateGammaFromRamp(float *gamma, Uint16 *ramp) in CalculateGammaFromRamp() argument
81 if ( (ramp[i] != 0) && (ramp[i] != 65535) ) { in CalculateGammaFromRamp()
83 double A = ramp[i] / 65535.0; in CalculateGammaFromRamp()
102 Uint16 ramp[3][256]; in SDL_SetGamma() local
104 CalculateGammaRamp(red, ramp[0]); in SDL_SetGamma()
105 CalculateGammaRamp(green, ramp[1]); in SDL_SetGamma()
106 CalculateGammaRamp(blue, ramp[2]); in SDL_SetGamma()
107 succeeded = SDL_SetGammaRamp(ramp[0], ramp[1], ramp[2]); in SDL_SetGamma()
128 Uint16 ramp[3][256]; in SDL_GetGamma() local
130 succeeded = SDL_GetGammaRamp(ramp[0], ramp[1], ramp[2]); in SDL_GetGamma()
132 CalculateGammaFromRamp(red, ramp[0]); in SDL_GetGamma()
133 CalculateGammaFromRamp(green, ramp[1]); in SDL_GetGamma()
134 CalculateGammaFromRamp(blue, ramp[2]); in SDL_GetGamma()