Home | History | Annotate | Download | only in opts

Lines Matching defs:alpha

18 // In this file, variations for alpha and non alpha versions are implemented
111 // by alpha when has_alpha is true.
118 const __m128i& alpha) {
123 // Multiply by alpha.
124 *pixels = _mm_mullo_epi16(*pixels, alpha);
137 // @param alpha when has_alpha is true, scale all resulting components by this
140 // ((Aa2 * (16 - x1) + Aa3 * x1) * alpha, ...,
141 // (Ra0 * (16 - x0) + Ra1 * x0) * alpha) (when has_alpha is true)
152 const __m128i& alpha) {
155 return ScaleFourPixels<has_alpha, 4>(&sum, alpha);
167 __m128i alpha) {
177 return ScaleFourPixels<has_alpha, 4>(&sum, alpha);
216 // @param alpha vector of 16 bit components containing the alpha value to scale
219 // (alpha * ((16-y) * (Aa2 * (16-x1) + Aa3 * x1) +
222 // alpha * ((16-y) * (Ra0 * (16-x0) + Ra1 * x0) +
224 // With the factor alpha removed when has_alpha is false.
235 const __m128i& alpha) {
252 return ScaleFourPixels<has_alpha, 8>(&sum0, alpha);
334 __m128i alpha;
336 // 8x(alpha)
337 alpha = _mm_set1_epi16(s.fAlphaScale);
359 scale_x, alpha);
367 scale_x, alpha);
394 scale_x, alpha);
431 scale_x, all_y, neg_y, alpha);
439 scale_x, all_y, neg_y, alpha);
475 sum0 = ScaleFourPixels<has_alpha, 8>(&sum0, alpha);