Home
last modified time | relevance | path

Searched refs:scale16 (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/core/
DSkBlitRow_D4444.cpp28 unsigned scale16 = SkAlpha255To256(alpha) >> 4; in S32_D4444_Blend() local
36 dst_expand += (src_expand - dst_expand) * scale16 >> 4; in S32_D4444_Blend()
54 unsigned scale16 = SkAlpha255To256(255 - SkGetPackedA32(c)) >> 4; in S32A_D4444_Opaque() local
56 uint32_t dst_expand = SkExpand_4444(*dst) * scale16; in S32A_D4444_Opaque()
113 int scale16 = SkAlpha255To256(alpha) >> 4; in S32_D4444_Blend_Dither() local
120 uint32_t src_expand = SkExpand32_4444(c) * scale16; in S32_D4444_Blend_Dither()
121 uint32_t dst_expand = SkExpand_4444(*dst) * (16 - scale16); in S32_D4444_Blend_Dither()
144 unsigned scale16 = SkAlpha255To256(255 - a) >> 4; in S32A_D4444_Opaque_Dither() local
146 uint32_t dst_expand = SkExpand_4444(*dst) * scale16; in S32A_D4444_Opaque_Dither()
DSkSpriteBlitter_RGB16.cpp122 #define D16_S4444_Blend(dst, sc, scale16) \ argument
125 *dst = SkBlend4444To16(sc, dc, scale16); \
/external/skia/include/core/
DSkColorPriv.h553 static inline uint16_t SkBlend4444To16(SkPMColor16 src, uint16_t dst, int scale16) { in SkBlend4444To16() argument
554 SkASSERT((unsigned)scale16 <= 16); in SkBlend4444To16()
556 return SkSrcOver4444To16(SkAlphaMulQ4(src, scale16), dst); in SkBlend4444To16()
559 static inline uint16_t SkBlend4444(SkPMColor16 src, SkPMColor16 dst, int scale16) { in SkBlend4444() argument
560 SkASSERT((unsigned)scale16 <= 16); in SkBlend4444()
562 uint32_t src32 = SkExpand_4444(src) * scale16; in SkBlend4444()
566 unsigned srcA = SkGetPackedA4444(src) * scale16; in SkBlend4444()
/external/skia/src/effects/
DSkTransparentShader.cpp103 unsigned scale16 = scale >> 4; in shadeSpan() local
106 uint32_t c = SkExpand_4444(src[i]) * scale16; in shadeSpan()