/external/eigen/doc/examples/ |
H A D | class_CwiseUnaryOp_ptrfun.cpp | 7 double ramp(double x) function 18 cout << m1 << endl << "becomes: " << endl << m1.unaryExpr(ptr_fun(ramp)) << endl;
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
H A D | SDL_gamma.c | 41 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 D | testgamma.c | 18 /* 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 D | testpalette.c | 303 /* 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/deqp/modules/gles31/functional/ |
H A D | es31fSynchronizationTests.cpp | 60 // 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/qemu/distrib/sdl-1.2.15/src/video/nanox/ |
H A D | SDL_nxvideo.c | 50 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/maccommon/ |
H A D | SDL_macwm.c | 177 /* 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/dga/ |
H A D | SDL_dgavideo.c | 52 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 D | SDL_dibvideo.c | 100 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 D | SDL_dx5video.c | 427 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 D | SDL_x11video.c | 68 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 D | aec_core.c | 652 const float ramp = 1.0002f; local 720 aec->dPow[i])) * ramp; 723 aec->dMinPow[i] *= ramp;
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/aec/ |
H A D | aec_core.c | 1039 const float ramp = 1.0002f; local 1097 (aec->dPow[i] + step * (aec->dMinPow[i] - aec->dPow[i])) * ramp; 1099 aec->dMinPow[i] *= ramp;
|
/external/pdfium/core/src/fxge/ge/ |
H A D | fx_ge_text.cpp | 1245 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/kernel-headers/original/uapi/linux/ |
H A D | input.h | 1036 * struct ff_ramp_effect - defines parameters of a ramp force-feedback effect 1144 struct ff_ramp_effect ramp; member in union:ff_effect::__anon23093
|