Home | History | Annotate | Download | only in effects

Lines Matching refs:dst

109 static SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, unsigned scale)
111 unsigned a = SkAlphaBlend(SkGetPackedA32(src), SkGetPackedA32(dst), scale);
112 unsigned r = SkAlphaBlend(SkGetPackedR32(src), SkGetPackedR32(dst), scale);
113 unsigned g = SkAlphaBlend(SkGetPackedG32(src), SkGetPackedG32(dst), scale);
114 unsigned b = SkAlphaBlend(SkGetPackedB32(src), SkGetPackedB32(dst), scale);
123 void SkAvoidXfermode::xfer32(SkPMColor dst[], const SkPMColor src[], int count,
143 int d = color_dist32(dst[i], opR, opG, opB);
159 dst[i] = SkFourByteInterp(src[i], dst[i], d);
164 static inline U16CPU SkBlend3216(SkPMColor src, U16CPU dst, unsigned scale)
169 return SkPackRGB16( SkAlphaBlend(SkPacked32ToR16(src), SkGetPackedR16(dst), scale),
170 SkAlphaBlend(SkPacked32ToG16(src), SkGetPackedG16(dst), scale),
171 SkAlphaBlend(SkPacked32ToB16(src), SkGetPackedB16(dst), scale));
174 void SkAvoidXfermode::xfer16(uint16_t dst[], const SkPMColor src[], int count,
194 int d = color_dist16(dst[i], opR, opG, opB);
210 dst[i] = SkBlend3216(src[i], dst[i], d);
215 void SkAvoidXfermode::xfer4444(uint16_t dst[], const SkPMColor src[], int count,
235 int d = color_dist4444(dst[i], opR, opG, opB);
251 dst[i] = SkBlend4444(SkPixel32ToPixel4444(src[i]), dst[i], d);
256 void SkAvoidXfermode::xferA8(SkAlpha dst[], const SkPMColor src[], int count, const SkAlpha aa[])