Searched refs:ramp (Results 1 - 19 of 19) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/
H A DSDL_macwm_c.h38 extern int Mac_SetGammaRamp(_THIS, Uint16 *ramp);
39 extern int Mac_GetGammaRamp(_THIS, Uint16 *ramp);
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/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...]
H A DSDL_sysvideo.h161 /* Set the gamma ramp */
162 int (*SetGammaRamp)(_THIS, Uint16 *ramp);
164 /* Get the gamma ramp */
165 int (*GetGammaRamp)(_THIS, Uint16 *ramp);
/external/eigen/doc/examples/
H A Dclass_CwiseUnaryOp_ptrfun.cpp7 double ramp(double x) function
18 cout << m1 << endl << "becomes: " << endl << m1.unaryExpr(ptr_fun(ramp)) << endl;
/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/qemu/distrib/sdl-1.2.15/src/video/quartz/
H A DSDL_QuartzVideo.h190 int QZ_SetGammaRamp (_THIS, Uint16 *ramp);
191 int QZ_GetGammaRamp (_THIS, Uint16 *ramp);
H A DSDL_QuartzVideo.m1642 int QZ_SetGammaRamp (_THIS, Uint16 *ramp)
1653 redTable[i % 256] = ramp[i] / 65535.0;
1656 greenTable[i % 256] = ramp[i] / 65535.0;
1659 blueTable[i % 256] = ramp[i] / 65535.0;
1668 int QZ_GetGammaRamp (_THIS, Uint16 *ramp)
1685 ramp[i] = redTable[i % 256] * 65535.0;
1688 ramp[i] = greenTable[i % 256] * 65535.0;
1691 ramp[i] = blueTable[i % 256] * 65535.0;
/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/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/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/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/chromium_org/third_party/webrtc/modules/audio_processing/aec/
H A Daec_core.c1039 const float ramp = 1.0002f; local
1097 (aec->dPow[i] + step * (aec->dMinPow[i] - aec->dPow[i])) * ramp;
1099 aec->dMinPow[i] *= ramp;
/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/pdfium/core/src/fxge/ge/
H A Dfx_ge_text.cpp1245 static void _CalcContrastRamp(FX_LPBYTE ramp, int level) argument
1249 ramp[i] = 0;
1252 ramp[i] = 255 * (i - contrast_min) / (contrast_max - contrast_min);
1255 ramp[i] = 255;
/external/deqp/modules/gles31/functional/
H A Des31fSynchronizationTests.cpp60 // check there exists an addition ramp form 1 to ...
102 //! Generate a ramp of values from 1 to numElements, and shuffle it
103 void generateShuffledRamp (int numElements, std::vector<int>& ramp) argument
108 ramp.resize(numElements);
110 ramp[callNdx] = callNdx + 1;
112 rng.shuffle(ramp.begin(), ramp.end());
/external/kernel-headers/original/uapi/linux/
H A Dinput.h1036 * struct ff_ramp_effect - defines parameters of a ramp force-feedback effect
1144 struct ff_ramp_effect ramp; member in union:ff_effect::__anon23093

Completed in 276 milliseconds