/external/skia/src/core/ |
D | SkSpriteBlitter_RGB16.cpp | 24 unsigned src_scale) { in D16_S32A_Blend_Pixel_helper() argument 30 dr = SkAlphaBlend(SkPacked32ToR16(sc), SkGetPackedR16(dc), src_scale); in D16_S32A_Blend_Pixel_helper() 31 dg = SkAlphaBlend(SkPacked32ToG16(sc), SkGetPackedG16(dc), src_scale); in D16_S32A_Blend_Pixel_helper() 32 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); in D16_S32A_Blend_Pixel_helper() 34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper() 35 dr = (SkPacked32ToR16(sc) * src_scale + in D16_S32A_Blend_Pixel_helper() 37 dg = (SkPacked32ToG16(sc) * src_scale + in D16_S32A_Blend_Pixel_helper() 39 db = (SkPacked32ToB16(sc) * src_scale + in D16_S32A_Blend_Pixel_helper() 45 #define D16_S32A_Blend_Pixel(dst, sc, src_scale) \ argument 46 do { if (sc) D16_S32A_Blend_Pixel_helper(dst, sc, src_scale); } while (0) [all …]
|
D | SkBlitRow_D32.cpp | 27 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32() local 28 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32() 32 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32() 39 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32() 41 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32() 46 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
|
D | SkBlitRow_D16.cpp | 174 int src_scale = SkAlpha255To256(alpha); in S32A_D565_Blend_Dither() local 183 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither() 193 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither() 194 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither() 195 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
|
D | SkBlitter_A8.cpp | 278 int src_scale = SkAlpha255To256(aa); in aa_blend8() local 280 int dst_scale = 256 - SkAlphaMul(sa, src_scale); in aa_blend8() 282 return SkToU8((sa * src_scale + da * dst_scale) >> 8); in aa_blend8()
|
/external/skia/src/opts/ |
D | SkColor_opts_SSE2.h | 219 __m128i src_scale = SkAlpha255To256_SSE2(aa); in SkBlendARGB32_SSE2() local 222 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2() 226 __m128i result = SkAlphaMulQ_SSE2(src, src_scale); in SkBlendARGB32_SSE2() 234 __m128i src_scale = _mm_set1_epi32(alpha); in SkBlendARGB32_SSE2() local 237 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2()
|
D | SkXfermode_opts_arm_neon.cpp | 241 uint16x8_t src_scale; in dstover_modeproc_neon8() local 243 src_scale = vsubw_u8(vdupq_n_u16(256), dst.val[NEON_A]); in dstover_modeproc_neon8() 245 ret.val[NEON_A] = dst.val[NEON_A] + SkAlphaMul_neon8(src.val[NEON_A], src_scale); in dstover_modeproc_neon8() 246 ret.val[NEON_R] = dst.val[NEON_R] + SkAlphaMul_neon8(src.val[NEON_R], src_scale); in dstover_modeproc_neon8() 247 ret.val[NEON_G] = dst.val[NEON_G] + SkAlphaMul_neon8(src.val[NEON_G], src_scale); in dstover_modeproc_neon8() 248 ret.val[NEON_B] = dst.val[NEON_B] + SkAlphaMul_neon8(src.val[NEON_B], src_scale); in dstover_modeproc_neon8()
|
D | SkBlitRow_opts_SSE2.cpp | 27 uint32_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_SSE2() local 28 uint32_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_SSE2() 33 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2() 47 src_pixel = SkAlphaMulQ_SSE2(src_pixel, src_scale); in S32_Blend_BlitRow32_SSE2() 62 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
|
D | SkBlitRow_opts_arm_neon.cpp | 1164 uint16_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_neon() local 1165 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() 1184 vsrc_wide = vmulq_u16(vsrc_wide, vdupq_n_u16(src_scale)); in S32_Blend_BlitRow32_neon() 1210 vsrc_wide = vmulq_u16(vsrc_wide, vdupq_n_u16(src_scale)); in S32_Blend_BlitRow32_neon()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_conv.c | 652 double src_scale = lp_const_scale(src_type); in lp_build_conv() local 671 if (src_scale != 1.0) { in lp_build_conv() 672 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, 1.0/src_scale); in lp_build_conv()
|
/external/skia/include/core/ |
D | SkColorPriv.h | 553 unsigned src_scale = SkAlpha255To256(aa); in SkBlendARGB32() local 554 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() 556 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()
|