Home
last modified time | relevance | path

Searched refs:SkAlpha255To256 (Results 1 – 24 of 24) sorted by relevance

/external/skia/src/core/
DSkBlitRow_D16.cpp35 int scale = SkAlpha255To256(alpha); in S32_D565_Blend()
111 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither()
147 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither()
158 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither()
174 int src_scale = SkAlpha255To256(alpha); in S32A_D565_Blend_Dither()
183 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither()
217 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in Color32A_D565()
DSkBlitter_A8.cpp40 unsigned scale = 256 - SkAlpha255To256(fSrcA); in blitH()
69 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitAntiH()
132 SkAlpha255To256(255 - fSrcA)); in blitMask()
161 sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); in blitMask()
165 int scale = 256 - SkAlpha255To256(sa); in blitMask()
180 unsigned sa = SkAlphaMul(fSrcA, SkAlpha255To256(alpha)); in blitV()
190 unsigned scale = 256 - SkAlpha255To256(sa); in blitV()
217 unsigned scale = 256 - SkAlpha255To256(srcA); in blitRect()
267 unsigned scale = 256 - SkAlpha255To256(srcA); in blitH()
278 int src_scale = SkAlpha255To256(aa); in aa_blend8()
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()
DSkBlitter_RGB16.cpp221 *device = SkAlphaMulRGB16(*device, SkAlpha255To256(255 - aa)); in blitMask()
249 aa = SkAlpha255To256(255 - aa); in blitAntiH()
323 unsigned scale5 = SkAlpha255To256(aa) >> 3; in blitAntiH()
446 SkAlpha255To256(*alpha++) >> 3); in blitMask()
461 SkAlpha255To256(*alpha++) >> 3); in blitMask()
475 unsigned scale5 = SkAlpha255To256(alpha) >> 3; in blitV()
520 fScale = SkAlpha255To256(SkColorGetA(color)); in SkRGB16_Blitter()
587 unsigned scale5 = SkAlpha255To256(aa) * scale >> (8 + 3); in blitAntiH()
639 unsigned scale = SkAlpha255To256(aa) * scale256 >> (8 + 3); in blitMask()
654 unsigned scale5 = SkAlpha255To256(alpha) * fScale >> (8 + 3); in blitV()
DSkSpriteBlitter_RGB16.cpp81 #define SkSPRITE_PREAMBLE(srcBM, x, y) int scale = SkAlpha255To256(fSrcAlpha);
154 … SkPMColor* ctable = srcBM.ctable()->readColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
246 …nt16_t* ctable = srcBM.ctable()->read16BitCache(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
DSkBlitter_ARGB32.cpp49 unsigned scale = SkAlpha255To256(fSrcA); in SkARGB32_Blitter()
98 uint32_t sc = SkAlphaMulQ(color, SkAlpha255To256(aa)); in blitAntiH()
178 SkARGB32_BlendBW(fDevice, mask, clip, fPMColor, SkAlpha255To256(255 - fSrcA)); in blitMask()
227 color = SkAlphaMulQ(color, SkAlpha255To256(alpha)); in blitV()
316 int aa256 = SkAlpha255To256(aa); in blend_srcmode()
DSkBitmapProcState_procs.h206 *(dst) = SkAlphaMulQ(pmColor, SkAlpha255To256(tmp)); \
213 #define RETURNDST(src) SkAlphaMulQ(pmColor, SkAlpha255To256(src))
DSkBlitRow_D32.cpp28 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32()
DSkXfermode.cpp374 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in srcover_modeproc()
391 return SkAlphaMulQ(src, SkAlpha255To256(SkGetPackedA32(dst))); in srcin_modeproc()
396 return SkAlphaMulQ(dst, SkAlpha255To256(SkGetPackedA32(src))); in dstin_modeproc()
401 return SkAlphaMulQ(src, SkAlpha255To256(255 - SkGetPackedA32(dst))); in srcout_modeproc()
406 return SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in dstout_modeproc()
1076 A = SkAlphaBlend(A, dstA, SkAlpha255To256(a)); in xferA8()
1233 A = SkAlphaBlend(A, dstA, SkAlpha255To256(a)); in xferA8()
DSkColor.cpp85 unsigned v_scale = SkAlpha255To256(v); in SkHSVToColor()
DSkComposeShader.cpp138 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
DSkShader.cpp284 unsigned a = SkAlphaMul(SkColorGetA(color), SkAlpha255To256(rec.fPaint->getAlpha())); in ColorShaderContext()
DSkBlitter.cpp667 unsigned mul = SkAlpha255To256(mulp[i]); in shadeSpan()
687 unsigned mul = SkAlpha255To256(mulp[i]); in shadeSpan()
DSkBitmapProcState.cpp196 fAlphaScale = SkAlpha255To256(paint.getAlpha()); in chooseProcs()
/external/skia/src/opts/
DSkBlitMask_opts.h72 *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) in D32_A8_Opaque_Color_neon()
73 + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in D32_A8_Opaque_Color_neon()
125 + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); in blit_mask_d32_a8_black()
DSkBlitRow_opts_arm_neon.cpp113 vscale = vdupq_n_u16(SkAlpha255To256(alpha)); in S32_D565_Blend_neon()
177 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_neon()
500 scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in Color32A_D565_neon()
746 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither_neon()
851 int scale = SkAlpha255To256(alpha); in S32_D565_Blend_Dither_neon()
1162 uint16_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_neon()
1228 unsigned alpha256 = SkAlpha255To256(alpha); in S32A_Blend_BlitRow32_neon()
1421 unsigned alpha = SkAlpha255To256(a); in S32A_D565_Opaque_Dither_neon()
1433 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_neon()
DSkBlitRow_opts_SSE2.cpp28 uint32_t src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32_SSE2()
244 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in Color32A_D565_SSE2()
516 srcA = SkAlpha255To256(srcA); in SkBlitLCD16Row_SSE2()
948 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_SSE2()
959 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_SSE2()
1103 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_SSE2()
1114 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_SSE2()
DSkBlitRow_opts_mips_dsp.cpp245 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); in S32A_D565_Opaque_Dither_mips_dsp()
256 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); in S32A_D565_Opaque_Dither_mips_dsp()
DSkColor_opts_neon.h117 unsigned scale = SkAlpha255To256(srcWeight); in SkFourByteInterp_neon()
DSkBlitMask_opts_arm_neon.cpp87 colA = SkAlpha255To256(colA); in SkBlitLCD16Row_neon()
DSkColor_opts_SSE2.h233 unsigned alpha = SkAlpha255To256(aa); in SkBlendARGB32_SSE2()
/external/skia/tests/
DSrcOverTest.cpp14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
/external/skia/include/core/
DSkColorPriv.h182 static inline unsigned SkAlpha255To256(U8CPU alpha) { in SkAlpha255To256() function
442 unsigned scale = SkAlpha255To256(srcWeight); in SkFourByteInterp()
568 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in SkPMSrcOver()
574 unsigned src_scale = SkAlpha255To256(aa); in SkBlendARGB32()
575 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32()
1041 srcA = SkAlpha255To256(srcA); in SkBlitLCD16Row()
/external/skia/src/effects/
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()