/external/skia/src/opts/ |
D | SkColor_opts_SSE2.h | 221 __m128i dst_scale = SkGetPackedA32_SSE2(src); in SkBlendARGB32_SSE2() local 222 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2() 223 dst_scale = _mm_srli_epi16(dst_scale, 8); in SkBlendARGB32_SSE2() 224 dst_scale = _mm_sub_epi32(_mm_set1_epi32(256), dst_scale); in SkBlendARGB32_SSE2() 227 return _mm_add_epi8(result, SkAlphaMulQ_SSE2(dst, dst_scale)); in SkBlendARGB32_SSE2() 236 __m128i dst_scale = SkGetPackedA32_SSE2(src); in SkBlendARGB32_SSE2() local 237 dst_scale = _mm_mullo_epi16(dst_scale, src_scale); in SkBlendARGB32_SSE2() 238 dst_scale = _mm_srli_epi16(dst_scale, 8); in SkBlendARGB32_SSE2() 239 dst_scale = _mm_sub_epi32(_mm_set1_epi32(256), dst_scale); in SkBlendARGB32_SSE2() 242 return _mm_add_epi8(result, SkAlphaMulQ_SSE2(dst, dst_scale)); in SkBlendARGB32_SSE2()
|
D | SkBlitRow_opts_mips_dsp.cpp | 663 register unsigned dst_scale = 0; in S32A_D565_Blend_mips_dsp() local 742 [dst_scale]"+r"(dst_scale), [s0]"=&r"(s0), [s1]"=&r"(s1), in S32A_D565_Blend_mips_dsp() 755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp() local 756 unsigned dr = (SkPacked32ToR16(sc) * alpha) + (SkGetPackedR16(dc) * dst_scale); in S32A_D565_Blend_mips_dsp() 757 unsigned dg = (SkPacked32ToG16(sc) * alpha) + (SkGetPackedG16(dc) * dst_scale); in S32A_D565_Blend_mips_dsp() 758 unsigned db = (SkPacked32ToB16(sc) * alpha) + (SkGetPackedB16(dc) * dst_scale); in S32A_D565_Blend_mips_dsp()
|
D | SkBlitRow_opts_arm_neon.cpp | 716 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon() local 717 unsigned dr = (SkPacked32ToR16(sc) * alpha) + (SkGetPackedR16(dc) * dst_scale); in S32A_D565_Blend_neon() 718 unsigned dg = (SkPacked32ToG16(sc) * alpha) + (SkGetPackedG16(dc) * dst_scale); in S32A_D565_Blend_neon() 719 unsigned db = (SkPacked32ToB16(sc) * alpha) + (SkGetPackedB16(dc) * dst_scale); in S32A_D565_Blend_neon() 1163 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() local 1185 vdst_wide = vmull_u8(vdst, vdup_n_u8(dst_scale)); in S32_Blend_BlitRow32_neon() 1209 vdst_wide = vmull_u8(vdst, vdup_n_u8(dst_scale)); in S32_Blend_BlitRow32_neon() 1234 unsigned dst_scale; in S32A_Blend_BlitRow32_neon() local 1241 dst_scale = vget_lane_u8(vsrc, 3); in S32A_Blend_BlitRow32_neon() 1242 dst_scale *= alpha256; in S32A_Blend_BlitRow32_neon() [all …]
|
D | SkBlitRow_opts_SSE2.cpp | 29 uint32_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_SSE2() local 34 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2() 49 dst_pixel = SkAlphaMulQ_SSE2(dst_pixel, dst_scale); in S32_Blend_BlitRow32_SSE2() 63 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
|
/external/skia/src/core/ |
D | SkXfermode4f.cpp | 256 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_linear_dst_1() local 270 r4 = s4 + d4 * dst_scale; in srcover_linear_dst_1() 282 s4_255 + d0 * dst_scale, in srcover_linear_dst_1() 283 s4_255 + d1 * dst_scale, in srcover_linear_dst_1() 284 s4_255 + d2 * dst_scale, in srcover_linear_dst_1() 285 s4_255 + d3 * dst_scale); in srcover_linear_dst_1() 291 dst[i] = to_4b(s4_255 + d4 * dst_scale); in srcover_linear_dst_1() 299 Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_srgb_dst_1() local 313 r4 = s4 + d4 * dst_scale; in srcover_srgb_dst_1() 324 linear_unit_to_srgb_255f(s4 + d0 * dst_scale), in srcover_srgb_dst_1() [all …]
|
D | SkBlitter_A8.cpp | 104 unsigned dst_scale) { in blend_8_pixels() argument 105 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels() 106 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels() 107 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels() 108 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels() 109 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels() 110 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels() 111 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels() 112 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels() 116 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale [all …]
|
D | SkBlitRow_D32.cpp | 29 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32() local 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 | SkBlitter_ARGB32.cpp | 146 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument 148 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \ 149 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \ 150 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \ 151 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \ 152 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \ 153 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \ 154 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \ 155 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \ 159 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale [all …]
|
D | SkBlitRow_D16.cpp | 183 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither() local 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_RGB16.cpp | 600 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale, in blend_8_pixels() argument 602 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale); in blend_8_pixels() 603 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale); in blend_8_pixels() 604 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale); in blend_8_pixels() 605 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale); in blend_8_pixels() 606 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale); in blend_8_pixels() 607 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale); in blend_8_pixels() 608 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale); in blend_8_pixels() 609 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale); in blend_8_pixels() 613 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_color [all …]
|
D | SkXfermodeU64.cpp | 191 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_1() local 195 const Sk4f r4bias = s4bias + d4bias * dst_scale; in srcover_1() 208 const Sk4f dst_scale = Sk4f(1 - get_alpha(s4)); in srcover_n() local 211 const Sk4f r4bias = s4bias + d4bias * dst_scale; in srcover_n()
|
D | SkSpriteBlitter_RGB16.cpp | 34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper() local 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()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_conv.c | 557 double dst_scale = lp_const_scale(dst_type); in lp_build_conv() local 560 if (dst_scale != 1.0) { in lp_build_conv() 561 LLVMValueRef scale = lp_build_const_vec(gallivm, tmp_type, dst_scale); in lp_build_conv()
|
/external/skia/include/core/ |
D | SkColorPriv.h | 575 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() local 577 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()
|