/external/skia/src/core/ |
SkBlitRow_D16.cpp | 69 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local 70 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale); 71 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale); 72 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale); 178 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); local 188 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8; 189 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8; 190 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8;
|
SkBlitter_A8.cpp | 113 unsigned dst_scale) { 114 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); 115 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); 116 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); 117 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); 118 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); 119 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); 120 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); 121 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); 125 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale 286 int dst_scale = 256 - SkAlphaMul(sa, src_scale); local [all...] |
SkBlitter_4444.cpp | 31 unsigned dst_scale = SkAlpha15To16(15 - SkAlphaMul4(SkGetPackedA4444(src), src_scale)); local 34 uint32_t dst32 = SkExpand_4444(dst) * dst_scale; 265 unsigned dst_scale = SkAlpha15To16(15 - SkGetPackedA4444(src)); // FIX local 269 device[n] = src + SkAlphaMulQ4(device[n], dst_scale); 305 #define blend_8_pixels(mask, dst, sc, dst_scale) \ 307 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ4(dst[0], dst_scale); } \ 308 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ4(dst[1], dst_scale); } \ 309 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ4(dst[2], dst_scale); } \ 310 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ4(dst[3], dst_scale); } \ 311 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ4(dst[4], dst_scale); } \ [all...] |
SkBlitter_ARGB32.cpp | 230 #define blend_8_pixels(mask, dst, sc, dst_scale) \ 232 if (mask & 0x80) { dst[0] = sc + SkAlphaMulQ(dst[0], dst_scale); } \ 233 if (mask & 0x40) { dst[1] = sc + SkAlphaMulQ(dst[1], dst_scale); } \ 234 if (mask & 0x20) { dst[2] = sc + SkAlphaMulQ(dst[2], dst_scale); } \ 235 if (mask & 0x10) { dst[3] = sc + SkAlphaMulQ(dst[3], dst_scale); } \ 236 if (mask & 0x08) { dst[4] = sc + SkAlphaMulQ(dst[4], dst_scale); } \ 237 if (mask & 0x04) { dst[5] = sc + SkAlphaMulQ(dst[5], dst_scale); } \ 238 if (mask & 0x02) { dst[6] = sc + SkAlphaMulQ(dst[6], dst_scale); } \ 239 if (mask & 0x01) { dst[7] = sc + SkAlphaMulQ(dst[7], dst_scale); } \ 243 #define SK_BLITBWMASK_ARGS , uint32_t sc, unsigned dst_scale 348 unsigned dst_scale = 255 - SkGetPackedA32(color); local 472 unsigned dst_scale = 256 - aa; local [all...] |
SkBlitRow_D32.cpp | 20 unsigned dst_scale = 256 - src_scale; local 24 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); 31 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); 33 *dst = SkAlphaMulQ(*(src++), src_scale) + SkAlphaMulQ(*dst, dst_scale); 38 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
|
SkBlitRow_D4444.cpp | 76 unsigned dst_scale = 16 - (SkGetPackedA32(sc) * src_scale >> 8); local 78 uint32_t dst_expand = SkExpand_4444(*dst) * dst_scale; 174 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a); local 176 uint32_t dst_expand = SkExpand_4444(*dst) * dst_scale;
|
SkSpriteBlitter_RGB16.cpp | 42 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); local 44 SkGetPackedR16(dc) * dst_scale) >> 8; 46 SkGetPackedG16(dc) * dst_scale) >> 8; 48 SkGetPackedB16(dc) * dst_scale) >> 8;
|
SkBlitter_RGB16.cpp | 616 static inline void blend_8_pixels(U8CPU bw, uint16_t dst[], unsigned dst_scale, 618 if (bw & 0x80) dst[0] = srcColor + SkAlphaMulRGB16(dst[0], dst_scale); 619 if (bw & 0x40) dst[1] = srcColor + SkAlphaMulRGB16(dst[1], dst_scale); 620 if (bw & 0x20) dst[2] = srcColor + SkAlphaMulRGB16(dst[2], dst_scale); 621 if (bw & 0x10) dst[3] = srcColor + SkAlphaMulRGB16(dst[3], dst_scale); 622 if (bw & 0x08) dst[4] = srcColor + SkAlphaMulRGB16(dst[4], dst_scale); 623 if (bw & 0x04) dst[5] = srcColor + SkAlphaMulRGB16(dst[5], dst_scale); 624 if (bw & 0x02) dst[6] = srcColor + SkAlphaMulRGB16(dst[6], dst_scale); 625 if (bw & 0x01) dst[7] = srcColor + SkAlphaMulRGB16(dst[7], dst_scale); 629 #define SK_BLITBWMASK_ARGS , unsigned dst_scale, U16CPU src_colo [all...] |
/external/skia/src/opts/ |
SkBlitRow_opts_SSE2.cpp | 36 uint32_t dst_scale = 256 - src_scale; local 41 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); 51 __m128i dst_scale_wide = _mm_set1_epi16(dst_scale); 93 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale);
|
SkBlitRow_opts_arm.cpp | 266 // dst_scale = q2 268 "vmla.u16 q11, q8, q2 \n\t" // red result += dst_red * dst_scale 269 "vmla.u16 q12, q9, q2 \n\t" // grn result += dst_grn * dst_scale 270 "vmla.u16 q13, q10, q2 \n\t" // blu result += dst_blu * dst_scale 304 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local 305 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale); 306 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale); 307 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale); 802 uint16_t dst_scale = 256 - src_scale; local [all...] |
/external/skia/include/core/ |
SkColorPriv.h | 238 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); local 240 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale);
|