/external/skia/src/core/ |
D | SkBlitter_A8.cpp | 43 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); in blitH() 68 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitAntiH() 72 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); in blitAntiH() 104 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels() 105 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels() 106 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels() 107 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels() 108 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels() 109 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels() 110 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels() [all …]
|
D | SkDither.h | 75 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32For565() 128 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32To565() 145 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444() 162 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444()
|
D | SkBlitter.cpp | 655 r = SkFastMin32(SkAlphaMul(r, mul) + add, a); in shadeSpan() 656 g = SkFastMin32(SkAlphaMul(g, mul) + add, a); in shadeSpan() 657 b = SkFastMin32(SkAlphaMul(b, mul) + add, a); in shadeSpan() 676 SkFastMin32(SkAlphaMul(r, mul) + add, a), in shadeSpan() 677 SkFastMin32(SkAlphaMul(g, mul) + add, a), in shadeSpan() 678 SkFastMin32(SkAlphaMul(b, mul) + add, a)); in shadeSpan()
|
D | SkBlitMask_D32.cpp | 188 return dst + SkAlphaMul(src - SkAlphaMul(srcA, dst), mask); in src_alpha_blend()
|
D | SkColorShader.cpp | 43 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha())); in ColorShaderContext() 161 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha())); in Color4Context()
|
D | SkBlitter_ARGB32.cpp | 50 fSrcR = SkAlphaMul(SkColorGetR(color), scale); in SkARGB32_Blitter() 51 fSrcG = SkAlphaMul(SkColorGetG(color), scale); in SkARGB32_Blitter() 52 fSrcB = SkAlphaMul(SkColorGetB(color), scale); in SkARGB32_Blitter()
|
D | SkScan_Antihair.cpp | 626 blitter->blitV(L >> 8, top, 1, SkAlphaMul(alpha, R - L)); in do_scanline() 633 blitter->blitV(left, top, 1, SkAlphaMul(alpha, 256 - (L & 0xFF))); in do_scanline() 643 blitter->blitV(rite, top, 1, SkAlphaMul(alpha, R & 0xFF)); in do_scanline()
|
D | SkBlitter_RGB16.cpp | 525 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter() 526 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), in SkRGB16_Blitter() 527 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); in SkRGB16_Blitter()
|
D | SkBlitRow_D16.cpp | 147 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither()
|
D | SkDraw.cpp | 1825 scale0 = SkAlphaMul(scale0, alphaScale); in shadeSpan() 1826 scale1 = SkAlphaMul(scale1, alphaScale); in shadeSpan() 1827 scale2 = SkAlphaMul(scale2, alphaScale); in shadeSpan()
|
/external/skia/tests/ |
D | SrcOverTest.cpp | 13 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0() 18 return alpha + SkAlphaMul(dst, 256 - alpha); in test_srcover1()
|
/external/skia/src/effects/ |
D | SkBlurMask.cpp | 427 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src))); in merge_src_with_blur() 457 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src))); in clamp_with_orig()
|
/external/skia/src/opts/ |
D | SkBlitRow_opts_SSE2.cpp | 816 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_SSE2() 971 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_SSE2()
|
D | SkBlitRow_opts_arm_neon.cpp | 1153 int d = SkAlphaMul(dither, alpha); in S32A_D565_Opaque_Dither_neon()
|
/external/skia/include/core/ |
D | SkColorPriv.h | 201 #define SkAlphaMul(value, alpha256) (((value) * (alpha256)) >> 8) macro 216 return dst + SkAlphaMul(src - dst, scale256); in SkAlphaBlend()
|