HomeSort by relevance Sort by last modified time
    Searched refs:luminance (Results 1 - 25 of 30) sorted by null

1 2

  /external/skia/src/core/
SkMaskGamma.cpp 16 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override {
18 return luminance;
27 SkScalar toLuma(SkScalar gamma, SkScalar luminance) const override {
28 return SkScalarPow(luminance, gamma);
36 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override {
40 if (luminance <= 0.04045f) {
41 return luminance / 12.92f;
43 return SkScalarPow((luminance + 0.055f) / 1.055f,
88 //Contrast value tapers off to 0 as the src luminance becomes white
SkMaskGamma.h 21 * Luma is used to specify a linear luminance value [0.0, 1.0].
22 * Luminance is used to specify a luminance value in an arbitrary color space [0.0, 1.0].
28 /** Converts a color component luminance in the color space to a linear luma. */
29 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const = 0;
30 /** Converts a linear luma to a color component luminance in the color space. */
33 /** Converts a color to a luminance value. */
35 const SkColorSpaceLuminance& luminance = Fetch(gamma); local
36 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255);
37 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255)
    [all...]
  /external/skqp/src/core/
SkMaskGamma.cpp 16 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override {
18 return luminance;
27 SkScalar toLuma(SkScalar gamma, SkScalar luminance) const override {
28 return SkScalarPow(luminance, gamma);
36 SkScalar toLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luminance) const override {
40 if (luminance <= 0.04045f) {
41 return luminance / 12.92f;
43 return SkScalarPow((luminance + 0.055f) / 1.055f,
88 //Contrast value tapers off to 0 as the src luminance becomes white
SkMaskGamma.h 21 * Luma is used to specify a linear luminance value [0.0, 1.0].
22 * Luminance is used to specify a luminance value in an arbitrary color space [0.0, 1.0].
28 /** Converts a color component luminance in the color space to a linear luma. */
29 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const = 0;
30 /** Converts a linear luma to a color component luminance in the color space. */
33 /** Converts a color to a luminance value. */
35 const SkColorSpaceLuminance& luminance = Fetch(gamma); local
36 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255);
37 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255)
    [all...]
  /external/webrtc/webrtc/modules/video_processing/test/
writeYUV420file.m 12 % Write luminance
readYUV420file.m 12 % nPx bytes luminance, nPx/4 bytes U, nPx/4 bytes V
31 % Store luminance
  /cts/tests/tests/graphics/src/android/graphics/cts/
Color_ColorLongTest.java 23 import static android.graphics.Color.luminance;
321 assertEquals(0.0722f, luminance(pack(0.0f, 0.0f, 1.0f)), 0.000001f);
322 assertEquals(0.2126f, luminance(pack(1.0f, 0.0f, 0.0f)), 0.000001f);
323 assertEquals(0.7152f, luminance(pack(0.0f, 1.0f, 0.0f)), 0.000001f);
324 assertEquals(1.0f, luminance(pack(1.0f, 1.0f, 1.0f)), 0.0f);
325 assertEquals(0.0f, luminance(pack(0.0f, 0.0f, 0.0f)), 0.0f);
327 assertEquals(0.0722f, valueOf(0.0f, 0.0f, 1.0f).luminance(), 0.000001f);
328 assertEquals(0.2126f, valueOf(1.0f, 0.0f, 0.0f).luminance(), 0.000001f);
329 assertEquals(0.7152f, valueOf(0.0f, 1.0f, 0.0f).luminance(), 0.000001f);
330 assertEquals(1.0f, valueOf(1.0f, 1.0f, 1.0f).luminance(), 0.0f)
357 valueOf(1.0f, 1.0f, 1.0f, 1.0f, ColorSpace.get(Named.CIE_LAB)).luminance(); method
    [all...]
ColorTest.java 250 assertEquals(0, Color.luminance(Color.BLACK), 0);
252 assertEquals(0.0722, Color.luminance(Color.BLUE), eps);
253 assertEquals(0.2126, Color.luminance(Color.RED), eps);
254 assertEquals(0.7152, Color.luminance(Color.GREEN), eps);
255 assertEquals(1, Color.luminance(Color.WHITE), 0);
  /external/autotest/client/site_tests/video_WebRtcCamera/
ssim.js 79 var luminance = (2 * muX * muY + C1) /
87 return luminance * contrast * structure;
  /external/autotest/client/site_tests/video_WebRtcPeerConnectionWithCamera/
ssim.js 79 var luminance = (2 * muX * muY + C1) /
87 return luminance * contrast * structure;
  /external/skia/samplecode/
SampleShadowColor.cpp 127 SkScalar luminance = 0.5f*(max + min) / 255.f; local
128 SkScalar alpha = (.6 - .4*luminance)*luminance*luminance + 0.3f;
  /external/skqp/samplecode/
SampleShadowColor.cpp 127 SkScalar luminance = 0.5f*(max + min) / 255.f; local
128 SkScalar alpha = (.6 - .4*luminance)*luminance*luminance + 0.3f;
  /external/mesa3d/src/mesa/main/
texcompress_bptc.c 1018 int luminance; local
1111 int luminance; local
1367 float luminance; local
1439 float luminance; local
    [all...]
readpix.c 499 * Converting to luminance also requires converting to RGBA first, so we can
500 * then compute luminance values as L=R+G+B. Notice that this is different
576 * If the dst format is Luminance, we need to do the conversion by computing
585 /* Compute float Luminance values from RGBA float */
587 void *luminance; local
594 luminance = malloc(luminance_bytes);
595 if (!luminance) {
601 luminance, format, transferOps);
603 /* Convert from Luminance float to dst (this will hadle type conversion
608 luminance, luminance_format, luminance_stride
    [all...]
  /external/swiftshader/src/Shader/
PixelPipeline.hpp 26 PixelRoutine(state, shader), current(rs[0]), diffuse(vs[0]), specular(vs[1]), perturbate(false), luminance(false), previousScaling(false) {}
44 // bem(l) offsets and luminance
109 bool luminance; member in class:sw::PixelPipeline
  /external/mesa3d/src/mesa/swrast/
s_texfilter.c 3460 GLfloat luminance = 1.0F; local
    [all...]
  /external/skia/src/utils/
SkShadowUtils.cpp 499 SkScalar luminance = 0.5f*(max + min)/255.f; local
502 // We compute a color alpha value based on the luminance of the color, scaled by an
507 // f(luminance, 0) = 0
513 SkScalar colorAlpha = (3.544762f + (-4.891428f + 2.3466f*luminance)*luminance)*luminance;
516 // Similarly, we set the greyscale alpha based on luminance and alpha so that
518 // f(luminance, 0) = 0
520 SkScalar greyscaleAlpha = SkTPin(origA*(1 - 0.4f*luminance), 0.0f, 1.0f);
523 // alpha computed from the color's luminance (C_a), and then a black shadow with alpha (S_a
    [all...]
  /external/skqp/src/utils/
SkShadowUtils.cpp 472 SkScalar luminance = 0.5f*(max + min)/255.f; local
475 // We compute a color alpha value based on the luminance of the color, scaled by an
480 // f(luminance, 0) = 0
486 SkScalar colorAlpha = (3.544762f + (-4.891428f + 2.3466f*luminance)*luminance)*luminance;
489 // Similarly, we set the greyscale alpha based on luminance and alpha so that
491 // f(luminance, 0) = 0
493 SkScalar greyscaleAlpha = SkTPin(origA*(1 - 0.4f*luminance), 0.0f, 1.0f);
496 // alpha computed from the color's luminance (C_a), and then a black shadow with alpha (S_a
    [all...]
  /external/mesa3d/docs/specs/
MESA_texture_signed_rgba.spec 64 2) Should the full set of signed formats (alpha, luminance, rgb, etc.)
68 universal format, rgba. alpha/luminance can't be trivially supported
  /external/mesa3d/src/gallium/drivers/svga/include/
svga3d_surfacedefs.h 42 * 1. Red, bump W, luminance and depth are stored in the first channel.
66 SVGA3DBLOCKDESC_LUMINANCE = 1 << 2, /* Block with luminance channel data */
67 SVGA3DBLOCKDESC_Y = 1 << 2, /* Block with video luminance data */
153 uint8 luminance; member in union:SVGA3dChannelDef::__anon33793
    [all...]
  /external/ImageMagick/MagickCore/
pixel.c 4738 luminance; local
5256 luminance; local
5734 luminance; local
    [all...]
  /external/tensorflow/tensorflow/lite/toco/
dump_graphviz.cc 90 const float luminance = 0.2126f * r_ + 0.7152f * g_ + 0.0722f * b_; local
91 const uint8 l = luminance > 128.f ? 0 : 255;
  /external/tensorflow/tensorflow/python/ops/
image_ops_impl.py     [all...]
  /cts/tests/tests/webkit/src/android/webkit/cts/
WebSettingsTest.java     [all...]
  /external/deqp/external/openglcts/modules/gles3/
es3cCopyTexImageConversionsTests.cpp 353 PixelData getLuminance8OESPixelData(GLenum type, unsigned char luminance);
354 PixelData getLuminance8Alpha8OESPixelData(GLenum type, unsigned char luminance, unsigned char alpha);
    [all...]

Completed in 1025 milliseconds

1 2