HomeSort by relevance Sort by last modified time
    Searched full:dst_scale (Results 1 - 10 of 10) sorted by null

  /external/skia/src/core/
SkBlitRow_D16.cpp 71 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); local
72 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale);
73 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale);
74 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale);
182 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); local
192 int dr = (sr * src_scale + SkGetPackedR16(d) * dst_scale) >> 8;
193 int dg = (sg * src_scale + SkGetPackedG16(d) * dst_scale) >> 8;
194 int db = (sb * src_scale + SkGetPackedB16(d) * dst_scale) >> 8;
SkBlitter_A8.cpp 119 static inline void blend_8_pixels(U8CPU bw, uint8_t dst[], U8CPU sa, unsigned dst_scale)
121 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale));
122 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale));
123 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale));
124 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale));
125 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale));
126 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale));
127 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale));
128 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale));
132 #define SK_BLITBWMASK_ARGS , U8CPU sa, unsigned dst_scale
314 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;
279 unsigned dst_scale = SkAlpha15To16(15 - SkGetPackedA4444(src)); // FIX local
283 device[n] = src + SkAlphaMulQ4(device[n], dst_scale);
319 #define blend_8_pixels(mask, dst, sc, dst_scale) \
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...]
SkBlitter_ARGB32.cpp 127 #define blend_8_pixels(mask, dst, sc, dst_scale) \
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
261 unsigned dst_scale = 255 - SkGetPackedA32(color); local
381 unsigned dst_scale = 256 - aa; local
    [all...]
SkBlitRow_D32.cpp 18 unsigned dst_scale = 256 - src_scale; local
20 *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_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);
572 uint16_t dst_scale = 256 - src_scale; local
605 dst_wide = vmlaq_u16(src_wide, dst_wide, vdupq_n_u16(dst_scale));
    [all...]
  /external/skia/include/core/
SkColorPriv.h 243 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); local
245 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale);

Completed in 223 milliseconds