Home
last modified time | relevance | path

Searched refs:luminance (Results 1 - 17 of 17) sorted by relevance

/third_party/ffmpeg/libavfilter/
H A Dvf_deflicker.c61 float luminance[SIZE]; member
79 { "mode", "set how to smooth luminance", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=0}, 0, NB_SMOOTH_MODE-1, FLAGS, "mode" },
80 { "m", "set how to smooth luminance", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=0}, 0, NB_SMOOTH_MODE-1, FLAGS, "mode" },
213 *f += s->luminance[y]; in get_am_factor()
217 *f /= s->luminance[0]; in get_am_factor()
228 *f *= s->luminance[y]; in get_gm_factor()
232 *f /= s->luminance[0]; in get_gm_factor()
243 *f += 1.0f / s->luminance[y]; in get_hm_factor()
247 *f /= s->luminance[0]; in get_hm_factor()
258 *f += s->luminance[ in get_qm_factor()
[all...]
/third_party/skia/src/core/
H A DSkMaskGamma.cpp16 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 in SkTMaskGamma_build_correcting_lut()
H A DSkMaskGamma.h21 * 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); in computeLuminance() local
36 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255); in computeLuminance()
37 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255); in computeLuminance()
38 SkScalar b = luminance in computeLuminance()
[all...]
H A DSkVM.cpp1401 // TODO: pull these coefficients from an SkColorSpace? This is sRGB luma/luminance. in store()
1523 static skvm::F32 luminance(skvm::F32 r, skvm::F32 g, skvm::F32 b) { in luminance() function
1543 auto diff = lu - luminance(*r, *g, *b); in set_lum()
1552 lu = luminance(*r, *g, *b); in clip_color()
1753 set_lum (&R, &G, &B, src.a * luminance (dst.r, dst.g, dst.b)); in blend()
1765 set_lum (&R, &G, &B, src.a * luminance (dst.r, dst.g, dst.b)); in blend()
1776 set_lum (&R, &G, &B, src.a * luminance(dst.r, dst.g, dst.b)); in blend()
1787 set_lum (&R, &G, &B, dst.a * luminance(src.r, src.g, src.b)); in blend()
/third_party/skia/samplecode/
H A DSampleShadowColor.cpp122 SkScalar luminance = 0.5f*(max + min) / 255.f; in drawShadowedPath() local
123 SkScalar alpha = (.6 - .4*luminance)*luminance*luminance + 0.3f; in drawShadowedPath()
/third_party/mesa3d/src/mesa/main/
H A Dtexcompress_bptc_tmp.h1212 int luminance; in get_rgba_endpoints_unorm() local
1223 luminance = p[0] + p[1] + p[2]; in get_rgba_endpoints_unorm()
1224 if (luminance < average_luminance) { in get_rgba_endpoints_unorm()
1305 int luminance; in write_rgb_indices_unorm() local
1318 /* If the endpoints have the same luminance then we'll just use index 0 for in write_rgb_indices_unorm()
1327 luminance = src[0] + src[1] + src[2]; in write_rgb_indices_unorm()
1329 index = ((luminance - endpoint_luminances[0]) * 3 / in write_rgb_indices_unorm()
1516 float luminance; in get_endpoints_float() local
1526 luminance = p[0] + p[1] + p[2]; in get_endpoints_float()
1527 if (luminance < average_luminanc in get_endpoints_float()
1588 float luminance; write_rgb_indices_float() local
[all...]
H A Dreadpix.c512 * Converting to luminance also requires converting to RGBA first, so we can in read_rgba_pixels()
513 * then compute luminance values as L=R+G+B. Notice that this is different in read_rgba_pixels()
600 void *luminance; in read_rgba_pixels() local
607 luminance = malloc(luminance_bytes); in read_rgba_pixels()
608 if (!luminance) { in read_rgba_pixels()
614 luminance, format, transferOps); in read_rgba_pixels()
621 luminance, luminance_format, luminance_stride, in read_rgba_pixels()
623 free(luminance); in read_rgba_pixels()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
H A DPixelPipeline.hpp26 PixelRoutine(state, shader), current(rs[0]), diffuse(vs[0]), specular(vs[1]), perturbate(false), luminance(false), previousScaling(false) {} in PixelPipeline()
44 // bem(l) offsets and luminance
109 bool luminance; member in sw::PixelPipeline
H A DPixelPipeline.cpp434 if(luminance)
440 luminance = false;
801 luminance = true;
/third_party/skia/src/utils/
H A DSkShadowUtils.cpp538 SkScalar luminance = 0.5f*(max + min)/255.f; in ComputeTonalColors() local
541 // We compute a color alpha value based on the luminance of the color, scaled by an in ComputeTonalColors()
546 // f(luminance, 0) = 0 in ComputeTonalColors()
552 SkScalar colorAlpha = (3.544762f + (-4.891428f + 2.3466f*luminance)*luminance)*luminance; in ComputeTonalColors()
555 // Similarly, we set the greyscale alpha based on luminance and alpha so that in ComputeTonalColors()
557 // f(luminance, 0) = 0 in ComputeTonalColors()
559 SkScalar greyscaleAlpha = SkTPin(origA*(1 - 0.4f*luminance), 0.0f, 1.0f); in ComputeTonalColors()
562 // alpha computed from the color's luminance (C_ in ComputeTonalColors()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DBlitGL.cpp602 GLint luminance = (lumaFormat == GL_ALPHA) ? GL_ZERO : GL_RED; in copySubTexture() local
618 GLint swizzle[4] = {luminance, luminance, luminance, alpha}; in copySubTexture()
/third_party/mesa3d/src/intel/isl/
H A Disl_format.c529 /* We also map alpha and luminance-alpha formats to red as well, in isl_format_for_pipe_format()
558 /* Sadly, we have to use luminance[-alpha] formats for sRGB decoding. */ in isl_format_for_pipe_format()
1061 const uint8_t luminance = fmtl->channels.l.bits; in isl_format_has_color_component() local
1065 return (fmtl->channels.r.bits + intensity + luminance) > 0; in isl_format_has_color_component()
1067 return (fmtl->channels.g.bits + intensity + luminance) > 0; in isl_format_has_color_component()
1069 return (fmtl->channels.b.bits + intensity + luminance) > 0; in isl_format_has_color_component()
/third_party/mesa3d/src/gallium/drivers/svga/include/
H A Dsvga3d_surfacedefs.h45 * 1. Red, bump W, luminance and depth are stored in the first channel.
340 uint8 luminance; member
/third_party/vk-gl-cts/external/openglcts/modules/gles3/
H A Des3cCopyTexImageConversionsTests.cpp353 PixelData getLuminance8OESPixelData(GLenum type, unsigned char luminance);
354 PixelData getLuminance8Alpha8OESPixelData(GLenum type, unsigned char luminance, unsigned char alpha);
721 * @param luminance Luminance value. Will get cloned to blue/green/red channels.
725 PixelData ConversionDatabase::getLuminance8OESPixelData(GLenum type, unsigned char luminance) in getLuminance8OESPixelData() argument
737 result.blue.unsigned_byte_data = luminance; in getLuminance8OESPixelData()
739 result.green.unsigned_byte_data = luminance; in getLuminance8OESPixelData()
741 result.red.unsigned_byte_data = luminance; in getLuminance8OESPixelData()
755 * @param luminance Luminance value. Will be cloned to blue/green/red channels.
760 PixelData ConversionDatabase::getLuminance8Alpha8OESPixelData(GLenum type, unsigned char luminance, unsigned char alpha) in getLuminance8Alpha8OESPixelData() argument
772 result.blue.unsigned_byte_data = luminance; in getLuminance8Alpha8OESPixelData()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A Dformatutils.cpp858 GLuint luminance, in AddLUMAFormat()
874 formatInfo.luminanceBits = luminance; in AddLUMAFormat()
876 formatInfo.pixelBytes = (luminance + alpha) / 8; in AddLUMAFormat()
877 formatInfo.componentCount = ((luminance > 0) ? 1 : 0) + ((alpha > 0) ? 1 : 0); in AddLUMAFormat()
1363 // Unsized luminance alpha formats in BuildInternalFormatInfoMap()
855 AddLUMAFormat(InternalFormatInfoMap *map, GLenum internalFormat, bool sized, GLuint luminance, GLuint alpha, GLenum format, GLenum type, GLenum componentType, InternalFormat::SupportCheckFunction textureSupport, InternalFormat::SupportCheckFunction filterSupport, InternalFormat::SupportCheckFunction textureAttachmentSupport, InternalFormat::SupportCheckFunction renderbufferSupport, InternalFormat::SupportCheckFunction blendSupport) AddLUMAFormat() argument
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcTextureRepeatModeTests.cpp48 int luminance; /* luminance bits */ member
H A DglcPackedPixelsTests.cpp83 int luminance; // luminance bits member

Completed in 40 milliseconds