Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkBlitter_ARGB32_Subpixel.cpp79 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()
DSkBlitRow_D4444.cpp28 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()
DSkBlitter_A8.cpp49 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()
DSkBlitRow_D16.cpp27 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()
DSkBlitRow_D32.cpp19 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()
DSkBlitter_RGB16.cpp227 *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 …]
DSkColor.cpp24 unsigned scale = SkAlpha255To256(a); in SkPreMultiplyARGB()
120 unsigned v_scale = SkAlpha255To256(v); in SkHSVToColor()
DSkXfermode.cpp23 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 …]
DSkBlitter_ARGB32.cpp146 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()
DSkSpriteBlitter_RGB16.cpp94 #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);
DSkBlitter_4444.cpp30 unsigned src_scale = SkAlpha255To256(aa) >> 4; in SkBlendARGB4444()
180 unsigned alphaScale = SkAlpha255To256(alpha); in blitV()
263 aa = SkAlpha255To256(aa); // FIX in blitAntiH()
DSkBitmapProcState.cpp207 *(dst) = SkAlphaMulQ(pmColor, SkAlpha255To256(tmp)); \
216 #define RETURNDST(src) SkAlphaMulQ(pmColor, SkAlpha255To256(src))
388 fAlphaScale = SkAlpha255To256(paint.getAlpha()); in chooseProcs()
DSkComposeShader.cpp114 unsigned scale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
DSkBitmapSampler.cpp288 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample()
314 return SkAlphaMulQ(fColor, SkAlpha255To256(alpha)); in sample()
DARGB32_Clamp_Bilinear_BitmapShader.h62 unsigned srcScale = SkAlpha255To256(this->getPaintAlpha()); in shadeSpan()
DSkShader.cpp272 a = SkAlphaMul(SkColorGetA(fColor), SkAlpha255To256(paint.getAlpha())); in setContext()
/external/skia/src/effects/
DSkColorFilters.cpp311 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 …]
DSkTransparentShader.cpp51 unsigned scale = SkAlpha255To256(fAlpha); in shadeSpan()
DSkBlurMask.cpp193 *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/
DSkDither.h83 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()
DSkColorPriv.h34 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/
DSkBlitRow_opts_arm.cpp335 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()
DSkBlitRow_opts_SSE2.cpp35 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/
DSrcOverTest.cpp7 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha)); in test_srcover0()
/external/skia/samplecode/
DSampleXfermodes.cpp55 int iscale = SkAlpha255To256(ia);

12