HomeSort by relevance Sort by last modified time
    Searched refs:SkAlphaMul (Results 1 - 19 of 19) sorted by null

  /external/skia/tests/
SrcOverTest.cpp 14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha));
19 return alpha + SkAlphaMul(dst, 256 - alpha);
  /external/skia/src/core/
SkBlitter_A8.cpp 44 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale));
69 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa));
73 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale));
105 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale));
106 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale));
107 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale));
108 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale));
109 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale));
110 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale));
111 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale))
    [all...]
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));
SkColor.cpp 86 unsigned p = SkAlphaMul(255 - s, v_scale);
87 unsigned q = SkAlphaMul(255 - (s * f >> 16), v_scale);
88 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale);
SkBlitRow_D16.cpp 147 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a));
183 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
SkBlitter.cpp 670 r = SkFastMin32(SkAlphaMul(r, mul) + add, a);
671 g = SkFastMin32(SkAlphaMul(g, mul) + add, a);
672 b = SkFastMin32(SkAlphaMul(b, mul) + add, a);
691 SkFastMin32(SkAlphaMul(r, mul) + add, a),
692 SkFastMin32(SkAlphaMul(g, mul) + add, a),
693 SkFastMin32(SkAlphaMul(b, mul) + add, a));
SkBlitMask_D32.cpp 188 return dst + SkAlphaMul(src - SkAlphaMul(srcA, dst), mask);
SkShader.cpp 284 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha()));
SkBlitter_ARGB32.cpp 50 fSrcR = SkAlphaMul(SkColorGetR(color), scale);
51 fSrcG = SkAlphaMul(SkColorGetG(color), scale);
52 fSrcB = SkAlphaMul(SkColorGetB(color), scale);
SkBlitter_RGB16.cpp 534 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS),
535 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS),
536 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS));
SkScan_Antihair.cpp 627 blitter->blitV(L >> 8, top, 1, SkAlphaMul(alpha, R - L));
634 blitter->blitV(left, top, 1, SkAlphaMul(alpha, 256 - (L & 0xFF)));
644 blitter->blitV(rite, top, 1, SkAlphaMul(alpha, R & 0xFF));
840 // need precise rounding (not just SkAlphaMul) so that values like
SkSpriteBlitter_RGB16.cpp 34 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale);
SkDraw.cpp     [all...]
  /external/skia/src/effects/
SkAvoidXfermode.cpp 104 d = SkAlphaMul(d, Accurate255To256(*aa++));
153 d = SkAlphaMul(d, Accurate255To256(*aa++));
SkBlurMask.cpp 428 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src)));
458 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src)));
    [all...]
  /external/skia/include/core/
SkColorPriv.h 201 #define SkAlphaMul(value, alpha256) (((value) * (alpha256)) >> 8)
205 // extension when we shift (in SkAlphaMul)
208 return dst + SkAlphaMul(src - dst, scale256);
575 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale));
    [all...]
  /external/skia/src/opts/
SkBlitRow_opts_mips_dsp.cpp 245 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a));
    [all...]
SkBlitRow_opts_SSE2.cpp     [all...]
SkBlitRow_opts_arm_neon.cpp     [all...]

Completed in 1053 milliseconds