/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 + SkGetPackedR16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper() 36 dg = (SkPacked32ToG16(sc) * src_scale + SkGetPackedG16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper() 37 db = (SkPacked32ToB16(sc) * src_scale + SkGetPackedB16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper() 42 #define D16_S32A_Blend_Pixel(dst, sc, src_scale) \ argument 43 do { if (sc) D16_S32A_Blend_Pixel_helper(dst, sc, src_scale); } while (0) [all …]
|
D | SkBlitRow_D32.cpp | 28 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32() local 29 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32() 33 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32() 40 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32() 42 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32() 47 *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()
|
D | SkXfermode4f.cpp | 153 static Sk4f lerp(const Sk4f& src, const Sk4f& dst, const Sk4f& src_scale) { in lerp() argument 154 return dst + (src - dst) * src_scale; in lerp()
|
/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 | SkBlitRow_opts_SSE2.cpp | 28 uint32_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_SSE2() local 29 uint32_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_SSE2() 34 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2() 48 src_pixel = SkAlphaMulQ_SSE2(src_pixel, src_scale); in S32_Blend_BlitRow32_SSE2() 63 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
|
D | SkBlitRow_opts_arm_neon.cpp | 1162 uint16_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_neon() local 1163 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() 1182 vsrc_wide = vmulq_u16(vsrc_wide, vdupq_n_u16(src_scale)); in S32_Blend_BlitRow32_neon() 1208 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 | 574 unsigned src_scale = SkAlpha255To256(aa); in SkBlendARGB32() local 575 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() 577 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()
|