/external/skia/legacy/src/core/ |
SkBlitRow_D4444.cpp | 35 unsigned scale16 = SkAlpha255To256(alpha) >> 4; 61 unsigned scale16 = SkAlpha255To256(255 - SkGetPackedA32(c)) >> 4; 77 int src_scale = SkAlpha255To256(alpha) >> 4; 120 int scale16 = SkAlpha255To256(alpha) >> 4; 149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 151 unsigned scale16 = SkAlpha255To256(255 - a) >> 4; 172 int src_scale = SkAlpha255To256(alpha) >> 4; 178 unsigned a = SkAlpha255To256(SkGetPackedA32(c));
|
SkBlitMask_D32.cpp | 39 *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); 59 *device = (aa << SK_A32_SHIFT) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); 128 maskR = SkAlpha255To256(maskR); 129 maskG = SkAlpha255To256(maskG); 130 maskB = SkAlpha255To256(maskB); 153 srcA = SkAlpha255To256(srcA); 168 maskR = SkAlpha255To256(maskR); 169 maskG = SkAlpha255To256(maskG); 170 maskB = SkAlpha255To256(maskB) [all...] |
SkBlitRow_D16.cpp | 34 int scale = SkAlpha255To256(alpha); 113 int scale = SkAlpha255To256(alpha); 149 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 160 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); 176 int src_scale = SkAlpha255To256(alpha); 185 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
|
SkBlitter_A8.cpp | 41 unsigned scale = 256 - SkAlpha255To256(fSrcA); 70 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 133 SkAlpha255To256(255 - fSrcA)); 162 sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 166 int scale = 256 - SkAlpha255To256(sa); 181 unsigned sa = SkAlphaMul(fSrcA, SkAlpha255To256(alpha)); 191 unsigned scale = 256 - SkAlpha255To256(sa); 218 unsigned scale = 256 - SkAlpha255To256(srcA); 265 unsigned scale = 256 - SkAlpha255To256(srcA); 276 int src_scale = SkAlpha255To256(aa) [all...] |
SkBlitRow_D32.cpp | 27 unsigned src_scale = SkAlpha255To256(alpha); 171 unsigned scale = 256 - SkAlpha255To256(colorA);
|
SkBlitter_RGB16.cpp | 226 *device = SkAlphaMulRGB16(*device, SkAlpha255To256(255 - aa)); 254 aa = SkAlpha255To256(255 - aa); 329 unsigned scale5 = SkAlpha255To256(aa) >> 3; 460 SkAlpha255To256(*alpha++) >> 3); 473 SkAlpha255To256(*alpha++) >> 3); 487 unsigned scale5 = SkAlpha255To256(alpha) >> 3; 528 fScale = SkAlpha255To256(SkColorGetA(color)); 565 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; 601 unsigned scale5 = SkAlpha255To256(aa) * scale >> (8 + 3); 653 unsigned scale = SkAlpha255To256(aa) * scale256 >> (8 + 3) [all...] |
SkBlitter_ARGB32.cpp | 49 unsigned scale = SkAlpha255To256(fSrcA); 99 uint32_t sc = SkAlphaMulQ(color, SkAlpha255To256(aa)); 162 SkARGB32_BlendBW(fDevice, mask, clip, fPMColor, SkAlpha255To256(255 - fSrcA)); 194 color = SkAlphaMulQ(color, SkAlpha255To256(alpha));
|
SkSpriteBlitter_RGB16.cpp | 86 #define SkSPRITE_PREAMBLE(srcBM, x, y) int scale = SkAlpha255To256(fSrcAlpha); 159 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha); 251 #define SkSPRITE_PREAMBLE(srcBM, x, y) const uint16_t* ctable = srcBM.getColorTable()->lock16BitCache(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
|
SkColor.cpp | 96 unsigned v_scale = SkAlpha255To256(v);
|
/external/skia/src/core/ |
SkBlitRow_D4444.cpp | 35 unsigned scale16 = SkAlpha255To256(alpha) >> 4; 61 unsigned scale16 = SkAlpha255To256(255 - SkGetPackedA32(c)) >> 4; 77 int src_scale = SkAlpha255To256(alpha) >> 4; 119 int scale16 = SkAlpha255To256(alpha) >> 4; 148 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 150 unsigned scale16 = SkAlpha255To256(255 - a) >> 4; 171 int src_scale = SkAlpha255To256(alpha) >> 4; 177 unsigned a = SkAlpha255To256(SkGetPackedA32(c));
|
SkBlitMask_D32.cpp | 39 *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); 59 *device = (aa << SK_A32_SHIFT) + SkAlphaMulQ(*device, SkAlpha255To256(255 - aa)); 128 maskR = SkAlpha255To256(maskR); 129 maskG = SkAlpha255To256(maskG); 130 maskB = SkAlpha255To256(maskB); 153 srcA = SkAlpha255To256(srcA); 168 maskR = SkAlpha255To256(maskR); 169 maskG = SkAlpha255To256(maskG); 170 maskB = SkAlpha255To256(maskB) [all...] |
SkBlitRow_D16.cpp | 35 int scale = SkAlpha255To256(alpha); 114 int scale = SkAlpha255To256(alpha); 150 int d = SkAlphaMul(DITHER_VALUE(x), SkAlpha255To256(a)); 161 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); 177 int src_scale = SkAlpha255To256(alpha); 186 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
|
SkBlitter_A8.cpp | 41 unsigned scale = 256 - SkAlpha255To256(fSrcA); 70 unsigned sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 133 SkAlpha255To256(255 - fSrcA)); 162 sa = SkAlphaMul(srcA, SkAlpha255To256(aa)); 166 int scale = 256 - SkAlpha255To256(sa); 181 unsigned sa = SkAlphaMul(fSrcA, SkAlpha255To256(alpha)); 191 unsigned scale = 256 - SkAlpha255To256(sa); 218 unsigned scale = 256 - SkAlpha255To256(srcA); 265 unsigned scale = 256 - SkAlpha255To256(srcA); 276 int src_scale = SkAlpha255To256(aa) [all...] |
SkBlitter_RGB16.cpp | 226 *device = SkAlphaMulRGB16(*device, SkAlpha255To256(255 - aa)); 254 aa = SkAlpha255To256(255 - aa); 329 unsigned scale5 = SkAlpha255To256(aa) >> 3; 460 SkAlpha255To256(*alpha++) >> 3); 473 SkAlpha255To256(*alpha++) >> 3); 487 unsigned scale5 = SkAlpha255To256(alpha) >> 3; 528 fScale = SkAlpha255To256(SkColorGetA(color)); 565 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; 601 unsigned scale5 = SkAlpha255To256(aa) * scale >> (8 + 3); 653 unsigned scale = SkAlpha255To256(aa) * scale256 >> (8 + 3) [all...] |
SkBlitRow_D32.cpp | 29 unsigned src_scale = SkAlpha255To256(alpha); 159 unsigned scale = 256 - SkAlpha255To256(colorA);
|
SkSpriteBlitter_RGB16.cpp | 86 #define SkSPRITE_PREAMBLE(srcBM, x, y) int scale = SkAlpha255To256(fSrcAlpha); 159 #define SkSPRITE_PREAMBLE(srcBM, x, y) const SkPMColor* ctable = srcBM.getColorTable()->lockColors(); unsigned src_scale = SkAlpha255To256(fSrcAlpha); 251 #define SkSPRITE_PREAMBLE(srcBM, x, y) const uint16_t* ctable = srcBM.getColorTable()->lock16BitCache(); unsigned src_scale = SkAlpha255To256(fSrcAlpha);
|
/external/skia/src/effects/ |
SkColorFilters.cpp | 241 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); 242 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); 243 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); 253 unsigned scaleA = SkAlpha255To256(a); 298 unsigned scaleA = SkAlpha255To256(a); 325 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); 326 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); 327 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); 370 unsigned scale = SkAlpha255To256(SkColorGetR(fMul)); 396 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)) [all...] |
/external/skia/legacy/src/effects/ |
SkColorFilters.cpp | 304 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); 305 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); 306 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); 316 unsigned scaleA = SkAlpha255To256(a); 367 unsigned scaleA = SkAlpha255To256(a); 398 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)); 399 unsigned scaleG = SkAlpha255To256(SkColorGetG(fMul)); 400 unsigned scaleB = SkAlpha255To256(SkColorGetB(fMul)); 447 unsigned scale = SkAlpha255To256(SkColorGetR(fMul)); 477 unsigned scaleR = SkAlpha255To256(SkColorGetR(fMul)) [all...] |
/external/skia/include/core/ |
SkDither.h | 76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 129 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 146 dither = SkAlphaMul(dither, SkAlpha255To256(a)); 163 dither = SkAlphaMul(dither, SkAlpha255To256(a));
|
SkColorPriv.h | 51 static inline unsigned SkAlpha255To256(U8CPU alpha) { 267 unsigned scale = SkAlpha255To256(srcWeight); 340 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); 346 unsigned src_scale = SkAlpha255To256(aa); 347 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); 674 unsigned dstScale = SkAlpha255To256(255 - (src32 & 0xFF)) >> 4; 843 srcA = SkAlpha255To256(srcA);
|
/external/skia/legacy/include/core/ |
SkDither.h | 76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 129 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 146 dither = SkAlphaMul(dither, SkAlpha255To256(a)); 163 dither = SkAlphaMul(dither, SkAlpha255To256(a));
|
SkColorPriv.h | 27 static inline unsigned SkAlpha255To256(U8CPU alpha) { 226 unsigned scale = SkAlpha255To256(srcWeight); 305 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); 311 unsigned src_scale = SkAlpha255To256(aa); 312 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); 639 unsigned dstScale = SkAlpha255To256(255 - (src32 & 0xFF)) >> 4; 808 srcA = SkAlpha255To256(srcA);
|
/external/skia/tests/ |
SrcOverTest.cpp | 12 // our std SkAlpha255To256 14 return alpha + SkAlphaMul(dst, SkAlpha255To256(255 - alpha));
|
/external/skia/src/opts/ |
SkBlitRow_opts_arm_neon.cpp | 220 /* reflects SkAlpha255To256()'s change from a+a>>7 to a+1 */ 329 int scale = SkAlpha255To256(alpha); 451 /* reflect SkAlpha255To256() semantics a+1 vs a+a>>7 */ 480 /* reflect SkAlpha255To256() semantics a+1 vs a+a>>7 */ 529 uint16_t src_scale = SkAlpha255To256(alpha); 677 int d = SkAlphaMul(DITHER_VALUE(my_x), SkAlpha255To256(a)); 680 tap[i] = SkAlpha255To256(a); 692 dst_expanded = dst_expanded * (SkAlpha255To256(255 - a) >> 3); [all...] |
/external/skia/legacy/src/opts/ |
SkBlitRow_opts_arm.cpp | 214 /* reflects SkAlpha255To256()'s change from a+a>>7 to a+1 */ 323 int scale = SkAlpha255To256(alpha); 542 /* reflect SkAlpha255To256() semantics a+1 vs a+a>>7 */ 557 /* reflect SkAlpha255To256() semantics a+1 vs a+a>>7 */ [all...] |