Home
last modified time | relevance | path

Searched refs:SkAlphaMul (Results 1 – 21 of 21) sorted by relevance

/external/skia/src/core/
DSkBlitter_A8.cpp45 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); in blitH()
70 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitAntiH()
74 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); in blitAntiH()
106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
[all …]
DSkColor.cpp97 unsigned p = SkAlphaMul(255 - s, v_scale); in SkHSVToColor()
98 unsigned q = SkAlphaMul(255 - (s * f >> 16), v_scale); in SkHSVToColor()
99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale); in SkHSVToColor()
DSkBlitter.cpp659 r = SkFastMin32(SkAlphaMul(r, mul) + add, a); in shadeSpan()
660 g = SkFastMin32(SkAlphaMul(g, mul) + add, a); in shadeSpan()
661 b = SkFastMin32(SkAlphaMul(b, mul) + add, a); in shadeSpan()
680 SkFastMin32(SkAlphaMul(r, mul) + add, a), in shadeSpan()
681 SkFastMin32(SkAlphaMul(g, mul) + add, a), in shadeSpan()
682 SkFastMin32(SkAlphaMul(b, mul) + add, a)); in shadeSpan()
DSkBlitRow_D16.cpp147 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither()
183 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither()
DSkBitmap.cpp712 r = SkAlphaMul(r, a); in internalErase()
713 g = SkAlphaMul(g, a); in internalErase()
714 b = SkAlphaMul(b, a); in internalErase()
735 r = SkAlphaMul(r, a); in internalErase()
736 g = SkAlphaMul(g, a); in internalErase()
737 b = SkAlphaMul(b, a); in internalErase()
DSkBlitMask_D32.cpp275 return dst + SkAlphaMul(src - SkAlphaMul(srcA, dst), mask); in src_alpha_blend()
DSkBlitter_ARGB32.cpp50 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()
DSkBlitter_RGB16.cpp546 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter()
547 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), in SkRGB16_Blitter()
548 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); in SkRGB16_Blitter()
797 int aa = SkAlphaMul(*antialias, alpha); in blitAntiH()
DSkScan_Antihair.cpp627 blitter->blitV(L >> 8, top, 1, SkAlphaMul(alpha, R - L)); in do_scanline()
634 blitter->blitV(left, top, 1, SkAlphaMul(alpha, 256 - (L & 0xFF))); in do_scanline()
644 blitter->blitV(rite, top, 1, SkAlphaMul(alpha, R & 0xFF)); in do_scanline()
DSkShader.cpp290 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha())); in ColorShaderContext()
DSkSpriteBlitter_RGB16.cpp34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper()
DSkDraw.cpp2002 scale0 = SkAlphaMul(scale0, alphaScale); in shadeSpan()
2003 scale1 = SkAlphaMul(scale1, alphaScale); in shadeSpan()
2004 scale2 = SkAlphaMul(scale2, alphaScale); in shadeSpan()
/external/skia/src/effects/
DSkTransparentShader.cpp82 SkAlphaMul(r, scale), in shadeSpan()
83 SkAlphaMul(g, scale), in shadeSpan()
84 SkAlphaMul(b, scale)); in shadeSpan()
97 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0); in shadeSpan()
DSkArithmeticMode.cpp175 r = SkAlphaMul(r, scale); in xfer32()
176 g = SkAlphaMul(g, scale); in xfer32()
177 b = SkAlphaMul(b, scale); in xfer32()
DSkBlurMask.cpp428 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src))); in merge_src_with_blur()
458 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src))); in clamp_with_orig()
/external/skia/include/core/
DSkDither.h76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32For565()
129 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32To565()
146 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444()
163 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444()
DSkColorPriv.h196 #define SkAlphaMul(value, alpha256) (SkMulS16(value, alpha256) >> 8) macro
203 return dst + SkAlphaMul(src - dst, scale256); in SkAlphaBlend()
554 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32()
/external/skia/tests/
DSrcOverTest.cpp14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
19 return alpha + SkAlphaMul(dst, 256 - alpha); in test_srcover1()
/external/skia/src/opts/
DSkBlitRow_opts_mips_dsp.cpp245 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_mips_dsp()
DSkBlitRow_opts_SSE2.cpp993 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_SSE2()
1148 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_SSE2()
DSkBlitRow_opts_arm_neon.cpp1393 int d = SkAlphaMul(DITHER_VALUE(my_x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_neon()
1549 int d = SkAlphaMul(dither, alpha); in S32A_D565_Opaque_Dither_neon()