Searched defs:ramp (Results 1 - 16 of 16) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_gamma.c41 static void CalculateGammaRamp(float gamma, Uint16 *ramp) argument
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) argument
81 if ( (ramp[i] != 0) && (ramp[i] != 65535) ) {
83 double A = ramp[i] / 65535.0;
102 Uint16 ramp[ local
128 Uint16 ramp[3][256]; local
[all...]
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestgamma.c18 /* Turn a normal gamma value into an appropriate gamma ramp */
19 void CalculateGamma(double gamma, Uint16 *ramp) argument
29 ramp[i] = (Uint16)value;
81 Uint16 ramp[256]; local
180 CalculateGamma(1.0/gamma, ramp);
181 SDL_SetGammaRamp(red_ramp, ramp, ramp);
185 memset(ramp, 0, sizeof(ramp));
186 SDL_SetGammaRamp(red_ramp, ramp, ram
[all...]
H A Dtestpalette.c303 /* Fade using gamma ramp (better) */
304 Uint16 ramp[256]; local
306 ramp[i] = (i * fade_level / fade_max) << 8;
307 if(SDL_SetGammaRamp(ramp, ramp, ramp) < 0)
308 sdlerr("setting gamma ramp");
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/
H A DSDL_nxvideo.c50 static int NX_SetGammaRamp (_THIS, Uint16 * ramp) ;
51 static int NX_GetGammaRamp (_THIS, Uint16 * ramp) ;
485 static int NX_SetGammaRamp (_THIS, Uint16 * ramp) argument
505 red = ramp ;
506 green = ramp + CI_SIZE ;
520 static int NX_GetGammaRamp (_THIS, Uint16 * ramp) argument
528 red = ramp ;
529 green = ramp + CI_SIZE ;
/external/quake/quake/src/QW/client/
H A Dglquake.h168 float ramp; member in struct:particle_s
H A Dglquake2.h122 float ramp; member in struct:particle_s
H A Dd_iface.h47 float ramp; member in struct:particle_s
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/
H A DSDL_macwm.c177 /* fill ramp */
180 short shiftRightValue = pTableGammaTemp->gDataWidth - 8; /* number of right shifts device -> ramp */
192 for (indexChan = 0; indexChan < 768; indexChan += 256) /* repeat for all 3 channels (step by ramp size) */
334 short shiftRightValue = 8 - dataBits; /* number of right shifts ramp -> device */
340 long temp = *((unsigned char *)pRamp + (indexChan << 8) + (indexEntry << 8) / entries); /* get data from ramp */
409 int Mac_SetGammaRamp(_THIS, Uint16 *ramp) argument
416 shiftedRamp[i] = ramp[i] >> 8;
425 int Mac_GetGammaRamp(_THIS, Uint16 *ramp) argument
432 ramp[i] = shiftedRamp[i] << 8;
/external/quake/quake/src/WinQuake/
H A Dd_iface.h48 float ramp; member in struct:particle_s
H A Dglquake.h158 float ramp; member in struct:particle_s
/external/qemu/distrib/sdl-1.2.15/src/video/dga/
H A DSDL_dgavideo.c52 static int DGA_SetGammaRamp(_THIS, Uint16 *ramp);
1021 int DGA_SetGammaRamp(_THIS, Uint16 *ramp) argument
1032 /* Calculate the appropriate palette for the given gamma ramp */
1041 xcmap[i].red = ramp[0*256+c];
1042 xcmap[i].green = ramp[1*256+c];
1043 xcmap[i].blue = ramp[2*256+c];
/external/qemu/distrib/sdl-1.2.15/src/video/windib/
H A DSDL_dibvideo.c100 int DIB_SetGammaRamp(_THIS, Uint16 *ramp);
101 int DIB_GetGammaRamp(_THIS, Uint16 *ramp);
1090 WORD ramp[3*256]; local
1094 if ( ! GetDeviceGammaRamp(hdc, ramp) ) {
1140 int DIB_SetGammaRamp(_THIS, Uint16 *ramp) argument
1143 SDL_SetError("SDL compiled without gamma ramp support");
1149 /* Set the ramp for the display */
1162 succeeded = SetDeviceGammaRamp(hdc, ramp);
1171 int DIB_GetGammaRamp(_THIS, Uint16 *ramp) argument
1174 SDL_SetError("SDL compiled without gamma ramp suppor
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
H A DSDL_dx5video.c427 static int DX5_SetGammaRamp(_THIS, Uint16 *ramp);
428 static int DX5_GetGammaRamp(_THIS, Uint16 *ramp);
452 extern int DIB_SetGammaRamp(_THIS, Uint16 *ramp);
453 extern int DIB_GetGammaRamp(_THIS, Uint16 *ramp);
2304 static int DX5_SetGammaRamp(_THIS, Uint16 *ramp) argument
2314 return DIB_SetGammaRamp(this, ramp);
2318 SDL_SetError("SDL compiled without DirectX gamma ramp support");
2335 /* Set up the gamma ramp */
2336 SDL_memcpy(gamma_ramp.red, &ramp[0*256], 256*sizeof(*ramp));
2350 DX5_GetGammaRamp(_THIS, Uint16 *ramp) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
H A DSDL_x11video.c68 static int X11_SetGammaRamp(_THIS, Uint16 *ramp);
1467 int X11_SetGammaRamp(_THIS, Uint16 *ramp) argument
1478 /* Calculate the appropriate palette for the given gamma ramp */
1483 xcmap[i].red = ramp[0*256+c];
1484 xcmap[i].green = ramp[1*256+c];
1485 xcmap[i].blue = ramp[2*256+c];
/external/webrtc/src/modules/audio_processing/aec/
H A Daec_core.c652 const float ramp = 1.0002f; local
720 aec->dPow[i])) * ramp;
723 aec->dMinPow[i] *= ramp;
/external/kernel-headers/original/linux/
H A Dinput.h1005 * struct ff_ramp_effect - defines parameters of a ramp force-feedback effect
1113 struct ff_ramp_effect ramp; member in union:ff_effect::__anon6932

Completed in 268 milliseconds