Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkBlitRow_D4444.cpp35 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()
DSkBlitMask_D32.cpp39 … *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 …]
DSkBlitter_A8.cpp41 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()
DSkBlitRow_D16.cpp34 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()
DSkBlitter_RGB16.cpp226 *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 …]
DSkBlitRow_D32.cpp27 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32()
171 unsigned scale = 256 - SkAlpha255To256(colorA); in Color32()
DSkBlitter_ARGB32.cpp49 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()
DSkXfermode.cpp88 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()
DSkSpriteBlitter_RGB16.cpp86 #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);
DSkBlitter_4444.cpp22 unsigned src_scale = SkAlpha255To256(aa) >> 4; in SkBlendARGB4444()
172 unsigned alphaScale = SkAlpha255To256(alpha); in blitV()
255 aa = SkAlpha255To256(aa); // FIX in blitAntiH()
DSkColor.cpp96 unsigned v_scale = SkAlpha255To256(v); in SkHSVToColor()
DSkComposeShader.cpp113 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
DSkBitmapProcState.cpp214 *(dst) = SkAlphaMulQ(pmColor, SkAlpha255To256(tmp)); \
223 #define RETURNDST(src) SkAlphaMulQ(pmColor, SkAlpha255To256(src))
395 fAlphaScale = SkAlpha255To256(paint.getAlpha()); in chooseProcs()
DSkBitmapSampler.cpp280 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample()
306 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample()
DARGB32_Clamp_Bilinear_BitmapShader.h69 unsigned srcScale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
DSkShader.cpp278 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha())); in setContext()
DSkBitmapShaderTemplate.h56 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
/external/skia/src/effects/
DSkColorFilters.cpp304 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 …]
DSkTransparentShader.cpp43 unsigned scale = SkAlpha255To256(fAlpha); in shadeSpan()
/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.h27 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/
DSkBlitRow_opts_arm.cpp323 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()
DSkBlitRow_opts_SSE2.cpp26 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/
DSrcOverTest.cpp14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
/external/skia/samplecode/
DSampleXfermodes.cpp62 int iscale = SkAlpha255To256(ia);

12