Home
last modified time | relevance | path

Searched refs:luminance (Results 1 – 25 of 50) sorted by relevance

12

/external/skia/src/core/
DSkMaskGamma.cpp15 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override { in toLuma()
17 return luminance; in toLuma()
26 SkScalar toLuma(SkScalar gamma, SkScalar luminance) const override { in toLuma()
27 return SkScalarPow(luminance, gamma); in toLuma()
35 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override { in toLuma()
39 if (luminance <= 0.04045f) { in toLuma()
40 return luminance / 12.92f; in toLuma()
42 return SkScalarPow((luminance + 0.055f) / 1.055f, in toLuma()
DSkMaskGamma.h28 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const = 0;
34 const SkColorSpaceLuminance& luminance = Fetch(gamma); in computeLuminance() local
35 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); in computeLuminance()
36 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255); in computeLuminance()
37 SkScalar b = luminance.toLuma(gamma, SkIntToScalar(SkColorGetB(c)) / 255); in computeLuminance()
42 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255); in computeLuminance()
/external/skia/tools/skpdiff/
Dgenerate_pmetric_tables.py20 def contrast_sensitivity(cycles_per_degree, luminance): argument
21 a = 440.0 * pow(1.0 + 0.7 / luminance, -0.2)
22 b = 0.3 * pow(1 + 100.0 / luminance, 0.15)
DSkPMetric.cpp160 static float contrast_sensitivity(float cyclesPerDegree, float luminance) { in contrast_sensitivity() argument
161 float a = 440.0f * powf(1.0f + 0.7f / luminance, -0.2f); in contrast_sensitivity()
162 float b = 0.3f * powf(1.0f + 100.0f / luminance, 0.15f); in contrast_sensitivity()
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/
DImageToAwt.java214 boolean luminance = false; in convert()
245 if (luminance){ in convert()
388 boolean luminance = false; in convert()
394 luminance = true; in convert()
399 if ( (alpha && !rgb && !luminance) || (luminance && !alpha && !rgb) ){ in convert()
401 }else if ( (rgb && alpha) || (luminance && alpha) ){ in convert()
465 if (luminance) in convert()
/external/mesa3d/src/mesa/swrast/
Ds_texfilter.c3455 GLfloat luminance = 1.0F; in shadow_compare4() local
3459 if (coord > depth00) luminance -= d; in shadow_compare4()
3460 if (coord > depth01) luminance -= d; in shadow_compare4()
3461 if (coord > depth10) luminance -= d; in shadow_compare4()
3462 if (coord > depth11) luminance -= d; in shadow_compare4()
3463 return luminance; in shadow_compare4()
3465 if (coord < depth00) luminance -= d; in shadow_compare4()
3466 if (coord < depth01) luminance -= d; in shadow_compare4()
3467 if (coord < depth10) luminance -= d; in shadow_compare4()
3468 if (coord < depth11) luminance -= d; in shadow_compare4()
[all …]
/external/mesa3d/docs/
DMESA_texture_signed_rgba.spec64 2) Should the full set of signed formats (alpha, luminance, rgb, etc.)
68 universal format, rgba. alpha/luminance can't be trivially supported
DRELNOTES-4.148 Allows one to specify the luminance of shadowed pixels.
DMESA_texture_array.spec350 values, as well as state for the red, green, blue, alpha, luminance,
/external/mesa3d/src/mesa/main/
Dpack.c1264 GLfloat *luminance; in _mesa_pack_rgba_span_float() local
1273 luminance = (GLfloat *) malloc(n * sizeof(GLfloat)); in _mesa_pack_rgba_span_float()
1274 if (!luminance) { in _mesa_pack_rgba_span_float()
1280 luminance = NULL; in _mesa_pack_rgba_span_float()
1315 luminance[i] = CLAMP(sum, 0.0F, 1.0F); in _mesa_pack_rgba_span_float()
1320 luminance[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_rgba_span_float()
1351 dst[i] = FLOAT_TO_UBYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1355 dst[i*2+0] = FLOAT_TO_UBYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1508 dst[i] = FLOAT_TO_BYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1512 dst[i*2+0] = FLOAT_TO_BYTE(luminance[i]); in _mesa_pack_rgba_span_float()
[all …]
/external/jpeg/
Dwizard.doc48 # This is table 0 (the luminance table):
74 By default, cjpeg will use quantization table 0 for luminance components and
Dlibjpeg.doc972 routines will set up table slot 0 for luminance quality and table
1007 luminance components and 1,1 for chrominance components, except
1012 0 for luminance components and 1 for chrominance components.
1017 0 for luminance components and 1 for chrominance components.
1188 color space. It is customary to convert color data to a luminance/chrominance
1227 luminance-quality compression parameters for all color components. You may
Dusage.doc473 luminance channel is preserved exactly, so this is a better method of reducing
/external/libpng/
Dlibpng-manual.txt3794 1: A single gray or luminance channel (G).
3795 2: A gray/luminance channel and an alpha channel (GA).
3803 luminance channels the value is encoded according to the sRGB specification
3822 of the color or luminance channels and is returned as an associated alpha
3884 indicate a luminance (gray) channel. The component order within the pixel
/external/libexif/po/
Den_AU.po3330 "The sampling ratio of chrominance components in relation to the luminance "
3333 "The sampling ratio of chrominance components in relation to the luminance "
3342 "The position of chrominance components in relation to the luminance "
3354 "The position of chrominance components in relation to the luminance "
Den_GB.po3330 "The sampling ratio of chrominance components in relation to the luminance "
3333 "The sampling ratio of chrominance components in relation to the luminance "
3342 "The position of chrominance components in relation to the luminance "
3354 "The position of chrominance components in relation to the luminance "
Den_CA.po3156 "The sampling ratio of chrominance components in relation to the luminance "
3166 "The position of chrominance components in relation to the luminance "
3178 "The position of chrominance components in relation to the luminance "
Dlibexif-12.pot3131 "The sampling ratio of chrominance components in relation to the luminance "
3141 "The position of chrominance components in relation to the luminance "
Dzh_CN.po3135 "The sampling ratio of chrominance components in relation to the luminance "
3145 "The position of chrominance components in relation to the luminance "
Dsq.po3135 "The sampling ratio of chrominance components in relation to the luminance "
3145 "The position of chrominance components in relation to the luminance "
Dbe.po3135 "The sampling ratio of chrominance components in relation to the luminance "
3145 "The position of chrominance components in relation to the luminance "
Dru.po3255 "The sampling ratio of chrominance components in relation to the luminance "
3265 "The position of chrominance components in relation to the luminance "
Duk.po3134 "The sampling ratio of chrominance components in relation to the luminance "
3144 "The position of chrominance components in relation to the luminance "
Dpt.po3135 "The sampling ratio of chrominance components in relation to the luminance "
3145 "The position of chrominance components in relation to the luminance "
Dtr.po3135 "The sampling ratio of chrominance components in relation to the luminance "
3145 "The position of chrominance components in relation to the luminance "

12