Home | History | Annotate | Download | only in opts

Lines Matching defs:alpha

20                               int count, U8CPU alpha) {
21 SkASSERT(alpha <= 255);
26 uint32_t src_scale = SkAlpha255To256(alpha);
67 // Get alpha and green pixels into higher byte of each word.
113 int count, U8CPU alpha) {
114 SkASSERT(alpha == 255);
142 __m128i alpha = _mm_srli_epi32(src_pixel, 24);
144 // Copy alpha to upper 3rd byte of each quad
145 alpha = _mm_or_si128(alpha, _mm_slli_epi32(alpha, 16));
148 alpha = _mm_sub_epi16(c_255, alpha);
150 // Multiply by red and blue by src alpha.
151 dst_rb = _mm_mullo_epi16(dst_rb, alpha);
152 // Multiply by alpha and green by src alpha.
153 dst_ag = _mm_mullo_epi16(dst_ag, alpha);
191 __m128i alpha = _mm_srli_epi16(src_pixel, 8);
194 alpha = _mm_shufflehi_epi16(alpha, 0xF5);
197 alpha = _mm_shufflelo_epi16(alpha, 0xF5);
200 alpha = _mm_sub_epi16(c_256, alpha);
202 // Multiply by red and blue by src alpha.
203 dst_rb = _mm_mullo_epi16(dst_rb, alpha);
204 // Multiply by alpha and green by src alpha.
205 dst_ag = _mm_mullo_epi16(dst_ag, alpha);
238 int count, U8CPU alpha) {
239 SkASSERT(alpha <= 255);
246 *dst = SkBlendARGB32(*src, *dst, alpha);
252 uint32_t src_scale = SkAlpha255To256(alpha);
268 // Get alpha and green into lower byte of each word.
272 // Put per-pixel alpha in low byte of each word.
280 // we use mulhi here, the resulting alpha values are already
288 // Multiply red and blue by dst pixel alpha.
290 // Multiply alpha and green by dst pixel alpha.
293 // Multiply red and blue by global alpha.
301 // Multiply alpha and green by global alpha.
310 // Shift alpha and green to higher byte of each word.
330 *dst = SkBlendARGB32(*src, *dst, alpha);
381 // Get alpha and green into lower byte of each word.
457 // Get alpha and green into lower byte of each word.
461 // Put per-pixel alpha in low byte of each word.
473 // Multiply red and blue by dst pixel alpha.
475 // Multiply alpha and green by dst pixel alpha.
478 // Multiply red and blue by global alpha.
480 // Multiply alpha and green by global alpha.