/external/skia/src/core/ |
D | SkBlitRow_D4444.cpp | 35 unsigned scale16 = SkAlpha255To256(alpha) >> 4; in S32_D4444_Blend() 61 unsigned scale16 = SkAlpha255To256(255 - SkGetPackedA32(c)) >> 4; in S32A_D4444_Opaque() 77 int src_scale = SkAlpha255To256(alpha) >> 4; in S32A_D4444_Blend() 120 int scale16 = SkAlpha255To256(alpha) >> 4; in S32_D4444_Blend_Dither() 149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D4444_Opaque_Dither() 151 unsigned scale16 = SkAlpha255To256(255 - a) >> 4; in S32A_D4444_Opaque_Dither() 172 int src_scale = SkAlpha255To256(alpha) >> 4; in S32A_D4444_Blend_Dither() 178 unsigned a = SkAlpha255To256(SkGetPackedA32(c)); in S32A_D4444_Blend_Dither()
|
D | SkBlitMask_D32.cpp | 39 … *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in D32_A8_Opaque() 59 *device = (aa << SK_A32_SHIFT) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in D32_A8_Black() 128 maskR = SkAlpha255To256(maskR); in blit_lcd32_opaque_row() 129 maskG = SkAlpha255To256(maskG); in blit_lcd32_opaque_row() 130 maskB = SkAlpha255To256(maskB); in blit_lcd32_opaque_row() 153 srcA = SkAlpha255To256(srcA); in blit_lcd32_row() 168 maskR = SkAlpha255To256(maskR); in blit_lcd32_row() 169 maskG = SkAlpha255To256(maskG); in blit_lcd32_row() 170 maskB = SkAlpha255To256(maskB); in blit_lcd32_row() 492 srcA = SkAlpha255To256(srcA); in LCD32_RowProc_Blend() [all …]
|
D | SkBlitter_A8.cpp | 41 unsigned scale = 256 - SkAlpha255To256(fSrcA); in blitH() 70 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitAntiH() 133 SkAlpha255To256(255 - fSrcA)); in blitMask() 162 sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitMask() 166 int scale = 256 - SkAlpha255To256(sa); in blitMask() 181 unsigned sa = SkAlphaMul(fSrcA, SkAlpha255To256(alpha)); in blitV() 191 unsigned scale = 256 - SkAlpha255To256(sa); in blitV() 218 unsigned scale = 256 - SkAlpha255To256(srcA); in blitRect() 265 unsigned scale = 256 - SkAlpha255To256(srcA); in blitH() 276 int src_scale = SkAlpha255To256(aa); in aa_blend8()
|
D | SkBlitRow_D16.cpp | 34 int scale = SkAlpha255To256(alpha); in S32_D565_Blend() 113 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither() 149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither() 160 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither() 176 int src_scale = SkAlpha255To256(alpha); in S32A_D565_Blend_Dither() 185 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither()
|
D | SkBlitter_RGB16.cpp | 226 *device = SkAlphaMulRGB16(*device, SkAlpha255To256(255 - aa)); in blitMask() 254 aa = SkAlpha255To256(255 - aa); in blitAntiH() 329 unsigned scale5 = SkAlpha255To256(aa) >> 3; in blitAntiH() 460 SkAlpha255To256(*alpha++) >> 3); in blitMask() 473 SkAlpha255To256(*alpha++) >> 3); in blitMask() 487 unsigned scale5 = SkAlpha255To256(alpha) >> 3; in blitV() 528 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter() 565 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in blend32_16_row() 601 unsigned scale5 = SkAlpha255To256(aa) * scale >> (8 + 3); in blitAntiH() 653 unsigned scale = SkAlpha255To256(aa) * scale256 >> (8 + 3); in blitMask() [all …]
|
D | SkBlitRow_D32.cpp | 27 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32() 171 unsigned scale = 256 - SkAlpha255To256(colorA); in Color32()
|
D | SkBlitter_ARGB32.cpp | 49 unsigned scale = SkAlpha255To256(fSrcA); in SkARGB32_Blitter() 99 uint32_t sc = SkAlphaMulQ(color, SkAlpha255To256(aa)); in blitAntiH() 162 SkARGB32_BlendBW(fDevice, mask, clip, fPMColor, SkAlpha255To256(255 - fSrcA)); in blitMask() 194 color = SkAlphaMulQ(color, SkAlpha255To256(alpha)); in blitV()
|
D | SkXfermode.cpp | 88 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in srcover_modeproc() 105 return SkAlphaMulQ(src, SkAlpha255To256(SkGetPackedA32(dst))); in srcin_modeproc() 110 return SkAlphaMulQ(dst, SkAlpha255To256(SkGetPackedA32(src))); in dstin_modeproc() 115 return SkAlphaMulQ(src, SkAlpha255To256(255 - SkGetPackedA32(dst))); in srcout_modeproc() 120 return SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in dstout_modeproc() 556 A = SkAlphaBlend(A, dstA, SkAlpha255To256(a)); in xferA8() 673 A = SkAlphaBlend(A, dstA, SkAlpha255To256(a)); in xferA8() 802 dst[i] = SkAlphaMulQ(dst[i], SkAlpha255To256(255 - a)); in xfer32() 922 *dst = SkAlphaMulQ(*dst, SkAlpha255To256(a)); in xfer32() 962 *dst = SkAlphaMulQ(*dst, SkAlpha255To256(255 - a)); in xfer32()
|
D | SkSpriteBlitter_RGB16.cpp | 86 #define SkSPRITE_PREAMBLE(srcBM, x, y) int scale = SkAlpha255To256(fSrcAlpha); 159 …lor* ctable = srcBM.getColorTable()->lockColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha); 251 … ctable = srcBM.getColorTable()->lock16BitCache(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
|
D | SkBlitter_4444.cpp | 22 unsigned src_scale = SkAlpha255To256(aa) >> 4; in SkBlendARGB4444() 172 unsigned alphaScale = SkAlpha255To256(alpha); in blitV() 255 aa = SkAlpha255To256(aa); // FIX in blitAntiH()
|
D | SkColor.cpp | 96 unsigned v_scale = SkAlpha255To256(v); in SkHSVToColor()
|
D | SkComposeShader.cpp | 113 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
|
D | SkBitmapProcState.cpp | 214 *(dst) = SkAlphaMulQ(pmColor, SkAlpha255To256(tmp)); \ 223 #define RETURNDST(src) SkAlphaMulQ(pmColor, SkAlpha255To256(src)) 395 fAlphaScale = SkAlpha255To256(paint.getAlpha()); in chooseProcs()
|
D | SkBitmapSampler.cpp | 280 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample() 306 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample()
|
D | ARGB32_Clamp_Bilinear_BitmapShader.h | 69 unsigned srcScale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
|
D | SkShader.cpp | 278 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha())); in setContext()
|
D | SkBitmapShaderTemplate.h | 56 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
|
/external/skia/src/effects/ |
D | SkColorFilters.cpp | 304 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan() 305 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); in filterSpan() 306 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); in filterSpan() 316 unsigned scaleA = SkAlpha255To256(a); in filterSpan() 367 unsigned scaleA = SkAlpha255To256(a); in filterSpan() 398 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan() 399 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); in filterSpan() 400 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); in filterSpan() 447 unsigned scale = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan16() 477 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); in filterSpan() [all …]
|
D | SkTransparentShader.cpp | 43 unsigned scale = SkAlpha255To256(fAlpha); in shadeSpan()
|
/external/skia/include/core/ |
D | SkDither.h | 76 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()
|
D | SkColorPriv.h | 27 static inline unsigned SkAlpha255To256(U8CPU alpha) { in SkAlpha255To256() function 226 unsigned scale = SkAlpha255To256(srcWeight); in SkFourByteInterp() 305 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in SkPMSrcOver() 311 unsigned src_scale = SkAlpha255To256(aa); in SkBlendARGB32() 312 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32() 639 unsigned dstScale = SkAlpha255To256(255 - (src32 & 0xFF)) >> 4; in SkBlend4444() 808 srcA = SkAlpha255To256(srcA); in SkBlitLCD16Row()
|
/external/skia/src/opts/ |
D | SkBlitRow_opts_arm.cpp | 323 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither_neon() 1336 uint16_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_neon() 1491 int d = SkAlphaMul(DITHER_VALUE(my_x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_neon() 1494 tap[i] = SkAlpha255To256(a); in S32A_D565_Opaque_Dither_neon() 1506 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_neon() 1661 unsigned alpha = SkAlpha255To256(a); in S32A_D565_Opaque_Dither_neon() 1673 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_neon()
|
D | SkBlitRow_opts_SSE2.cpp | 26 uint32_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_SSE2() 252 uint32_t src_scale = SkAlpha255To256(alpha); in S32A_Blend_BlitRow32_SSE2() 358 unsigned scale = 256 - SkAlpha255To256(colorA); in Color32_SSE2() 621 srcA = SkAlpha255To256(srcA); in SkBlitLCD16Row_SSE2()
|
/external/skia/tests/ |
D | SrcOverTest.cpp | 14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
|
/external/skia/samplecode/ |
D | SampleXfermodes.cpp | 62 int iscale = SkAlpha255To256(ia);
|