Searched defs:luminance (Results 1 - 4 of 4) sorted by relevance

/external/skia/src/core/
H A DSkMaskGamma.h20 * 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);
37 SkScalar b = luminance
[all...]
/external/mesa3d/src/mesa/main/
H A Dpack.c1264 GLfloat *luminance; local
1273 luminance = (GLfloat *) malloc(n * sizeof(GLfloat));
1274 if (!luminance) {
1280 luminance = NULL;
1311 /* compute luminance values */
1315 luminance[i] = CLAMP(sum, 0.0F, 1.0F);
1320 luminance[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP];
1351 dst[i] = FLOAT_TO_UBYTE(luminance[i]);
1355 dst[i*2+0] = FLOAT_TO_UBYTE(luminance[i]);
1508 dst[i] = FLOAT_TO_BYTE(luminance[
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_texfilter.c3455 GLfloat luminance = 1.0F; local
3459 if (coord > depth00) luminance -= d;
3460 if (coord > depth01) luminance -= d;
3461 if (coord > depth10) luminance -= d;
3462 if (coord > depth11) luminance -= d;
3463 return luminance;
3465 if (coord < depth00) luminance -= d;
3466 if (coord < depth01) luminance -= d;
3467 if (coord < depth10) luminance -= d;
3468 if (coord < depth11) luminance
[all...]
/external/zxing/core/
H A Dcore.jar ... .String toString () char c char c char c int luminance char c int x int y byte[] row StringBuilder result ...

Completed in 168 milliseconds