Lines Matching refs:src_a
197 static uint8_t BlendChannelNonPremult(uint32_t src, uint8_t src_a, in BlendChannelNonPremult() argument
202 const uint32_t blend_unscaled = src_channel * src_a + dst_channel * dst_a; in BlendChannelNonPremult()
209 const uint8_t src_a = (src >> 24) & 0xff; in BlendPixelNonPremult() local
211 if (src_a == 0) { in BlendPixelNonPremult()
217 const uint8_t dst_factor_a = (dst_a * (256 - src_a)) >> 8; in BlendPixelNonPremult()
218 const uint8_t blend_a = src_a + dst_factor_a; in BlendPixelNonPremult()
222 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 0); in BlendPixelNonPremult()
224 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 8); in BlendPixelNonPremult()
226 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 16); in BlendPixelNonPremult()
227 assert(src_a + dst_factor_a < 256); in BlendPixelNonPremult()
259 const uint8_t src_a = (src >> 24) & 0xff; in BlendPixelPremult() local
260 return src + ChannelwiseMultiply(dst, 256 - src_a); in BlendPixelPremult()