Home
last modified time | relevance | path

Searched refs:dst_scale (Results 1 – 10 of 10) sorted by relevance

/external/skia/src/core/
DSkBlitter_A8.cpp119 static inline void blend_8_pixels(U8CPU bw, uint8_t dst[], U8CPU sa, unsigned dst_scale) in blend_8_pixels() argument
121 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
122 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
123 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
124 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
125 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
126 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
127 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
128 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels()
132 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
[all …]
DSkBlitter_4444.cpp31 unsigned dst_scale = SkAlpha15To16(15 - SkAlphaMul4(SkGetPackedA4444(src), src_scale)); in SkBlendARGB4444() local
34 uint32_t dst32 = SkExpand_4444(dst) * dst_scale; in SkBlendARGB4444()
279 unsigned dst_scale = SkAlpha15To16(15 - SkGetPackedA4444(src)); // FIX in blitAntiH() local
283 device[n] = src + SkAlphaMulQ4(device[n], dst_scale); in blitAntiH()
319 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
321 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ4(dst[0], dst_scale); } \
322 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ4(dst[1], dst_scale); } \
323 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ4(dst[2], dst_scale); } \
324 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ4(dst[3], dst_scale); } \
325 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ4(dst[4], dst_scale); } \
[all …]
DSkBlitter_ARGB32.cpp127 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
129 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
130 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
131 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
132 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
133 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
134 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
135 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
136 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
140 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
[all …]
DSkBlitRow_D16.cpp71 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend() local
72 … unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale); in S32A_D565_Blend()
73 … unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale); in S32A_D565_Blend()
74 … unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale); in S32A_D565_Blend()
182 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither() local
192 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
193 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
194 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
DSkBlitRow_D4444.cpp76 unsigned dst_scale = 16 - (SkGetPackedA32(sc) * src_scale >> 8); in S32A_D4444_Blend() local
78 uint32_t dst_expand = SkExpand_4444(*dst) * dst_scale; in S32A_D4444_Blend()
174 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a); in S32A_D4444_Blend_Dither() local
176 uint32_t dst_expand = SkExpand_4444(*dst) * dst_scale; in S32A_D4444_Blend_Dither()
DSkBlitter_RGB16.cpp616 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale, in blend_8_pixels() argument
618 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale); in blend_8_pixels()
619 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale); in blend_8_pixels()
620 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale); in blend_8_pixels()
621 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale); in blend_8_pixels()
622 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale); in blend_8_pixels()
623 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale); in blend_8_pixels()
624 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale); in blend_8_pixels()
625 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale); in blend_8_pixels()
629 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_color
[all …]
DSkBlitRow_D32.cpp18 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32() local
20 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
DSkSpriteBlitter_RGB16.cpp42 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper() local
44 SkGetPackedR16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
46 SkGetPackedG16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
48 SkGetPackedB16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
/external/skia/src/opts/
DSkBlitRow_opts_arm.cpp304 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon() local
305 … unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale); in S32A_D565_Blend_neon()
306 … unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale); in S32A_D565_Blend_neon()
307 … unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale); in S32A_D565_Blend_neon()
572 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() local
605 dst_wide = vmlaq_u16(src_wide, dst_wide, vdupq_n_u16(dst_scale)); in S32_Blend_BlitRow32_neon()
624 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_neon()
629 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_neon()
/external/skia/include/core/
DSkColorPriv.h243 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() local
245 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()