Home
last modified time | relevance | path

Searched refs:luma (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/core/
DSkMaskGamma.cpp19 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma()
21 return luma; in fromLuma()
29 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override { in fromLuma()
30 return SkScalarPow(luma, SkScalarInvert(gamma)); in fromLuma()
45 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma()
49 if (luma <= 0.0031308f) { in fromLuma()
50 return luma * 12.92f; in fromLuma()
52 return 1.055f * SkScalarPow(luma, SkScalarInvert(2.4f)) in fromLuma()
DSkMaskGamma.h30 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0;
38 SkScalar luma = r * SK_LUM_COEFF_R + in computeLuminance() local
41 SkASSERT(luma <= SK_Scalar1); in computeLuminance()
42 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255); in computeLuminance()
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c160 bool luma) in nouveau_vpe_mb_dct_header() argument
165 unsigned y = luma ? mb->y * 16 : mb->y * 8; in nouveau_vpe_mb_dct_header()
180 if (luma && mb->macroblock_modes.bits.dct_type == PIPE_MPEG12_DCT_TYPE_FIELD) in nouveau_vpe_mb_dct_header()
189 if (luma) { in nouveau_vpe_mb_dct_header()
202 nouveau_vpe_mb_mv_flags(bool luma, int mv_h, int mv_v, bool forward, bool first, bool vert) in nouveau_vpe_mb_mv_flags() argument
205 if (luma) in nouveau_vpe_mb_mv_flags()
244 bool luma, bool frame, bool forward, bool vert, in nouveau_vpe_mb_mv() argument
261 if (!luma) { in nouveau_vpe_mb_mv()
266 mc_header |= nouveau_vpe_mb_mv_flags(luma, mv_horizontal, mv_vertical, forward, first, vert); in nouveau_vpe_mb_mv()
270 if (luma) in nouveau_vpe_mb_mv()
[all …]
/external/clang/test/CodeGen/
Dstruct-matching-constraint.c6 void b(uint16x8_t sat, uint16x8_t luma) in b() argument
10 :"=w"(luma), "=w"(sat) in b()
11 :"0"(luma) in b()
/external/opencv3/modules/cudacodec/src/cuda/
Dnv12_to_rgb.cu71 float luma, chromaCb, chromaCr; in YUV2RGB() local
74 luma = (float)yuvi[0]; in YUV2RGB()
79 *red = (luma * constHueColorSpaceMat[0]) + in YUV2RGB()
83 *green = (luma * constHueColorSpaceMat[3]) + in YUV2RGB()
87 *blue = (luma * constHueColorSpaceMat[6]) + in YUV2RGB()
/external/webp/src/dsp/
Dyuv.h198 const int luma = 16839 * r + 33059 * g + 6420 * b; in VP8RGBToY() local
199 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip in VP8RGBToY()
218 const int luma = 19595 * r + 38470 * g + 7471 * b; in VP8RGBToY() local
219 return (luma + rounding) >> YUV_FIX; // no need to clip in VP8RGBToY()
/external/skia/src/effects/
DSkLumaColorFilter.cpp33 unsigned luma = SkComputeLuminance(SkGetPackedR32(c), in filterSpan() local
36 dst[i] = SkPackARGB32(luma, 0, 0, 0); in filterSpan()
/external/opencv3/modules/cudalegacy/src/cuda/
DNCVColorConversion.hpp64 Ncv32f luma = 0.299f * pixIn.x + 0.587f * pixIn.y + 0.114f * pixIn.z;
65 _TDemoteClampNN(luma, pixOut.x);
/external/opencv3/3rdparty/libtiff/
Dtif_color.c217 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) in TIFFYCbCrToRGBInit() argument
222 #define LumaRed luma[0] in TIFFYCbCrToRGBInit()
223 #define LumaGreen luma[1] in TIFFYCbCrToRGBInit()
224 #define LumaBlue luma[2] in TIFFYCbCrToRGBInit()
/external/opencv3/3rdparty/libwebp/dsp/
Dyuv.h243 const int luma = 16839 * r + 33059 * g + 6420 * b; in VP8RGBToY() local
244 return (luma + kRound) >> YUV_FIX; // no need to clip in VP8RGBToY()
264 const int luma = 19595 * r + 38470 * g + 7471 * b; in VP8RGBToY() local
265 return (luma + kRound) >> YUV_FIX; // no need to clip in VP8RGBToY()
Ddsp.h125 typedef void (*VP8LumaFilterFunc)(uint8_t* luma, int stride,
/external/pdfium/third_party/libtiff/
Dtif_color.c217 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) in TIFFYCbCrToRGBInit() argument
222 #define LumaRed luma[0] in TIFFYCbCrToRGBInit()
223 #define LumaGreen luma[1] in TIFFYCbCrToRGBInit()
224 #define LumaBlue luma[2] in TIFFYCbCrToRGBInit()
/external/opencv3/3rdparty/libwebp/webp/
Ddecode.h124 uint8_t* luma, size_t luma_size, int luma_stride,
302 uint8_t* luma, size_t luma_size, int luma_stride,
310 uint8_t* luma, size_t luma_size, int luma_stride,
/external/webp/src/webp/
Ddecode.h127 uint8_t* luma, size_t luma_size, int luma_stride,
305 uint8_t* luma, size_t luma_size, int luma_stride,
313 uint8_t* luma, size_t luma_size, int luma_stride,
/external/webp/include/webp/
Ddecode.h127 uint8_t* luma, size_t luma_size, int luma_stride,
305 uint8_t* luma, size_t luma_size, int luma_stride,
313 uint8_t* luma, size_t luma_size, int luma_stride,
/external/libpng/contrib/libtests/
Dmakepng.c542 png_uint_32 luma = base - abs(2*x-size_max); in generate_row() local
547 luma = (luma*depth_max + size_max) / (2*size_max); in generate_row()
548 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, conv); in generate_row()
664 const png_uint_32 luma = colors[1]; in generate_row() local
668 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, in generate_row()
675 const png_uint_32 luma = colors[1]; in generate_row() local
681 set_value(row, rowbytes, 2*x, bit_depth, luma, gamma_table, in generate_row()
/external/libmpeg2/decoder/
Dimpeg2d_mc.h59 void impeg2d_set_mc_params(comp_mc_params_t *luma,
/external/libdrm/tests/planetest/
Dbo.c34 uint8_t *luma = bo->map_addr + i * bo->pitch; in draw_rect_yuv() local
37 luma[j] = MAKE_YUV_601_Y(r, g, b); in draw_rect_yuv()
/external/webp/src/dec/
Didec.c670 WebPIDecoder* WebPINewYUVA(uint8_t* luma, size_t luma_size, int luma_stride, in WebPINewYUVA() argument
674 const int is_external_memory = (luma != NULL); in WebPINewYUVA()
698 idec->output_.u.YUVA.y = luma; in WebPINewYUVA()
713 WebPIDecoder* WebPINewYUV(uint8_t* luma, size_t luma_size, int luma_stride, in WebPINewYUV() argument
716 return WebPINewYUVA(luma, luma_size, luma_stride, in WebPINewYUV()
Dwebp.c575 uint8_t* luma, size_t luma_size, int luma_stride, in WebPDecodeYUVInto() argument
580 if (luma == NULL) return NULL; in WebPDecodeYUVInto()
585 output.u.YUVA.y = luma; in WebPDecodeYUVInto()
598 return luma; in WebPDecodeYUVInto()
/external/opencv3/3rdparty/libwebp/dec/
Didec.c646 WebPIDecoder* WebPINewYUVA(uint8_t* luma, size_t luma_size, int luma_stride, in WebPINewYUVA() argument
650 const int is_external_memory = (luma != NULL); in WebPINewYUVA()
674 idec->output_.u.YUVA.y = luma; in WebPINewYUVA()
689 WebPIDecoder* WebPINewYUV(uint8_t* luma, size_t luma_size, int luma_stride, in WebPINewYUV() argument
692 return WebPINewYUVA(luma, luma_size, luma_stride, in WebPINewYUV()
Dwebp.c534 uint8_t* luma, size_t luma_size, int luma_stride, in WebPDecodeYUVInto() argument
539 if (luma == NULL) return NULL; in WebPDecodeYUVInto()
544 output.u.YUVA.y = luma; in WebPDecodeYUVInto()
557 return luma; in WebPDecodeYUVInto()
/external/deqp/framework/common/
DtcuFuzzyImageCompare.cpp337 const float luma = toGrayscale(cmp.getPixel(x, y)); in fuzzyCompare() local
338 const float rF = 0.7f + 0.3f*luma; in fuzzyCompare()
/external/webp/src/enc/
Dpicture_csp.c238 const int luma = 19595 * r + 38470 * g + 7471 * b + YUV_HALF; in RGBToGray() local
239 return (luma >> YUV_FIX); in RGBToGray()
370 const int luma = 16839 * r + 33059 * g + 6420 * b + SROUNDER; in ConvertRGBToY() local
371 return clip_8b(16 + (luma >> (YUV_FIX + SFIX))); in ConvertRGBToY()
/external/icu/icu4c/source/data/locales/
Ddav.txt68 "luma lwa p",

12