Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkBlitter_A8.cpp105 unsigned dst_scale) { in blend_8_pixels() argument
106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
113 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels()
117 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
[all …]
DSkBlitter_ARGB32.cpp130 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
132 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \
133 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \
134 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \
135 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \
136 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \
137 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \
138 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \
139 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \
143 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale
[all …]
DSkBlitter_4444.cpp23 unsigned dst_scale = SkAlpha15To16(15 - SkAlphaMul4(SkGetPackedA4444(src), src_scale)); in SkBlendARGB4444() local
26 uint32_t dst32 = SkExpand_4444(dst) * dst_scale; in SkBlendARGB4444()
257 unsigned dst_scale = SkAlpha15To16(15 - SkGetPackedA4444(src)); // FIX in blitAntiH() local
261 device[n] = src + SkAlphaMulQ4(device[n], dst_scale); in blitAntiH()
297 #define blend_8_pixels(mask, dst, sc, dst_scale) \ argument
299 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ4(dst[0], dst_scale); } \
300 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ4(dst[1], dst_scale); } \
301 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ4(dst[2], dst_scale); } \
302 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ4(dst[3], dst_scale); } \
303 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ4(dst[4], dst_scale); } \
[all …]
DSkBlitRow_D16.cpp76 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend() local
77 … unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale); in S32A_D565_Blend()
78 … unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale); in S32A_D565_Blend()
79 … unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale); in S32A_D565_Blend()
185 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither() local
195 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
196 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
197 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8; in S32A_D565_Blend_Dither()
DSkBlitRow_D32.cpp28 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32() local
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()
DSkBlitRow_D4444.cpp83 unsigned dst_scale = 16 - (SkGetPackedA32(sc) * src_scale >> 8); in S32A_D4444_Blend() local
85 uint32_t dst_expand = SkExpand_4444(*dst) * dst_scale; in S32A_D4444_Blend()
181 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a); in S32A_D4444_Blend_Dither() local
183 uint32_t dst_expand = SkExpand_4444(*dst) * dst_scale; in S32A_D4444_Blend_Dither()
DSkBlitter_RGB16.cpp614 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale, in blend_8_pixels() argument
616 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale); in blend_8_pixels()
617 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale); in blend_8_pixels()
618 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale); in blend_8_pixels()
619 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale); in blend_8_pixels()
620 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale); in blend_8_pixels()
621 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale); in blend_8_pixels()
622 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale); in blend_8_pixels()
623 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale); in blend_8_pixels()
627 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_color
[all …]
DSkSpriteBlitter_RGB16.cpp34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper() local
36 SkGetPackedR16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
38 SkGetPackedG16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
40 SkGetPackedB16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
/external/skia/src/opts/
DSkBlitRow_opts_arm.cpp292 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon() local
293 … unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale); in S32A_D565_Blend_neon()
294 … unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale); in S32A_D565_Blend_neon()
295 … unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale); in S32A_D565_Blend_neon()
1337 uint16_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_neon() local
1370 dst_wide = vmlaq_u16(src_wide, dst_wide, vdupq_n_u16(dst_scale)); in S32_Blend_BlitRow32_neon()
1389 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_neon()
1394 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_neon()
DSkBlitRow_opts_SSE2.cpp27 uint32_t dst_scale = 256 - src_scale; in S32_Blend_BlitRow32_SSE2() local
32 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
45 __m128i dst_scale_wide = _mm_set1_epi16(dst_scale << 8); in S32_Blend_BlitRow32_SSE2()
104 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32_SSE2()
/external/skia/include/core/
DSkColorPriv.h312 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() local
314 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()