Home
last modified time | relevance | path

Searched refs:src_scale (Results 1 – 11 of 11) sorted by relevance

/external/skia/src/core/
DSkBlitRow_D16.cpp66 int src_scale = SkAlpha255To256(alpha); in S32A_D565_Blend() local
77 dr = SkAlphaBlend(SkPacked32ToR16(sc), SkGetPackedR16(dc), src_scale); in S32A_D565_Blend()
78 dg = SkAlphaBlend(SkPacked32ToG16(sc), SkGetPackedG16(dc), src_scale); in S32A_D565_Blend()
79 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); in S32A_D565_Blend()
81 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in S32A_D565_Blend()
82 dr = (SkPacked32ToR16(sc) * src_scale + SkGetPackedR16(dc) * dst_scale) >> 8; in S32A_D565_Blend()
83 dg = (SkPacked32ToG16(sc) * src_scale + SkGetPackedG16(dc) * dst_scale) >> 8; in S32A_D565_Blend()
84 db = (SkPacked32ToB16(sc) * src_scale + SkGetPackedB16(dc) * dst_scale) >> 8; in S32A_D565_Blend()
184 int src_scale = SkAlpha255To256(alpha); in S32A_D565_Blend_Dither() local
193 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale)); in S32A_D565_Blend_Dither()
[all …]
DSkSpriteBlitter_RGB16.cpp32 unsigned src_scale) { in D16_S32A_Blend_Pixel_helper() argument
38 dr = SkAlphaBlend(SkPacked32ToR16(sc), SkGetPackedR16(dc), src_scale); in D16_S32A_Blend_Pixel_helper()
39 dg = SkAlphaBlend(SkPacked32ToG16(sc), SkGetPackedG16(dc), src_scale); in D16_S32A_Blend_Pixel_helper()
40 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); in D16_S32A_Blend_Pixel_helper()
42 unsigned dst_scale = 255 - SkAlphaMul(sa, src_scale); in D16_S32A_Blend_Pixel_helper()
43 dr = (SkPacked32ToR16(sc) * src_scale + in D16_S32A_Blend_Pixel_helper()
45 dg = (SkPacked32ToG16(sc) * src_scale + in D16_S32A_Blend_Pixel_helper()
47 db = (SkPacked32ToB16(sc) * src_scale + in D16_S32A_Blend_Pixel_helper()
53 #define D16_S32A_Blend_Pixel(dst, sc, src_scale) \ argument
54 do { if (sc) D16_S32A_Blend_Pixel_helper(dst, sc, src_scale); } while (0)
[all …]
DSkBlitRow_D4444.cpp70 int src_scale = SkAlpha255To256(alpha) >> 4; in S32A_D4444_Blend() local
76 unsigned dst_scale = 16 - (SkGetPackedA32(sc) * src_scale >> 8); in S32A_D4444_Blend()
77 uint32_t src_expand = SkExpand32_4444(sc) * src_scale; in S32A_D4444_Blend()
165 int src_scale = SkAlpha255To256(alpha) >> 4; in S32A_D4444_Blend_Dither() local
174 unsigned dst_scale = 16 - SkAlphaMul(src_scale, a); in S32A_D4444_Blend_Dither()
175 uint32_t src_expand = SkExpand32_4444(c) * src_scale; in S32A_D4444_Blend_Dither()
DSkBlitRow_D32.cpp17 unsigned src_scale = SkAlpha255To256(alpha); in S32_Blend_BlitRow32() local
18 unsigned dst_scale = 256 - src_scale; in S32_Blend_BlitRow32()
20 *dst = SkAlphaMulQ(*src, src_scale) + SkAlphaMulQ(*dst, dst_scale); in S32_Blend_BlitRow32()
DSkBlitter_A8.cpp312 int src_scale = SkAlpha255To256(aa); in aa_blend8() local
314 int dst_scale = 256 - SkAlphaMul(sa, src_scale); in aa_blend8()
316 return SkToU8((sa * src_scale + da * dst_scale) >> 8); in aa_blend8()
DSkBlitter_RGB16.cpp846 int src_scale = SkAlpha255To256(aa);
848 int dst_scale = SkAlpha255To256(255 - SkAlphaMul(sa, src_scale));
863 int dr = (sr * src_scale + SkGetPackedR16(dst) * dst_scale) >> 8;
864 int dg = (sg * src_scale + SkGetPackedG16(dst) * dst_scale) >> 8;
865 int db = (sb * src_scale + SkGetPackedB16(dst) * dst_scale) >> 8;
DSkBlitter_4444.cpp30 unsigned src_scale = SkAlpha255To256(aa) >> 4; in SkBlendARGB4444() local
31 unsigned dst_scale = SkAlpha15To16(15 - SkAlphaMul4(SkGetPackedA4444(src), src_scale)); in SkBlendARGB4444()
33 uint32_t src32 = SkExpand_4444(src) * src_scale; in SkBlendARGB4444()
/external/skia/include/core/
DSkColorPriv.h246 unsigned src_scale = SkAlpha255To256(aa); in SkBlendARGB32() local
247 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32()
249 return SkAlphaMulQ(src, src_scale) + SkAlphaMulQ(dst, dst_scale); in SkBlendARGB32()
/external/srec/srec/cfront/
Dca_front.c55 hFrontend->src_scale = srcscale; in CA_AllocateFrontend()
Dca_wave.c74 hWave->data.scale = hFrontend->src_scale; in CA_ConfigureWave()
/external/srec/srec/include/
Dfrontapi.h73 float src_scale; member