/external/skia/src/core/ |
D | SkBlitter_ARGB32_Subpixel.cpp | 79 unsigned alphaRed = SkAlpha255To256(SkGetPackedR32(alphaPixel)); in BlendLCDPixelWithColor() 80 unsigned alphaGreen = SkAlpha255To256(SkGetPackedG32(alphaPixel)); in BlendLCDPixelWithColor() 81 unsigned alphaBlue = SkAlpha255To256(SkGetPackedB32(alphaPixel)); in BlendLCDPixelWithColor() 86 unsigned sourceAlpha = SkAlpha255To256(SkGetPackedA32(sourcePixel)); in BlendLCDPixelWithColor() 107 unsigned alphaRed = SkAlpha255To256(SkGetPackedR32(alphaPixel)); in BlendLCDPixelWithOpaqueColor() 108 unsigned alphaGreen = SkAlpha255To256(SkGetPackedG32(alphaPixel)); in BlendLCDPixelWithOpaqueColor() 109 unsigned alphaBlue = SkAlpha255To256(SkGetPackedB32(alphaPixel)); in BlendLCDPixelWithOpaqueColor() 128 unsigned alphaRed = SkAlpha255To256(SkGetPackedR32(alphaPixel)); in BlendLCDPixelWithBlack() 129 unsigned alphaGreen = SkAlpha255To256(SkGetPackedG32(alphaPixel)); in BlendLCDPixelWithBlack() 130 unsigned alphaBlue = SkAlpha255To256(SkGetPackedB32(alphaPixel)); in BlendLCDPixelWithBlack()
|
D | SkBlitRow_D4444.cpp | 28 unsigned scale16 = SkAlpha255To256(alpha) >> 4; in S32_D4444_Blend() 54 unsigned scale16 = SkAlpha255To256(255 - SkGetPackedA32(c)) >> 4; in S32A_D4444_Opaque() 70 int src_scale = SkAlpha255To256(alpha) >> 4; in S32A_D4444_Blend() 113 int scale16 = SkAlpha255To256(alpha) >> 4; in S32_D4444_Blend_Dither() 142 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D4444_Opaque_Dither() 144 unsigned scale16 = SkAlpha255To256(255 - a) >> 4; in S32A_D4444_Opaque_Dither() 165 int src_scale = SkAlpha255To256(alpha) >> 4; in S32A_D4444_Blend_Dither() 171 unsigned a = SkAlpha255To256(SkGetPackedA32(c)); in S32A_D4444_Blend_Dither()
|
D | SkBlitter_A8.cpp | 49 unsigned scale = 256 - SkAlpha255To256(fSrcA); in blitH() 78 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitAntiH() 141 SkAlpha255To256(255 - fSrcA)); in blitMask() 170 sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitMask() 174 int scale = 256 - SkAlpha255To256(sa); in blitMask() 189 unsigned sa = SkAlphaMul(fSrcA, SkAlpha255To256(alpha)); in blitV() 199 unsigned scale = 256 - SkAlpha255To256(sa); in blitV() 226 unsigned scale = 256 - SkAlpha255To256(srcA); in blitRect() 273 unsigned scale = 256 - SkAlpha255To256(srcA); in blitH() 284 int src_scale = SkAlpha255To256(aa); in aa_blend8()
|
D | SkBlitRow_D16.cpp | 27 int scale = SkAlpha255To256(alpha); in S32_D565_Blend() 106 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither() 142 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither() 153 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither() 169 int src_scale = SkAlpha255To256(alpha); in S32A_D565_Blend_Dither() 178 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither()
|
D | SkBlitRow_D32.cpp | 19 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32() 161 unsigned scale = 256 - SkAlpha255To256(colorA); in Color32() 204 … *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in D32_Mask_Opaque() 223 *device = (aa << SK_A32_SHIFT) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in D32_Mask_Black()
|
D | SkBlitter_RGB16.cpp | 227 *device = SkAlphaMulRGB16(*device, SkAlpha255To256(255 - aa)); in blitMask() 256 aa = SkAlpha255To256(255 - aa); in blitAntiH() 331 unsigned scale5 = SkAlpha255To256(aa) >> 3; in blitAntiH() 462 SkAlpha255To256(*alpha++) >> 3); in blitMask() 475 SkAlpha255To256(*alpha++) >> 3); in blitMask() 489 unsigned scale5 = SkAlpha255To256(alpha) >> 3; in blitV() 530 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter() 567 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in blend32_16_row() 603 unsigned scale5 = SkAlpha255To256(aa) * scale >> (8 + 3); in blitAntiH() 655 unsigned scale = SkAlpha255To256(aa) * scale256 >> (8 + 3); in blitMask() [all …]
|
D | SkColor.cpp | 24 unsigned scale = SkAlpha255To256(a); in SkPreMultiplyARGB() 120 unsigned v_scale = SkAlpha255To256(v); in SkHSVToColor()
|
D | SkXfermode.cpp | 23 unsigned scale = SkAlpha255To256(alpha); in SkFourByteInterp() 106 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in srcover_modeproc() 123 return SkAlphaMulQ(src, SkAlpha255To256(SkGetPackedA32(dst))); in srcin_modeproc() 128 return SkAlphaMulQ(dst, SkAlpha255To256(SkGetPackedA32(src))); in dstin_modeproc() 133 return SkAlphaMulQ(src, SkAlpha255To256(255 - SkGetPackedA32(dst))); in srcout_modeproc() 138 return SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in dstout_modeproc() 574 A = SkAlphaBlend(A, dstA, SkAlpha255To256(a)); in xferA8() 691 A = SkAlphaBlend(A, dstA, SkAlpha255To256(a)); in xferA8() 790 dst[i] = SkAlphaMulQ(dst[i], SkAlpha255To256(255 - a)); in xfer32() 905 *dst = SkAlphaMulQ(*dst, SkAlpha255To256(a)); in xfer32() [all …]
|
D | SkBlitter_ARGB32.cpp | 146 unsigned scale = SkAlpha255To256(fSrcA); in SkARGB32_Blitter() 199 uint32_t sc = SkAlphaMulQ(color, SkAlpha255To256(aa)); in blitAntiH() 258 SkARGB32_BlendBW(fDevice, mask, clip, fPMColor, SkAlpha255To256(255 - fSrcA)); in blitMask() 345 color = SkAlphaMulQ(color, SkAlpha255To256(alpha)); in blitV() 446 *device = (aa << SK_A32_SHIFT) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in blitMask()
|
D | SkSpriteBlitter_RGB16.cpp | 94 #define SkSPRITE_PREAMBLE(srcBM, x, y) int scale = SkAlpha255To256(fSrcAlpha); 167 …lor* ctable = srcBM.getColorTable()->lockColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha); 259 … ctable = srcBM.getColorTable()->lock16BitCache(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
|
D | SkBlitter_4444.cpp | 30 unsigned src_scale = SkAlpha255To256(aa) >> 4; in SkBlendARGB4444() 180 unsigned alphaScale = SkAlpha255To256(alpha); in blitV() 263 aa = SkAlpha255To256(aa); // FIX in blitAntiH()
|
D | SkBitmapProcState.cpp | 207 *(dst) = SkAlphaMulQ(pmColor, SkAlpha255To256(tmp)); \ 216 #define RETURNDST(src) SkAlphaMulQ(pmColor, SkAlpha255To256(src)) 388 fAlphaScale = SkAlpha255To256(paint.getAlpha()); in chooseProcs()
|
D | SkComposeShader.cpp | 114 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
|
D | SkBitmapSampler.cpp | 288 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample() 314 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample()
|
D | ARGB32_Clamp_Bilinear_BitmapShader.h | 62 unsigned srcScale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
|
D | SkShader.cpp | 272 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha())); in setContext()
|
/external/skia/src/effects/ |
D | SkColorFilters.cpp | 311 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan() 312 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); in filterSpan() 313 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); in filterSpan() 323 unsigned scaleA = SkAlpha255To256(a); in filterSpan() 374 unsigned scaleA = SkAlpha255To256(a); in filterSpan() 405 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan() 406 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); in filterSpan() 407 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); in filterSpan() 454 unsigned scale = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan16() 484 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan() [all …]
|
D | SkTransparentShader.cpp | 51 unsigned scale = SkAlpha255To256(fAlpha); in shadeSpan()
|
D | SkBlurMask.cpp | 193 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src))); in merge_src_with_blur() 223 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src))); in clamp_with_orig()
|
/external/skia/include/core/ |
D | SkDither.h | 83 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32For565() 136 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32To565() 153 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444() 170 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444()
|
D | SkColorPriv.h | 34 static inline unsigned SkAlpha255To256(U8CPU alpha) { in SkAlpha255To256() function 231 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in SkPMSrcOver() 237 unsigned src_scale = SkAlpha255To256(aa); in SkBlendARGB32() 238 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() 565 unsigned dstScale = SkAlpha255To256(255 - (src32 & 0xFF)) >> 4; in SkBlend4444()
|
/external/skia/src/opts/ |
D | SkBlitRow_opts_arm.cpp | 335 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither_neon() 801 uint16_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_neon() 956 int d = SkAlphaMul(DITHER_VALUE(my_x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_neon() 959 tap[i] = SkAlpha255To256(a); in S32A_D565_Opaque_Dither_neon() 971 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_neon() 1126 unsigned alpha = SkAlpha255To256(a); in S32A_D565_Opaque_Dither_neon() 1138 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_neon()
|
D | SkBlitRow_opts_SSE2.cpp | 35 uint32_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_SSE2() 241 uint32_t src_scale = SkAlpha255To256(alpha); in S32A_Blend_BlitRow32_SSE2() 335 unsigned scale = 256 - SkAlpha255To256(colorA); in Color32_SSE2()
|
/external/skia/tests/ |
D | SrcOverTest.cpp | 7 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
|
/external/skia/samplecode/ |
D | SampleXfermodes.cpp | 55 int iscale = SkAlpha255To256(ia);
|