Home
last modified time | relevance | path

Searched refs:SkAlphaMul (Results 1 – 23 of 23) 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()
DSkBlitRow_D4444.cpp149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D4444_Opaque_Dither()
179 int d = SkAlphaMul(DITHER_VALUE(x), a); in S32A_D4444_Blend_Dither()
181 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a); in S32A_D4444_Blend_Dither()
DSkBlitter.cpp614 r = SkFastMin32(SkAlphaMul(r, mul) + add, a); in shadeSpan()
615 g = SkFastMin32(SkAlphaMul(g, mul) + add, a); in shadeSpan()
616 b = SkFastMin32(SkAlphaMul(b, mul) + add, a); in shadeSpan()
635 SkFastMin32(SkAlphaMul(r, mul) + add, a), in shadeSpan()
636 SkFastMin32(SkAlphaMul(g, mul) + add, a), in shadeSpan()
637 SkFastMin32(SkAlphaMul(b, mul) + add, a)); in shadeSpan()
DSkBlitRow_D16.cpp149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither()
185 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither()
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.cpp542 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter()
543 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), in SkRGB16_Blitter()
544 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); in SkRGB16_Blitter()
799 int aa = SkAlphaMul(*antialias, alpha); in blitAntiH()
DSkScan_Antihair.cpp486 blitter->blitV(L >> 8, top, 1, SkAlphaMul(alpha, R - L)); in do_scanline()
493 blitter->blitV(left, top, 1, SkAlphaMul(alpha, 256 - (L & 0xFF))); in do_scanline()
503 blitter->blitV(rite, top, 1, SkAlphaMul(alpha, R & 0xFF)); in do_scanline()
DSkShader.cpp278 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha())); in setContext()
DSkBitmap.cpp687 r = SkAlphaMul(r, a); in eraseARGB()
688 g = SkAlphaMul(g, a); in eraseARGB()
689 b = SkAlphaMul(b, a); in eraseARGB()
DSkSpriteBlitter_RGB16.cpp34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper()
/external/skia/src/effects/
DSkColorFilters.cpp317 … unsigned r = pin(SkAlphaMul(SkGetPackedR32(c), scaleR) + SkAlphaMul(addR, scaleA), a); in filterSpan()
318 … unsigned g = pin(SkAlphaMul(SkGetPackedG32(c), scaleG) + SkAlphaMul(addG, scaleA), a); in filterSpan()
319 … unsigned b = pin(SkAlphaMul(SkGetPackedB32(c), scaleB) + SkAlphaMul(addB, scaleA), a); in filterSpan()
368 unsigned r = pin(SkGetPackedR32(c) + SkAlphaMul(addR, scaleA), a); in filterSpan()
369 unsigned g = pin(SkGetPackedG32(c) + SkAlphaMul(addG, scaleA), a); in filterSpan()
370 unsigned b = pin(SkGetPackedB32(c) + SkAlphaMul(addB, scaleA), a); in filterSpan()
406 unsigned r = SkAlphaMul(SkGetPackedR32(c), scaleR); in filterSpan()
407 unsigned g = SkAlphaMul(SkGetPackedG32(c), scaleG); in filterSpan()
408 unsigned b = SkAlphaMul(SkGetPackedB32(c), scaleB); in filterSpan()
490 unsigned r = SkAlphaMul(SkGetPackedR32(c), scaleR) + SkAlphaMul(addR, scaleA); in filterSpan()
[all …]
DSkTransparentShader.cpp74 SkAlphaMul(r, scale), in shadeSpan()
75 SkAlphaMul(g, scale), in shadeSpan()
76 SkAlphaMul(b, scale)); in shadeSpan()
107 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0); in shadeSpan()
DSkArithmeticMode.cpp120 r = SkAlphaMul(r, scale); in xfer32()
121 g = SkAlphaMul(g, scale); in xfer32()
122 b = SkAlphaMul(b, scale); in xfer32()
DSkAvoidXfermode.cpp136 d = SkAlphaMul(d, Accurate255To256(*aa++)); in xfer32()
187 d = SkAlphaMul(d, Accurate255To256(*aa++)); in xfer16()
228 d = SkAlphaMul(d, Accurate255To256(*aa++)); in xfer4444()
DSkBlurMask.cpp500 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src))); in merge_src_with_blur()
530 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src))); in clamp_with_orig()
/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/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.h37 #define SkAlphaMul(value, alpha256) (SkMulS16(value, alpha256) >> 8) macro
44 return dst + SkAlphaMul(src - dst, scale256); in SkAlphaBlend()
312 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32()
/external/webkit/Source/WebCore/platform/graphics/android/context/
DPlatformGraphicsContext.cpp185 int a = SkAlphaMul(SkColorGetA(c), s); in applyAlpha()
/external/skia/src/opts/
DSkBlitRow_opts_arm.cpp1491 int d = SkAlphaMul(DITHER_VALUE(my_x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_neon()
1662 int d = SkAlphaMul(dither, alpha); in S32A_D565_Opaque_Dither_neon()
/external/skia/samplecode/
DSampleApp.cpp1014 p[0] = SkAlphaMul(r, scale); in reverseRedAndBlue()
1015 p[1] = SkAlphaMul(p[1], scale); in reverseRedAndBlue()
1016 p[2] = SkAlphaMul(b, scale); in reverseRedAndBlue()
/external/webkit/Source/WebCore/platform/graphics/skia/
DPlatformContextSkia.cpp209 int a = SkAlphaMul(SkColorGetA(c), s); in applyAlpha()