Home
last modified time | relevance | path

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

1234

/external/skqp/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/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/skqp/samplecode/
DSampleShadowColor.cpp126 SkScalar luminance = 0.5f*(max + min) / 255.f; in drawShadowedPath() local
127 SkScalar alpha = (.6 - .4*luminance)*luminance*luminance + 0.3f; in drawShadowedPath()
/external/skia/samplecode/
DSampleShadowColor.cpp126 SkScalar luminance = 0.5f*(max + min) / 255.f; in drawShadowedPath() local
127 SkScalar alpha = (.6 - .4*luminance)*luminance*luminance + 0.3f; in drawShadowedPath()
/external/mesa3d/src/mesa/main/
Dtexcompress_bptc.c1018 int luminance; in get_rgba_endpoints_unorm() local
1029 luminance = p[0] + p[1] + p[2]; in get_rgba_endpoints_unorm()
1030 if (luminance < average_luminance) { in get_rgba_endpoints_unorm()
1111 int luminance; in write_rgb_indices_unorm() local
1133 luminance = src[0] + src[1] + src[2]; in write_rgb_indices_unorm()
1135 index = ((luminance - endpoint_luminances[0]) * 3 / in write_rgb_indices_unorm()
1367 float luminance; in get_endpoints_float() local
1377 luminance = p[0] + p[1] + p[2]; in get_endpoints_float()
1378 if (luminance < average_luminance) { in get_endpoints_float()
1439 float luminance; in write_rgb_indices_float() local
[all …]
Dreadpix.c582 void *luminance; in read_rgba_pixels() local
589 luminance = malloc(luminance_bytes); in read_rgba_pixels()
590 if (!luminance) { in read_rgba_pixels()
596 luminance, format, transferOps); in read_rgba_pixels()
603 luminance, luminance_format, luminance_stride, in read_rgba_pixels()
605 free(luminance); in read_rgba_pixels()
/external/autotest/client/site_tests/video_WebRtcCamera/
Dssim.js79 var luminance = (2 * muX * muY + C1) /
87 return luminance * contrast * structure;
/external/autotest/client/site_tests/video_WebRtcPeerConnectionWithCamera/
Dssim.js79 var luminance = (2 * muX * muY + C1) /
87 return luminance * contrast * structure;
/external/webrtc/webrtc/modules/video_processing/test/
DreadYUV420file.m12 % nPx bytes luminance, nPx/4 bytes U, nPx/4 bytes V
31 % Store luminance
DwriteYUV420file.m12 % Write luminance
/external/mesa3d/src/mesa/swrast/
Ds_texfilter.c3460 GLfloat luminance = 1.0F; in shadow_compare4() local
3464 if (coord > depth00) luminance -= d; in shadow_compare4()
3465 if (coord > depth01) luminance -= d; in shadow_compare4()
3466 if (coord > depth10) luminance -= d; in shadow_compare4()
3467 if (coord > depth11) luminance -= d; in shadow_compare4()
3468 return luminance; in shadow_compare4()
3470 if (coord < depth00) luminance -= d; in shadow_compare4()
3471 if (coord < depth01) luminance -= d; in shadow_compare4()
3472 if (coord < depth10) luminance -= d; in shadow_compare4()
3473 if (coord < depth11) luminance -= d; in shadow_compare4()
[all …]
/external/skqp/src/utils/
DSkShadowUtils.cpp475 SkScalar luminance = 0.5f*(max + min)/255.f; in ComputeTonalColors() local
489 SkScalar colorAlpha = (3.544762f + (-4.891428f + 2.3466f*luminance)*luminance)*luminance; in ComputeTonalColors()
496 SkScalar greyscaleAlpha = SkTPin(origA*(1 - 0.4f*luminance), 0.0f, 1.0f); in ComputeTonalColors()
/external/skia/src/utils/
DSkShadowUtils.cpp478 SkScalar luminance = 0.5f*(max + min)/255.f; in ComputeTonalColors() local
492 SkScalar colorAlpha = (3.544762f + (-4.891428f + 2.3466f*luminance)*luminance)*luminance; in ComputeTonalColors()
499 SkScalar greyscaleAlpha = SkTPin(origA*(1 - 0.4f*luminance), 0.0f, 1.0f); in ComputeTonalColors()
/external/swiftshader/src/Shader/
DPixelPipeline.hpp26 …r), current(rs[0]), diffuse(vs[0]), specular(vs[1]), perturbate(false), luminance(false), previous… in PixelPipeline()
109 bool luminance; member in sw::PixelPipeline
/external/tensorflow/tensorflow/contrib/lite/toco/
Ddump_graphviz.cc49 const float luminance = 0.2126f * r_ + 0.7152f * g_ + 0.0722f * b_; in TextColorString() local
50 const uint8 l = luminance > 128.f ? 0 : 255; in TextColorString()
/external/libxcam/
DChangeLog89 function on luminance to improve the contrast inside each block.
124 - apply bidirectional log based function on luminance to improve
159 - preserve more information on luminance values of the scene
/external/mesa3d/docs/specs/
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
/external/ImageMagick/MagickCore/
Dpixel.c4820 luminance; in InterpolatePixelChannel() local
4843 luminance.x=GetPixelLuma(image,p)-(double) in InterpolatePixelChannel()
4845 luminance.y=GetPixelLuma(image,p+GetPixelChannels(image))-(double) in InterpolatePixelChannel()
4847 if (fabs(luminance.x) < fabs(luminance.y)) in InterpolatePixelChannel()
5338 luminance; in InterpolatePixelChannels() local
5370 luminance.x=fabs((double) (GetPixelLuma(source,p)- in InterpolatePixelChannels()
5372 luminance.y=fabs((double) (GetPixelLuma(source,p+ in InterpolatePixelChannels()
5375 if (luminance.x < luminance.y) in InterpolatePixelChannels()
5820 luminance; in InterpolatePixelInfo() local
5830 luminance.x=GetPixelLuma(image,p)-(double) in InterpolatePixelInfo()
[all …]
/external/libjpeg-turbo/
Dwizard.txt48 # This is table 0 (the luminance table):
74 By default, cjpeg will use quantization table 0 for luminance components and
Dusage.txt130 separate quality settings for luminance and chrominance (or, in general,
134 components can be quantized more than the luminance components without
145 given, this is used for both luminance and chrominance (slots 0 and 1,
151 JPEG files generated with separate luminance and chrominance quality are
541 luminance channel is preserved exactly, so this is a better method of reducing
/external/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_surfacedefs.h153 uint8 luminance; member
/external/autotest/client/deps/glbench/src/
Dyuv2rgb_1.glslf68 * Each Y texel provides luminance information for one pixel in the image.
/external/mesa3d/docs/relnotes/
D4.148 Allows one to specify the luminance of shadowed pixels.

1234