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

123

/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/skia/src/gpu/effects/
H A DGrLumaColorFilterEffect.fp12 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fRGBA[0] +
15 return GrColor4f(0, 0, 0, luma);
21 half luma = dot(SK_ITU_BT709_LUM_COEFF, sk_InColor.rgb);
22 sk_OutColor = half4(0, 0, 0, luma);
H A DGrLumaColorFilterEffect.h22 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fRGBA[0] + variable
25 return GrColor4f(0, 0, 0, luma);
/external/skqp/src/gpu/effects/
H A DGrLumaColorFilterEffect.fp12 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fRGBA[0] +
15 return GrColor4f(0, 0, 0, luma);
21 half luma = dot(SK_ITU_BT709_LUM_COEFF, sk_InColor.rgb);
22 sk_OutColor = half4(0, 0, 0, luma);
H A DGrLumaColorFilterEffect.h22 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fRGBA[0] + variable
25 return GrColor4f(0, 0, 0, luma);
/external/skia/src/core/
H A DSkMaskGamma.cpp19 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override {
21 return luma;
29 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override {
30 return SkScalarPow(luma, SkScalarInvert(gamma));
45 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const 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/skqp/src/core/
H A DSkMaskGamma.cpp19 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override {
21 return luma;
29 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override {
30 return SkScalarPow(luma, SkScalarInvert(gamma));
45 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const 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/ImageMagick/MagickCore/
H A Dgem.c74 % ConvertHCLToRGB() transforms a (hue, chroma, luma) to a (red, green,
80 % const double luma,double *red,double *green,double *blue)
84 % o hue, chroma, luma: A double value representing a component of the
91 const double luma,double *red,double *green,double *blue)
149 m=luma-(0.298839*r+0.586811*g+0.114350*b);
167 % ConvertHCLpToRGB() transforms a (hue, chroma, luma) to a (red, green,
174 % const double luma,double *red,double *green,double *blue)
178 % o hue, chroma, luma: A double value representing a componenet of the
185 const double luma,double *red,double *green,double *blue)
244 m=luma
88 ConvertHCLToRGB(const double hue,const double chroma, const double luma,double *red,double *green,double *blue) argument
181 ConvertHCLpToRGB(const double hue,const double chroma, const double luma,double *red,double *green,double *blue) argument
744 ConvertLCHabToXYZ(const double luma,const double chroma, const double hue,double *X,double *Y,double *Z) argument
751 ConvertLCHabToRGB(const double luma,const double chroma, const double hue,double *red,double *green,double *blue) argument
797 ConvertLCHuvToXYZ(const double luma,const double chroma, const double hue,double *X,double *Y,double *Z) argument
804 ConvertLCHuvToRGB(const double luma,const double chroma, const double hue,double *red,double *green,double *blue) argument
850 ConvertRGBToHCL(const double red,const double green, const double blue,double *hue,double *chroma,double *luma) argument
911 ConvertRGBToHCLp(const double red,const double green, const double blue,double *hue,double *chroma,double *luma) argument
1300 ConvertXYZToLCHab(const double X,const double Y, const double Z,double *luma,double *chroma,double *hue) argument
1314 ConvertRGBToLCHab(const double red,const double green, const double blue,double *luma,double *chroma,double *hue) argument
1361 ConvertXYZToLCHuv(const double X,const double Y, const double Z,double *luma,double *chroma,double *hue) argument
1375 ConvertRGBToLCHuv(const double red,const double green, const double blue,double *luma,double *chroma,double *hue) argument
[all...]
H A Denhance.c741 luma;
743 luma=0.21267f*image->colormap[i].red+0.71526*image->colormap[i].green+
745 image->colormap[i].red=luma+color_correction.saturation*cdl_map[
746 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma;
747 image->colormap[i].green=luma+color_correction.saturation*cdl_map[
748 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma;
749 image->colormap[i].blue=luma+color_correction.saturation*cdl_map[
750 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma;
765 luma;
783 luma
735 luma; local
759 luma; local
2943 luma, local
2966 luma, local
3104 luma, local
3127 luma, local
[all...]
H A Dcomposite.c184 const MagickRealType luma,MagickRealType *red,MagickRealType *green,
243 m=luma-(0.298839*r+0.586811*g+0.114350*b);
251 MagickRealType *luma)
266 assert(luma != (MagickRealType *) NULL);
286 *luma=QuantumScale*(0.298839*r+0.586811*g+0.114350*b);
1172 Determine the luma and chroma scale.
1226 luma,
1277 luma=0.0;
1763 &sans,&sans,&luma);
1766 HCLComposite(hue,chroma,luma,
181 HCLComposite(const MagickRealType hue,const MagickRealType chroma, const MagickRealType luma,MagickRealType *red,MagickRealType *green, MagickRealType *blue) argument
247 CompositeHCL(const MagickRealType red,const MagickRealType green, const MagickRealType blue,MagickRealType *hue,MagickRealType *chroma, MagickRealType *luma) argument
1224 luma, local
[all...]
/external/mesa3d/src/gallium/drivers/nouveau/
H A Dnouveau_video.c149 bool luma)
154 unsigned y = luma ? mb->y * 16 : mb->y * 8;
169 if (luma && mb->macroblock_modes.bits.dct_type == PIPE_MPEG12_DCT_TYPE_FIELD)
178 if (luma) {
191 nouveau_vpe_mb_mv_flags(bool luma, int mv_h, int mv_v, bool forward, bool first, bool vert) argument
194 if (luma)
233 bool luma, bool frame, bool forward, bool vert,
250 if (!luma) {
255 mc_header |= nouveau_vpe_mb_mv_flags(luma, mv_horizontal, mv_vertical, forward, first, vert);
259 if (luma)
147 nouveau_vpe_mb_dct_header(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb, bool luma) argument
232 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
271 nouveau_vpe_mb_mv_header(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb, bool luma) argument
[all...]
/external/ImageMagick/coders/
H A Dpcd.c98 % MagickBooleanType DecodeImage(Image *image,unsigned char *luma,
105 % o luma: the address of a character buffer that contains the
115 static MagickBooleanType DecodeImage(Image *image,unsigned char *luma,
185 assert(luma != (unsigned char *) NULL);
249 q=luma;
268 q=luma+row*image->columns;
516 *luma;
597 Allocate luma and chroma memory.
606 luma=(unsigned char *) AcquireQuantumMemory(image->columns+1UL,image->rows*
607 10*sizeof(*luma));
112 DecodeImage(Image *image,unsigned char *luma, unsigned char *chroma1,unsigned char *chroma2,ExceptionInfo *exception) argument
511 *luma; local
[all...]
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_uvd.c159 struct r600_texture *luma = (struct r600_texture *)buf->resources[0]; local
165 ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface);
167 return luma->resource.buf;
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_uvd.c124 struct r600_texture *luma = (struct r600_texture *)buf->resources[0]; local
129 ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface);
131 return luma->resource.buf;
/external/libmpeg2/decoder/
H A Dimpeg2d_mc.h59 void impeg2d_set_mc_params(comp_mc_params_t *luma,
/external/mesa3d/src/gallium/drivers/radeon/
H A Dradeon_vce_50.c130 enc->luma->level[0].offset); // inputPictureLumaAddressHi/Lo
133 RVCE_CS(align(enc->luma->level[0].nblk_y, 16)); // encInputFrameYPitch
134 RVCE_CS(enc->luma->level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch
H A Dradeon_vce_40_2_2.c97 RVCE_CS(enc->luma->level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch
99 RVCE_CS(align(enc->luma->level[0].nblk_y, 16) / 8); // encRefYHeightInQw
323 enc->luma->level[0].offset); // inputPictureLumaAddressHi/Lo
326 RVCE_CS(align(enc->luma->level[0].nblk_y, 16)); // encInputFrameYPitch
327 RVCE_CS(enc->luma->level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch
H A Dradeon_uvd.c1351 * fill decoding target field from the luma and chroma surfaces
1353 void ruvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma, argument
1356 msg->body.decode.dt_pitch = luma->level[0].nblk_x * luma->bpe;
1357 switch (luma->level[0].mode) {
1375 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0);
1378 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1);
1385 assert(luma->bankw == chroma->bankw);
1386 assert(luma->bankh == chroma->bankh);
1387 assert(luma
[all...]
/external/pdfium/third_party/libtiff/
H A Dtif_color.c236 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) argument
241 #define LumaRed luma[0]
242 #define LumaGreen luma[1]
243 #define LumaBlue luma[2]
/external/webp/include/webp/
H A Ddecode.h77 // WebPFree(), unlike the returned Y luma one. The dimension of the U and V
119 // into pre-allocated luma/chroma plane buffers. This function requires the
120 // strides to be passed: one for the luma plane and one for each of the
123 // Pointer to the luma plane ('*luma') is returned or NULL if an error occurred
127 uint8_t* luma, size_t luma_size, int luma_stride,
187 uint8_t* y, *u, *v, *a; // pointer to luma, chroma U/V, alpha samples
188 int y_stride; // luma stride
191 size_t y_size; // luma plane size
297 // will output the raw luma/chrom
[all...]
/external/webp/src/webp/
H A Ddecode.h77 // WebPFree(), unlike the returned Y luma one. The dimension of the U and V
119 // into pre-allocated luma/chroma plane buffers. This function requires the
120 // strides to be passed: one for the luma plane and one for each of the
123 // Pointer to the luma plane ('*luma') is returned or NULL if an error occurred
127 uint8_t* luma, size_t luma_size, int luma_stride,
187 uint8_t* y, *u, *v, *a; // pointer to luma, chroma U/V, alpha samples
188 int y_stride; // luma stride
191 size_t y_size; // luma plane size
297 // will output the raw luma/chrom
[all...]
/external/libdrm/tests/planetest/
H A Dbo.c34 uint8_t *luma = bo->map_addr + i * bo->pitch; local
37 luma[j] = MAKE_YUV_601_Y(r, g, b);
/external/webp/src/dsp/
H A Dyuv.h179 const int luma = 16839 * r + 33059 * g + 6420 * b; local
180 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip

Completed in 1747 milliseconds

123