/external/skia/src/core/ |
D | SkMaskGamma.cpp | 20 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() 22 return luma; in fromLuma() 30 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override { in fromLuma() 31 return SkScalarPow(luma, SkScalarInvert(gamma)); in fromLuma() 46 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() 50 if (luma <= 0.0031308f) { in fromLuma() 51 return luma * 12.92f; in fromLuma() 53 return 1.055f * SkScalarPow(luma, SkScalarInvert(2.4f)) in fromLuma()
|
D | SkMaskGamma.h | 31 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0; 39 SkScalar luma = r * SK_LUM_COEFF_R + in computeLuminance() local 42 SkASSERT(luma <= SK_Scalar1); in computeLuminance() 43 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255); in computeLuminance()
|
/external/skqp/src/core/ |
D | SkMaskGamma.cpp | 20 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() 22 return luma; in fromLuma() 30 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override { in fromLuma() 31 return SkScalarPow(luma, SkScalarInvert(gamma)); in fromLuma() 46 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma() 50 if (luma <= 0.0031308f) { in fromLuma() 51 return luma * 12.92f; in fromLuma() 53 return 1.055f * SkScalarPow(luma, SkScalarInvert(2.4f)) in fromLuma()
|
D | SkMaskGamma.h | 31 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0; 39 SkScalar luma = r * SK_LUM_COEFF_R + in computeLuminance() local 42 SkASSERT(luma <= SK_Scalar1); in computeLuminance() 43 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255); in computeLuminance()
|
/external/ImageMagick/MagickCore/ |
D | gem.c | 89 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 …]
|
D | composite.c | 182 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() 1234 luma, local 1285 luma=0.0; 1777 &sans,&sans,&luma); 1780 HCLComposite(hue,chroma,luma,&red,&green,&blue); 1949 &hue,&chroma,&luma); [all …]
|
D | enhance.c | 1266 luma; in ColorDecisionListImage() local 1268 luma=0.21267f*image->colormap[i].red+0.71526*image->colormap[i].green+ in ColorDecisionListImage() 1270 image->colormap[i].red=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage() 1271 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma; in ColorDecisionListImage() 1272 image->colormap[i].green=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage() 1273 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma; in ColorDecisionListImage() 1274 image->colormap[i].blue=luma+color_correction.saturation*cdl_map[ in ColorDecisionListImage() 1275 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma; in ColorDecisionListImage() 1290 luma; in ColorDecisionListImage() local 1308 luma=0.21267f*GetPixelRed(image,q)+0.71526*GetPixelGreen(image,q)+ in ColorDecisionListImage() [all …]
|
/external/ImageMagick/coders/ |
D | pcd.c | 113 static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, in DecodeImage() argument 183 assert(luma != (unsigned char *) NULL); in DecodeImage() 251 q=luma; in DecodeImage() 270 q=luma+row*image->columns; in DecodeImage() 485 if (luma != (unsigned char *) NULL) \ in ReadPCDImage() 486 luma=(unsigned char *) RelinquishMagickMemory(luma); \ in ReadPCDImage() 533 *luma; in ReadPCDImage() local 563 luma=(unsigned char *) NULL; in ReadPCDImage() 631 luma=(unsigned char *) AcquireQuantumMemory(image->columns+1UL,image->rows* in ReadPCDImage() 632 10*sizeof(*luma)); in ReadPCDImage() [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/ |
D | nouveau_video.c | 149 bool luma) in nouveau_vpe_mb_dct_header() argument 154 unsigned y = luma ? mb->y * 16 : mb->y * 8; in nouveau_vpe_mb_dct_header() 169 if (luma && mb->macroblock_modes.bits.dct_type == PIPE_MPEG12_DCT_TYPE_FIELD) in nouveau_vpe_mb_dct_header() 178 if (luma) { in nouveau_vpe_mb_dct_header() 191 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 194 if (luma) in nouveau_vpe_mb_mv_flags() 233 bool luma, bool frame, bool forward, bool vert, in nouveau_vpe_mb_mv() argument 250 if (!luma) { in nouveau_vpe_mb_mv() 255 mc_header |= nouveau_vpe_mb_mv_flags(luma, mv_horizontal, mv_vertical, forward, first, vert); in nouveau_vpe_mb_mv() 259 if (luma) in nouveau_vpe_mb_mv() [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrLumaColorFilterEffect.fp | 12 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fR + 15 return { 0, 0, 0, luma }; 21 half luma = dot(SK_ITU_BT709_LUM_COEFF, sk_InColor.rgb); 22 sk_OutColor = half4(0, 0, 0, luma);
|
D | GrLumaColorFilterEffect.h | 21 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fR + SK_ITU_BT709_LUM_COEFF_G * input.fG + in constantOutputForConstantInput() local 23 return {0, 0, 0, luma}; in constantOutputForConstantInput()
|
/external/skia/src/gpu/effects/ |
D | GrLumaColorFilterEffect.fp | 12 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fR + 15 return { 0, 0, 0, luma }; 21 half luma = dot(SK_ITU_BT709_LUM_COEFF, sk_InColor.rgb); 22 sk_OutColor = half4(0, 0, 0, luma);
|
D | GrLumaColorFilterEffect.h | 21 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fR + SK_ITU_BT709_LUM_COEFF_G * input.fG + in constantOutputForConstantInput() local 23 return {0, 0, 0, luma}; in constantOutputForConstantInput()
|
/external/clang/test/CodeGen/ |
D | struct-matching-constraint.c | 6 void b(uint16x8_t sat, uint16x8_t luma) in b() argument 10 :"=w"(luma), "=w"(sat) in b() 11 :"0"(luma) in b()
|
/external/libaom/libaom/aom_dsp/ |
D | grain_synthesis.c | 573 static void add_noise_to_block(const aom_film_grain_t *params, uint8_t *luma, in add_noise_to_block() argument 629 average_luma = (luma[(i << chroma_subsamp_y) * luma_stride + in add_noise_to_block() 631 luma[(i << chroma_subsamp_y) * luma_stride + in add_noise_to_block() 636 average_luma = luma[(i << chroma_subsamp_y) * luma_stride + j]; in add_noise_to_block() 676 luma[i * luma_stride + j] = in add_noise_to_block() 677 clamp(luma[i * luma_stride + j] + in add_noise_to_block() 678 ((scale_LUT(scaling_lut_y, luma[i * luma_stride + j], 8) * in add_noise_to_block() 689 const aom_film_grain_t *params, uint16_t *luma, uint16_t *cb, uint16_t *cr, in add_noise_to_block_hbd() argument 746 average_luma = (luma[(i << chroma_subsamp_y) * luma_stride + in add_noise_to_block_hbd() 748 luma[(i << chroma_subsamp_y) * luma_stride + in add_noise_to_block_hbd() [all …]
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | radeon_vce_40_2_2.c | 91 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch in create() 93 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16) / 8); // encRefYHeightInQw in create() 317 enc->luma->u.legacy.level[0].offset); // inputPictureLumaAddressHi/Lo in encode() 320 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode() 321 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
|
D | radeon_vce_50.c | 124 enc->luma->u.legacy.level[0].offset); // inputPictureLumaAddressHi/Lo in encode() 127 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode() 128 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
|
D | radeon_vce_52.c | 183 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch in create() 185 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16) / 8); // encRefYHeightInQw in create() 187 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encRefPicLumaPitch in create() 189 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16) / 8); // encRefYHeightInQw in create() 255 enc->luma->u.legacy.level[0].offset); // inputPictureLumaAddressHi/Lo in encode() 258 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode() 259 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode() 263 enc->luma->u.gfx9.surf_offset); // inputPictureLumaAddressHi/Lo in encode() 266 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16)); // encInputFrameYPitch in encode() 267 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encInputPicLumaPitch in encode()
|
D | radeon_vce.c | 226 pitch = align(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe, 128); in si_vce_frame_offset() 227 vpitch = align(enc->luma->u.legacy.level[0].nblk_y, 16); in si_vce_frame_offset() 229 pitch = align(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe, 256); in si_vce_frame_offset() 230 vpitch = align(enc->luma->u.gfx9.surf_height, 16); in si_vce_frame_offset() 276 enc->get_buffer(vid_buf->resources[0], &enc->handle, &enc->luma); in rvce_begin_frame()
|
D | radeon_uvd.c | 1571 void si_uvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma, in si_uvd_set_dt_surfaces() argument 1577 msg->body.decode.dt_pitch = luma->u.legacy.level[0].nblk_x * luma->blk_w; in si_uvd_set_dt_surfaces() 1578 switch (luma->u.legacy.level[0].mode) { in si_uvd_set_dt_surfaces() 1596 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0, type); in si_uvd_set_dt_surfaces() 1600 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1, type); in si_uvd_set_dt_surfaces() 1609 assert(luma->u.legacy.bankw == chroma->u.legacy.bankw); in si_uvd_set_dt_surfaces() 1610 assert(luma->u.legacy.bankh == chroma->u.legacy.bankh); in si_uvd_set_dt_surfaces() 1611 assert(luma->u.legacy.mtilea == chroma->u.legacy.mtilea); in si_uvd_set_dt_surfaces() 1614 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw)); in si_uvd_set_dt_surfaces() 1615 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh)); in si_uvd_set_dt_surfaces() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_uvd.c | 113 struct r600_texture *luma = (struct r600_texture *)buf->resources[0]; in si_uvd_set_dtb() local 121 si_uvd_set_dt_surfaces(msg, &luma->surface, (chroma) ? &chroma->surface : NULL, type); in si_uvd_set_dtb() 123 return luma->resource.buf; in si_uvd_set_dtb()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_uvd.c | 159 struct r600_texture *luma = (struct r600_texture *)buf->resources[0]; in r600_uvd_set_dtb() local 165 ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface); in r600_uvd_set_dtb() 167 return luma->resource.buf; in r600_uvd_set_dtb()
|
/external/pdfium/third_party/libtiff/ |
D | tif_color.c | 236 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) in TIFFYCbCrToRGBInit() argument 241 #define LumaRed luma[0] in TIFFYCbCrToRGBInit() 242 #define LumaGreen luma[1] in TIFFYCbCrToRGBInit() 243 #define LumaBlue luma[2] in TIFFYCbCrToRGBInit()
|
/external/webp/include/webp/ |
D | decode.h | 133 uint8_t* luma, size_t luma_size, int luma_stride, 314 uint8_t* luma, size_t luma_size, int luma_stride, 322 uint8_t* luma, size_t luma_size, int luma_stride,
|
/external/webp/src/webp/ |
D | decode.h | 133 uint8_t* luma, size_t luma_size, int luma_stride, 314 uint8_t* luma, size_t luma_size, int luma_stride, 322 uint8_t* luma, size_t luma_size, int luma_stride,
|