/external/skia/src/core/ |
SkMaskGamma.cpp | 15 virtual SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const SK_OVERRIDE { 17 return luminance; 26 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const SK_OVERRIDE { 27 return SkScalarPow(luminance, gamma); 35 virtual SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const SK_OVERRIDE { 39 if (luminance <= SkFloatToScalar(0.04045f)) { 40 return luminance / SkFloatToScalar(12.92f); 42 return SkScalarPow((luminance + SkFloatToScalar(0.055f)) / SkFloatToScalar(1.055f), 87 //Contrast value tapers off to 0 as the src luminance becomes white
|
SkMaskGamma.h | 20 * Luma is used to specify a linear luminance value [0.0, 1.0]. 21 * Luminance is used to specify a luminance value in an arbitrary color space [0.0, 1.0]. 27 /** Converts a color component luminance in the color space to a linear luma. */ 28 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const = 0; 29 /** Converts a linear luma to a color component luminance in the color space. */ 32 /** Converts a color to a luminance value. */ 34 const SkColorSpaceLuminance& luminance = Fetch(gamma); local 35 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); 36 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255) [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
testoverlay.c | 21 int luminance; variable 35 void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance) 62 if (luminance!=100) 64 yuv[0]=yuv[0]*luminance/100; 81 void ConvertRGBtoYV12(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) 106 RGBtoYUV(p, yuv, monochrome, luminance); 121 void ConvertRGBtoIYUV(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) 146 RGBtoYUV(p,yuv, monochrome, luminance); 161 void ConvertRGBtoUYVY(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) 176 RGBtoYUV(p, yuv, monochrome, luminance); [all...] |
testoverlay2.c | 58 void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance) 85 if (luminance!=100) 87 yuv[0]=yuv[0]*luminance/100; 93 void ConvertRGBtoYV12(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) 111 RGBtoYUV(p, yuv, monochrome, luminance); 126 void ConvertRGBtoIYUV(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) 144 RGBtoYUV(p,yuv, monochrome, luminance); 159 void ConvertRGBtoUYVY(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) 174 RGBtoYUV(p, yuv, monochrome, luminance); 192 void ConvertRGBtoYVYU(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance) [all...] |
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/ |
ImageToAwt.java | 214 boolean luminance = false; 243 // Convert color to luminance if target 244 // image is in luminance format 245 if (luminance){ 246 // convert RGB to luminance 388 boolean luminance = false; 394 luminance = true; 398 // alpha OR luminance but not both 399 if ( (alpha && !rgb && !luminance) || (luminance && !alpha && !rgb) ) [all...] |
/frameworks/base/libs/hwui/ |
GammaFontRenderer.cpp | 30 static int luminance(const SkPaint* paint) { function in namespace:android::uirenderer 109 const int l = luminance(paint); 248 const int l = luminance(paint);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/ |
armVCM4P2_SetPredDir_s.s | 25 ; * alpha blocks spatially corresponding to luminance
|
omxVCM4P2_PredictReconCoefIntra_s.s | 46 ; * [in] videoComp video component type (luminance, chrominance or
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/ |
armVCM4P2_SetPredDir_s.s | 25 ; * alpha blocks spatially corresponding to luminance
|
omxVCM4P2_PredictReconCoefIntra_s.s | 46 ; * [in] videoComp video component type (luminance, chrominance or
|
/external/webkit/Source/WebCore/platform/graphics/filters/ |
FEColorMatrix.cpp | 119 inline void luminance(double& red, double& green, double& blue, double& alpha) function in namespace:WebCore 148 luminance(red, green, blue, alpha);
|
/external/skia/legacy/src/core/ |
SkPaint.cpp | [all...] |
/frameworks/rs/ |
rsFont.cpp | 795 const float luminance = (r * 2.0f + g * 5.0f + b) / 8.0f; local 796 if (luminance <= mBlackThreshold) { 798 } else if (luminance >= mWhiteThreshold) {
|
/external/skia/legacy/src/ports/ |
SkFontHost_FreeType.cpp | 674 // for compatibility at the moment, discretize luminance to 3 settings 689 // when measuring text w/o regard for luminance [all...] |
SkFontHost_mac_coretext.cpp | [all...] |
/external/zxing/core/ |
core.jar | |