/external/skia/legacy/src/core/ |
SkBlitter_A8.cpp | 45 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); 70 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 74 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); 106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); 107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); 108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); 109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); 110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); 111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); 112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)) [all...] |
SkColor.cpp | 97 unsigned p = SkAlphaMul(255 - s, v_scale); 98 unsigned q = SkAlphaMul(255 - (s * f >> 16), v_scale); 99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale);
|
SkBlitRow_D4444.cpp | 149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 179 int d = SkAlphaMul(DITHER_VALUE(x), a); 181 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a);
|
SkBlitRow_D16.cpp | 149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 185 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
|
SkBlitter_ARGB32.cpp | 50 fSrcR = SkAlphaMul(SkColorGetR(color), scale); 51 fSrcG = SkAlphaMul(SkColorGetG(color), scale); 52 fSrcB = SkAlphaMul(SkColorGetB(color), scale);
|
SkBlitter.cpp | 614 r = SkFastMin32(SkAlphaMul(r, mul) + add, a); 615 g = SkFastMin32(SkAlphaMul(g, mul) + add, a); 616 b = SkFastMin32(SkAlphaMul(b, mul) + add, a); 635 SkFastMin32(SkAlphaMul(r, mul) + add, a), 636 SkFastMin32(SkAlphaMul(g, mul) + add, a), 637 SkFastMin32(SkAlphaMul(b, mul) + add, a));
|
SkBlitter_RGB16.cpp | 542 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), 543 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), 544 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); 799 int aa = SkAlphaMul(*antialias, alpha); [all...] |
SkShader.cpp | 278 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha()));
|
/external/skia/src/core/ |
SkBlitter_A8.cpp | 45 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); 70 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 74 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); 106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); 107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); 108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); 109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); 110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); 111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); 112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)) [all...] |
SkColor.cpp | 97 unsigned p = SkAlphaMul(255 - s, v_scale); 98 unsigned q = SkAlphaMul(255 - (s * f >> 16), v_scale); 99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale);
|
SkBlitRow_D4444.cpp | 148 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 178 int d = SkAlphaMul(DITHER_VALUE(x), a); 180 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a);
|
SkBlitRow_D16.cpp | 150 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 186 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
|
SkBlitter.cpp | 636 r = SkFastMin32(SkAlphaMul(r, mul) + add, a); 637 g = SkFastMin32(SkAlphaMul(g, mul) + add, a); 638 b = SkFastMin32(SkAlphaMul(b, mul) + add, a); 657 SkFastMin32(SkAlphaMul(r, mul) + add, a), 658 SkFastMin32(SkAlphaMul(g, mul) + add, a), 659 SkFastMin32(SkAlphaMul(b, mul) + add, a));
|
/external/skia/src/effects/ |
SkColorFilters.cpp | 254 unsigned r = pin(SkAlphaMul(SkGetPackedR32(c), scaleR) + SkAlphaMul(addR, scaleA), a); 255 unsigned g = pin(SkAlphaMul(SkGetPackedG32(c), scaleG) + SkAlphaMul(addG, scaleA), a); 256 unsigned b = pin(SkAlphaMul(SkGetPackedB32(c), scaleB) + SkAlphaMul(addB, scaleA), a); 299 unsigned r = pin(SkGetPackedR32(c) + SkAlphaMul(addR, scaleA), a); 300 unsigned g = pin(SkGetPackedG32(c) + SkAlphaMul(addG, scaleA), a); 301 unsigned b = pin(SkGetPackedB32(c) + SkAlphaMul(addB, scaleA), a); 333 unsigned r = SkAlphaMul(SkGetPackedR32(c), scaleR) [all...] |
SkTransparentShader.cpp | 75 SkAlphaMul(r, scale), 76 SkAlphaMul(g, scale), 77 SkAlphaMul(b, scale)); 108 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
SkArithmeticMode.cpp | 124 r = SkAlphaMul(r, scale); 125 g = SkAlphaMul(g, scale); 126 b = SkAlphaMul(b, scale);
|
SkAvoidXfermode.cpp | 118 d = SkAlphaMul(d, Accurate255To256(*aa++)); 167 d = SkAlphaMul(d, Accurate255To256(*aa++)); 207 d = SkAlphaMul(d, Accurate255To256(*aa++));
|
/external/skia/tests/ |
SrcOverTest.cpp | 14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); 19 return alpha + SkAlphaMul(dst, 256 - alpha);
|
/external/skia/legacy/src/effects/ |
SkColorFilters.cpp | 317 unsigned r = pin(SkAlphaMul(SkGetPackedR32(c), scaleR) + SkAlphaMul(addR, scaleA), a); 318 unsigned g = pin(SkAlphaMul(SkGetPackedG32(c), scaleG) + SkAlphaMul(addG, scaleA), a); 319 unsigned b = pin(SkAlphaMul(SkGetPackedB32(c), scaleB) + SkAlphaMul(addB, scaleA), a); 368 unsigned r = pin(SkGetPackedR32(c) + SkAlphaMul(addR, scaleA), a); 369 unsigned g = pin(SkGetPackedG32(c) + SkAlphaMul(addG, scaleA), a); 370 unsigned b = pin(SkGetPackedB32(c) + SkAlphaMul(addB, scaleA), a); 406 unsigned r = SkAlphaMul(SkGetPackedR32(c), scaleR) [all...] |
SkTransparentShader.cpp | 74 SkAlphaMul(r, scale), 75 SkAlphaMul(g, scale), 76 SkAlphaMul(b, scale)); 107 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
SkArithmeticMode.cpp | 120 r = SkAlphaMul(r, scale); 121 g = SkAlphaMul(g, scale); 122 b = SkAlphaMul(b, scale);
|
SkAvoidXfermode.cpp | 136 d = SkAlphaMul(d, Accurate255To256(*aa++)); 187 d = SkAlphaMul(d, Accurate255To256(*aa++)); 228 d = SkAlphaMul(d, Accurate255To256(*aa++));
|
/external/skia/include/core/ |
SkDither.h | 76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 129 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 146 dither = SkAlphaMul(dither, SkAlpha255To256(a)); 163 dither = SkAlphaMul(dither, SkAlpha255To256(a));
|
/external/skia/legacy/include/core/ |
SkDither.h | 76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 129 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 146 dither = SkAlphaMul(dither, SkAlpha255To256(a)); 163 dither = SkAlphaMul(dither, SkAlpha255To256(a));
|
/external/skia/src/opts/ |
SkBlitRow_opts_arm_neon.cpp | 677 int d = SkAlphaMul(DITHER_VALUE(my_x), SkAlpha255To256(a)); [all...] |