/external/skia/src/core/ |
SkBlitter_A8.cpp | 53 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); 78 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 82 device[i] = SkToU8(sa + SkAlphaMul(device[i], 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)) [all...] |
SkColor.cpp | 25 r = SkAlphaMul(r, scale); 26 g = SkAlphaMul(g, scale); 27 b = SkAlphaMul(b, scale); 121 unsigned p = SkAlphaMul(255 - s, v_scale); 122 unsigned q = SkAlphaMul(255 - (s * f >> 16), v_scale); 123 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale);
|
SkBlitRow_D4444.cpp | 142 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 172 int d = SkAlphaMul(DITHER_VALUE(x), a); 174 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a);
|
SkBlitRow_D16.cpp | 142 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 178 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
|
SkBlitter.cpp | 541 r = SkFastMin32(SkAlphaMul(r, mul) + add, a); 542 g = SkFastMin32(SkAlphaMul(g, mul) + add, a); 543 b = SkFastMin32(SkAlphaMul(b, mul) + add, a); 562 SkFastMin32(SkAlphaMul(r, mul) + add, a), 563 SkFastMin32(SkAlphaMul(g, mul) + add, a), 564 SkFastMin32(SkAlphaMul(b, mul) + add, a));
|
SkBlitter_ARGB32.cpp | 147 fSrcR = SkAlphaMul(SkColorGetR(color), scale); 148 fSrcG = SkAlphaMul(SkColorGetG(color), scale); 149 fSrcB = SkAlphaMul(SkColorGetB(color), scale);
|
SkBlitter_RGB16.cpp | 544 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), 545 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), 546 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); 802 int aa = SkAlphaMul(*antialias, alpha); [all...] |
SkShader.cpp | 272 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha()));
|
SkScan_Antihair.cpp | 494 blitter->blitV(L >> 8, top, 1, SkAlphaMul(alpha, R - L)); 501 blitter->blitV(left, top, 1, SkAlphaMul(alpha, 256 - (L & 0xFF))); 511 blitter->blitV(rite, top, 1, SkAlphaMul(alpha, R & 0xFF)); 687 // need precise rounding (not just SkAlphaMul) so that values like
|
SkBitmap.cpp | 695 r = SkAlphaMul(r, a); 696 g = SkAlphaMul(g, a); 697 b = SkAlphaMul(b, a); [all...] |
SkSpriteBlitter_RGB16.cpp | 42 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale);
|
/external/skia/tests/ |
SrcOverTest.cpp | 7 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); 12 return alpha + SkAlphaMul(dst, 256 - alpha);
|
/external/skia/src/effects/ |
SkColorFilters.cpp | 324 unsigned r = pin(SkAlphaMul(SkGetPackedR32(c), scaleR) + SkAlphaMul(addR, scaleA), a); 325 unsigned g = pin(SkAlphaMul(SkGetPackedG32(c), scaleG) + SkAlphaMul(addG, scaleA), a); 326 unsigned b = pin(SkAlphaMul(SkGetPackedB32(c), scaleB) + SkAlphaMul(addB, scaleA), a); 375 unsigned r = pin(SkGetPackedR32(c) + SkAlphaMul(addR, scaleA), a); 376 unsigned g = pin(SkGetPackedG32(c) + SkAlphaMul(addG, scaleA), a); 377 unsigned b = pin(SkGetPackedB32(c) + SkAlphaMul(addB, scaleA), a); 413 unsigned r = SkAlphaMul(SkGetPackedR32(c), scaleR) [all...] |
SkTransparentShader.cpp | 82 SkAlphaMul(r, scale), 83 SkAlphaMul(g, scale), 84 SkAlphaMul(b, scale)); 115 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
SkAvoidXfermode.cpp | 154 d = SkAlphaMul(d, Accurate255To256(*aa++)); 205 d = SkAlphaMul(d, Accurate255To256(*aa++)); 246 d = SkAlphaMul(d, Accurate255To256(*aa++));
|
SkColorMatrixFilter.cpp | 266 r = SkAlphaMul(r, scale); 267 g = SkAlphaMul(g, scale); 268 b = SkAlphaMul(b, scale);
|
SkBlurMask.cpp | 193 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src))); 223 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src)));
|
/external/skia/include/core/ |
SkDither.h | 83 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 136 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 153 dither = SkAlphaMul(dither, SkAlpha255To256(a)); 170 dither = SkAlphaMul(dither, SkAlpha255To256(a));
|
SkColorPriv.h | 44 #define SkAlphaMul(value, alpha256) (SkMulS16(value, alpha256) >> 8) 48 // extension when we shift (in SkAlphaMul) 51 return dst + SkAlphaMul(src - dst, scale256); 238 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale));
|
/external/skia/samplecode/ |
SampleApp.cpp | 745 p[0] = SkAlphaMul(r, scale); 746 p[1] = SkAlphaMul(p[1], scale); 747 p[2] = SkAlphaMul(b, scale); [all...] |
/external/skia/src/opts/ |
SkBlitRow_opts_arm.cpp | [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/ |
GraphicsContextAndroid.cpp | 214 int a = SkAlphaMul(SkColorGetA(c), s); [all...] |
/external/webkit/Source/WebCore/platform/graphics/skia/ |
PlatformContextSkia.cpp | 209 int a = SkAlphaMul(SkColorGetA(c), s);
|