Home
last modified time | relevance | path

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

1234

/external/libgav1/libgav1/src/dsp/arm/
Dintrapred_cfl_neon.cc99 int16_t luma[kCflLumaBufferStride][kCflLumaBufferStride], in CflSubsampler420_NEON()
115 vst1_s16(luma[y], vreinterpret_s16_u16(sum_row)); in CflSubsampler420_NEON()
144 vst1q_s16(luma[y], vreinterpretq_s16_u16(sum_row)); in CflSubsampler420_NEON()
180 vst1q_s16(luma[y] + x, vreinterpretq_s16_u16(sum_row_lo)); in CflSubsampler420_NEON()
188 vst1q_s16(luma[y] + x + 8, vreinterpretq_s16_u16(sum_row_hi)); in CflSubsampler420_NEON()
200 BlockSubtract(average, luma, block_width, block_height); in CflSubsampler420_NEON()
205 int16_t luma[kCflLumaBufferStride][kCflLumaBufferStride], in CflSubsampler444_NEON()
224 vst1_s16(luma[y], vreinterpret_s16_u16(vget_low_u16(row_shifted))); in CflSubsampler444_NEON()
225 vst1_s16(luma[y + 1], vreinterpret_s16_u16(vget_high_u16(row_shifted))); in CflSubsampler444_NEON()
242 vst1q_s16(luma[y], vreinterpretq_s16_u16(row_shifted)); in CflSubsampler444_NEON()
[all …]
Dfilm_grain_neon.cc154 int16x8_t GetSubsampledLuma(const int8_t* const luma, int subsampling_x, in GetSubsampledLuma() argument
158 const int8x16_t src0 = vld1q_s8(luma); in GetSubsampledLuma()
159 const int8x16_t src1 = vld1q_s8(luma + stride); in GetSubsampledLuma()
167 const int8x16_t src = vld1q_s8(luma); in GetSubsampledLuma()
172 return vmovl_s8(vld1_s8(luma)); in GetSubsampledLuma()
176 inline uint16x8_t GetAverageLuma(const uint8_t* const luma, int subsampling_x) { in GetAverageLuma() argument
178 const uint8x16_t src = vld1q_u8(luma); in GetAverageLuma()
181 return vmovl_u8(vld1_u8(luma)); in GetAverageLuma()
187 int16x8_t GetSubsampledLuma(const int16_t* const luma, int subsampling_x, in GetSubsampledLuma() argument
191 int16x8_t src0_lo = vld1q_s16(luma); in GetSubsampledLuma()
[all …]
/external/skia/src/core/
DSkMaskGamma.cpp20 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()
DSkMaskGamma.h31 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/
DSkMaskGamma.cpp20 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()
DSkMaskGamma.h31 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/
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 …]
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()
1251 luma, local
1302 luma=0.0;
1812 &sans,&sans,&luma);
1815 HCLComposite(hue,chroma,luma,&red,&green,&blue);
1983 &hue,&chroma,&luma);
[all …]
/external/libgav1/libgav1/src/dsp/x86/
Dintrapred_cfl_sse4.cc53 const int16_t luma[kCflLumaBufferStride][kCflLumaBufferStride], in CflIntraPredictor_SSE4_1()
58 auto* row = reinterpret_cast<const __m128i*>(luma); in CflIntraPredictor_SSE4_1()
90 int16_t luma[kCflLumaBufferStride][kCflLumaBufferStride], in CflSubsampler444_4xH_SSE4_1()
98 int16_t* luma_ptr = luma[0]; in CflSubsampler444_4xH_SSE4_1()
140 luma_ptr = luma[0]; in CflSubsampler444_4xH_SSE4_1()
149 int16_t luma[kCflLumaBufferStride][kCflLumaBufferStride], in CflSubsampler444_4xH_SSE4_1()
160 luma, max_luma_width, max_luma_height, source, stride); in CflSubsampler444_4xH_SSE4_1()
163 luma, max_luma_width, max_luma_height, source, stride); in CflSubsampler444_4xH_SSE4_1()
169 int16_t luma[kCflLumaBufferStride][kCflLumaBufferStride], in CflSubsampler444_8xH_SSE4_1()
181 int16_t* luma_ptr = luma[0]; in CflSubsampler444_8xH_SSE4_1()
[all …]
/external/skqp/src/gpu/effects/
DGrLumaColorFilterEffect.fp12 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);
DGrLumaColorFilterEffect.h21 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/ImageMagick/coders/
Dpcd.c113 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/skia/src/gpu/effects/
DGrLumaColorFilterEffect.fp16 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fR +
19 return { 0, 0, 0, SkTPin(luma, 0.0f, 1.0f) };
25 half luma = saturate(dot(SK_ITU_BT709_LUM_COEFF, sk_InColor.rgb));
26 sk_OutColor = half4(0, 0, 0, luma);
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c149 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/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/libaom/libaom/aom_dsp/
Dgrain_synthesis.c573 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/radeonsi/
Dsi_uvd.c54 struct si_texture *luma = (struct si_texture *)buf->resources[0]; in si_uvd_set_dtb() local
61 si_uvd_set_dt_surfaces(msg, &luma->surface, (chroma) ? &chroma->surface : NULL, type); in si_uvd_set_dtb()
63 return luma->buffer.buf; in si_uvd_set_dtb()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vce_40_2_2.c85 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch in create()
87 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16) / 8); // encRefYHeightInQw in create()
311 enc->luma->u.legacy.level[0].offset); // inputPictureLumaAddressHi/Lo in encode()
314 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode()
315 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
Dradeon_vce_50.c121 enc->luma->u.legacy.level[0].offset); // inputPictureLumaAddressHi/Lo in encode()
124 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode()
125 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
Dradeon_vce_52.c196 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch in create()
198 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16) / 8); // encRefYHeightInQw in create()
200 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encRefPicLumaPitch in create()
202 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16) / 8); // encRefYHeightInQw in create()
268 enc->luma->u.legacy.level[0].offset); // inputPictureLumaAddressHi/Lo in encode()
271 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode()
272 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
276 enc->luma->u.gfx9.surf_offset); // inputPictureLumaAddressHi/Lo in encode()
279 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16)); // encInputFrameYPitch in encode()
280 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encInputPicLumaPitch in encode()
Dradeon_vce.c223 pitch = align(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe, 128); in si_vce_frame_offset()
224 vpitch = align(enc->luma->u.legacy.level[0].nblk_y, 16); in si_vce_frame_offset()
226 pitch = align(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe, 256); in si_vce_frame_offset()
227 vpitch = align(enc->luma->u.gfx9.surf_height, 16); in si_vce_frame_offset()
273 enc->get_buffer(vid_buf->resources[0], &enc->handle, &enc->luma); in rvce_begin_frame()
Dradeon_vcn_dec_jpeg.c42 struct si_texture *luma = (struct si_texture *)((struct vl_video_buffer *)target)->resources[0]; in radeon_jpeg_get_decode_param() local
47 dec->jpg.dt_luma_top_offset = luma->surface.u.gfx9.surf_offset; in radeon_jpeg_get_decode_param()
50 dec->jpg.dt_pitch = luma->surface.u.gfx9.surf_pitch * luma->surface.blk_w; in radeon_jpeg_get_decode_param()
53 return luma->buffer.buf; in radeon_jpeg_get_decode_param()
Dradeon_uvd.c1437 void si_uvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma, in si_uvd_set_dt_surfaces() argument
1443 msg->body.decode.dt_pitch = luma->u.legacy.level[0].nblk_x * luma->blk_w; in si_uvd_set_dt_surfaces()
1444 switch (luma->u.legacy.level[0].mode) { in si_uvd_set_dt_surfaces()
1462 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0, type); in si_uvd_set_dt_surfaces()
1466 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1, type); in si_uvd_set_dt_surfaces()
1475 assert(luma->u.legacy.bankw == chroma->u.legacy.bankw); in si_uvd_set_dt_surfaces()
1476 assert(luma->u.legacy.bankh == chroma->u.legacy.bankh); in si_uvd_set_dt_surfaces()
1477 assert(luma->u.legacy.mtilea == chroma->u.legacy.mtilea); in si_uvd_set_dt_surfaces()
1480 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw)); in si_uvd_set_dt_surfaces()
1481 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh)); in si_uvd_set_dt_surfaces()
[all …]
/external/skia/src/gpu/effects/generated/
DGrLumaColorFilterEffect.h23 float luma = SK_ITU_BT709_LUM_COEFF_R * input.fR + SK_ITU_BT709_LUM_COEFF_G * input.fG + in constantOutputForConstantInput() local
25 return {0, 0, 0, SkTPin(luma, 0.0f, 1.0f)}; in constantOutputForConstantInput()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_uvd.c162 struct r600_texture *luma = (struct r600_texture *)buf->resources[0]; in r600_uvd_set_dtb() local
168 ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface); in r600_uvd_set_dtb()
170 return luma->resource.buf; in r600_uvd_set_dtb()

1234