Searched refs:luma (Results 1 - 25 of 36) sorted by relevance

12

/external/clang/test/CodeGen/
H A Dstruct-matching-constraint.c6 void b(uint16x8_t sat, uint16x8_t luma) argument
10 :"=w"(luma), "=w"(sat)
11 :"0"(luma)
/external/chromium_org/third_party/skia/src/core/
H A DSkMaskGamma.cpp19 virtual SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const SK_OVERRIDE {
21 return luma;
29 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const SK_OVERRIDE {
30 return SkScalarPow(luma, SkScalarInvert(gamma));
45 virtual SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const SK_OVERRIDE {
49 if (luma <= 0.0031308f) {
50 return luma * 12.92f;
52 return 1.055f * SkScalarPow(luma, SkScalarInvert(2.4f))
H A DSkMaskGamma.h27 /** Converts a color component luminance in the color space to a linear luma. */
29 /** Converts a linear luma to a color component luminance in the color space. */
30 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0;
38 SkScalar luma = r * SK_LUM_COEFF_R + local
41 SkASSERT(luma <= SK_Scalar1);
42 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255);
/external/skia/src/core/
H A DSkMaskGamma.cpp19 virtual SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const SK_OVERRIDE {
21 return luma;
29 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const SK_OVERRIDE {
30 return SkScalarPow(luma, SkScalarInvert(gamma));
45 virtual SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const SK_OVERRIDE {
49 if (luma <= 0.0031308f) {
50 return luma * 12.92f;
52 return 1.055f * SkScalarPow(luma, SkScalarInvert(2.4f))
H A DSkMaskGamma.h27 /** Converts a color component luminance in the color space to a linear luma. */
29 /** Converts a linear luma to a color component luminance in the color space. */
30 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0;
38 SkScalar luma = r * SK_LUM_COEFF_R + local
41 SkASSERT(luma <= SK_Scalar1);
42 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255);
/external/skia/src/effects/
H A DSkLumaColorFilter.cpp32 unsigned luma = SkComputeLuminance(SkGetPackedR32(c), local
35 dst[i] = SkPackARGB32(luma, 0, 0, 0);
104 builder->fsCodeAppendf("\tfloat luma = dot(vec3(%f, %f, %f), %s.rgb);\n",
109 builder->fsCodeAppendf("\t%s = vec4(0, 0, 0, luma);\n",
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nouveau/
H A Dnouveau_video.c160 bool luma)
165 unsigned y = luma ? mb->y * 16 : mb->y * 8;
180 if (luma && mb->macroblock_modes.bits.dct_type == PIPE_MPEG12_DCT_TYPE_FIELD)
189 if (luma) {
202 nouveau_vpe_mb_mv_flags(bool luma, int mv_h, int mv_v, bool forward, bool first, bool vert) argument
205 if (luma)
244 bool luma, bool frame, bool forward, bool vert,
261 if (!luma) {
266 mc_header |= nouveau_vpe_mb_mv_flags(luma, mv_horizontal, mv_vertical, forward, first, vert);
270 if (luma)
158 nouveau_vpe_mb_dct_header(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb, bool luma) argument
243 nouveau_vpe_mb_mv(struct nouveau_decoder *dec, unsigned mc_header, bool luma, bool frame, bool forward, bool vert, int x, int y, const short motions[2], unsigned surface, bool first) argument
282 nouveau_vpe_mb_mv_header(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb, bool luma) argument
[all...]
/external/mesa3d/src/gallium/drivers/nouveau/
H A Dnouveau_video.c160 bool luma)
165 unsigned y = luma ? mb->y * 16 : mb->y * 8;
180 if (luma && mb->macroblock_modes.bits.dct_type == PIPE_MPEG12_DCT_TYPE_FIELD)
189 if (luma) {
202 nouveau_vpe_mb_mv_flags(bool luma, int mv_h, int mv_v, bool forward, bool first, bool vert) argument
205 if (luma)
244 bool luma, bool frame, bool forward, bool vert,
261 if (!luma) {
266 mc_header |= nouveau_vpe_mb_mv_flags(luma, mv_horizontal, mv_vertical, forward, first, vert);
270 if (luma)
158 nouveau_vpe_mb_dct_header(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb, bool luma) argument
243 nouveau_vpe_mb_mv(struct nouveau_decoder *dec, unsigned mc_header, bool luma, bool frame, bool forward, bool vert, int x, int y, const short motions[2], unsigned surface, bool first) argument
282 nouveau_vpe_mb_mv_header(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb, bool luma) argument
[all...]
/external/chromium_org/third_party/skia/src/effects/
H A DSkLumaColorFilter.cpp33 unsigned luma = SkComputeLuminance(SkGetPackedR32(c), local
36 dst[i] = SkPackARGB32(luma, 0, 0, 0);
104 fsBuilder->codeAppendf("\tfloat luma = dot(vec3(%f, %f, %f), %s.rgb);\n",
109 fsBuilder->codeAppendf("\t%s = vec4(0, 0, 0, luma);\n",
/external/chromium_org/third_party/libwebp/dsp/
H A Dyuv.h49 // difference of allowing larger range for luma/chroma.
281 const int luma = 16839 * r + 33059 * g + 6420 * b; local
282 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip
301 const int luma = 19595 * r + 38470 * g + 7471 * b; local
302 return (luma + rounding) >> YUV_FIX; // no need to clip
H A Ddsp.h157 // simple filter (only for luma)
165 typedef void (*VP8LumaFilterFunc)(uint8_t* luma, int stride,
/external/webp/src/dsp/
H A Dyuv.h49 // difference of allowing larger range for luma/chroma.
281 const int luma = 16839 * r + 33059 * g + 6420 * b; local
282 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip
301 const int luma = 19595 * r + 38470 * g + 7471 * b; local
302 return (luma + rounding) >> YUV_FIX; // no need to clip
H A Ddsp.h157 // simple filter (only for luma)
165 typedef void (*VP8LumaFilterFunc)(uint8_t* luma, int stride,
/external/chromium_org/third_party/libwebp/webp/
H A Ddecode.h77 // unlike the returned Y luma one. The dimension of the U and V planes
116 // into pre-allocated luma/chroma plane buffers. This function requires the
117 // strides to be passed: one for the luma plane and one for each of the
120 // Pointer to the luma plane ('*luma') is returned or NULL if an error occurred
124 uint8_t* luma, size_t luma_size, int luma_stride,
184 uint8_t* y, *u, *v, *a; // pointer to luma, chroma U/V, alpha samples
185 int y_stride; // luma stride
188 size_t y_size; // luma plane size
291 // will output the raw luma/chrom
[all...]
/external/webp/include/webp/
H A Ddecode.h77 // unlike the returned Y luma one. The dimension of the U and V planes
116 // into pre-allocated luma/chroma plane buffers. This function requires the
117 // strides to be passed: one for the luma plane and one for each of the
120 // Pointer to the luma plane ('*luma') is returned or NULL if an error occurred
124 uint8_t* luma, size_t luma_size, int luma_stride,
184 uint8_t* y, *u, *v, *a; // pointer to luma, chroma U/V, alpha samples
185 int y_stride; // luma stride
188 size_t y_size; // luma plane size
291 // will output the raw luma/chrom
[all...]
/external/libpng/contrib/libtests/
H A Dmakepng.c329 png_uint_32 luma = base - abs(2*x-size_max); local
331 /* 'luma' is now in the range 0..2*size_max, we need
334 luma = (luma*depth_max + size_max) / (2*size_max);
335 set_value(row, rowbytes, x, bit_depth, luma, gamma_table, conv);
451 const png_uint_32 luma = colors[1]; local
455 set_value(row, rowbytes, x, bit_depth, luma, gamma_table,
462 const png_uint_32 luma = colors[1]; local
468 set_value(row, rowbytes, 2*x, bit_depth, luma, gamma_table,
/external/chromium_org/ui/gfx/
H A Dcolor_utils.cc80 int luma = static_cast<int>((0.3 * SkColorGetR(color)) + local
83 return std::max(std::min(luma, 255), 0);
/external/chromium_org/third_party/libwebp/dec/
H A Didec.c660 WebPIDecoder* WebPINewYUVA(uint8_t* luma, size_t luma_size, int luma_stride, argument
664 const int is_external_memory = (luma != NULL);
673 } else { // A luma buffer was passed. Validate the other parameters.
688 idec->output_.u.YUVA.y = luma;
703 WebPIDecoder* WebPINewYUV(uint8_t* luma, size_t luma_size, int luma_stride, argument
706 return WebPINewYUVA(luma, luma_size, luma_stride,
H A Dwebp.c571 uint8_t* luma, size_t luma_size, int luma_stride,
576 if (luma == NULL) return NULL;
581 output.u.YUVA.y = luma;
594 return luma;
570 WebPDecodeYUVInto(const uint8_t* data, size_t data_size, uint8_t* luma, size_t luma_size, int luma_stride, uint8_t* u, size_t u_size, int u_stride, uint8_t* v, size_t v_size, int v_stride) argument
/external/webp/src/dec/
H A Didec.c660 WebPIDecoder* WebPINewYUVA(uint8_t* luma, size_t luma_size, int luma_stride, argument
664 const int is_external_memory = (luma != NULL);
673 } else { // A luma buffer was passed. Validate the other parameters.
688 idec->output_.u.YUVA.y = luma;
703 WebPIDecoder* WebPINewYUV(uint8_t* luma, size_t luma_size, int luma_stride, argument
706 return WebPINewYUVA(luma, luma_size, luma_stride,
H A Dwebp.c583 uint8_t* luma, size_t luma_size, int luma_stride,
588 if (luma == NULL) return NULL;
593 output.u.YUVA.y = luma;
606 return luma;
582 WebPDecodeYUVInto(const uint8_t* data, size_t data_size, uint8_t* luma, size_t luma_size, int luma_stride, uint8_t* u, size_t u_size, int u_stride, uint8_t* v, size_t v_size, int v_stride) argument
/external/deqp/framework/common/
H A DtcuFuzzyImageCompare.cpp332 float luma = toGrayscale(cmp.getPixel(x, y)); local
333 float rF = 0.7f + 0.3f*luma;
/external/kernel-headers/original/uapi/linux/
H A Domap3isp.h602 * @table: Array for luma enhancement table.
613 * @luma: Pointer to luma enhancement structure.
632 struct omap3isp_prev_luma __user *luma; member in struct:omap3isp_prev_update_config
/external/chromium_org/third_party/libvpx/source/libvpx/third_party/libyuv/source/
H A Dplanar_functions.cc2160 const uint8* luma,
2164 int width, const uint8* luma, const uint32 lumacoeff) =
2166 if (!src_argb || !dst_argb || !luma || width <= 0 || height == 0) {
2189 ARGBLumaColorTableRow(src_argb, dst_argb, width, luma, 0x00264b0f);
2158 ARGBLumaColorTable(const uint8* src_argb, int src_stride_argb, uint8* dst_argb, int dst_stride_argb, const uint8* luma, int width, int height) argument
/external/chromium_org/third_party/libyuv/source/
H A Dplanar_functions.cc2160 const uint8* luma,
2164 int width, const uint8* luma, const uint32 lumacoeff) =
2166 if (!src_argb || !dst_argb || !luma || width <= 0 || height == 0) {
2189 ARGBLumaColorTableRow(src_argb, dst_argb, width, luma, 0x00264b0f);
2158 ARGBLumaColorTable(const uint8* src_argb, int src_stride_argb, uint8* dst_argb, int dst_stride_argb, const uint8* luma, int width, int height) argument

Completed in 766 milliseconds

12