Home
last modified time | relevance | path

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

123

/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/ImageMagick/MagickCore/
Dgem.c89 const double luma,double *red,double *green,double *blue) in ConvertHCLToRGB() argument
147 m=luma-(0.298839*r+0.586811*g+0.114350*b); in ConvertHCLToRGB()
182 const double luma,double *red,double *green,double *blue) in ConvertHCLpToRGB() argument
241 m=luma-(0.298839*r+0.586811*g+0.114350*b); in ConvertHCLpToRGB()
245 z=luma/(luma-m); in ConvertHCLpToRGB()
251 z=(1.0-luma)/(m+c-luma); in ConvertHCLpToRGB()
744 static inline void ConvertLCHabToXYZ(const double luma,const double chroma, in ConvertLCHabToXYZ() argument
747 ConvertLabToXYZ(luma,chroma*cos(hue*MagickPI/180.0),chroma* in ConvertLCHabToXYZ()
751 MagickPrivate void ConvertLCHabToRGB(const double luma,const double chroma, in ConvertLCHabToRGB() argument
765 ConvertLCHabToXYZ(100.0*luma,255.0*(chroma-0.5),360.0*hue,&X,&Y,&Z); in ConvertLCHabToRGB()
[all …]
Denhance.c735 luma; in ColorDecisionListImage() local
737 luma=0.21267f*image->colormap[i].red+0.71526*image->colormap[i].green+ in ColorDecisionListImage()
739 image->colormap[i].red=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage()
740 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma; in ColorDecisionListImage()
741 image->colormap[i].green=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage()
742 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma; in ColorDecisionListImage()
743 image->colormap[i].blue=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage()
744 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma; in ColorDecisionListImage()
759 luma; in ColorDecisionListImage() local
777 luma=0.21267f*GetPixelRed(image,q)+0.71526*GetPixelGreen(image,q)+ in ColorDecisionListImage()
[all …]
Dcomposite.c182 const MagickRealType luma,MagickRealType *red,MagickRealType *green, in HCLComposite() argument
241 m=luma-(0.298839*r+0.586811*g+0.114350*b); in HCLComposite()
249 MagickRealType *luma) in CompositeHCL() argument
264 assert(luma != (MagickRealType *) NULL); in CompositeHCL()
284 *luma=QuantumScale*(0.298839*r+0.586811*g+0.114350*b); in CompositeHCL()
1224 luma, local
1275 luma=0.0;
1761 &sans,&sans,&luma);
1764 HCLComposite(hue,chroma,luma,&red,&green,&blue);
1933 &hue,&chroma,&luma);
[all …]
/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/ImageMagick/coders/
Dpcd.c112 static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, in DecodeImage() argument
182 assert(luma != (unsigned char *) NULL); in DecodeImage()
246 q=luma; in DecodeImage()
265 q=luma+row*image->columns; in DecodeImage()
511 *luma; in ReadPCDImage() local
601 luma=(unsigned char *) AcquireQuantumMemory(image->columns+1UL,image->rows* in ReadPCDImage()
602 10*sizeof(*luma)); in ReadPCDImage()
604 (chroma2 == (unsigned char *) NULL) || (luma == (unsigned char *) NULL)) in ReadPCDImage()
646 yy=luma; in ReadPCDImage()
665 yy=luma; in ReadPCDImage()
[all …]
/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/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/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()
/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/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/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/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()

123