Home | History | Annotate | Download | only in enc

Lines Matching full:alpha

10 // WebPPicture tools: alpha handling, etc.
146 #define BLEND(V0, V1, ALPHA) \
147 ((((V0) * (255 - (ALPHA)) + (V1) * (ALPHA)) * 0x101) >> 16)
148 #define BLEND_10BIT(V0, V1, ALPHA) \
149 ((((V0) * (1020 - (ALPHA)) + (V1) * (ALPHA)) * 0x101) >> 18)
170 const int alpha = a_ptr[x];
171 if (alpha < 0xff) {
182 // Average four alpha values into a single blending weight.
184 const int alpha =
187 u[x] = BLEND_10BIT(U0, u[x], alpha);
188 v[x] = BLEND_10BIT(V0, v[x], alpha);
191 const int alpha = 2 * (a_ptr[2 * x + 0] + a_ptr2[2 * x + 0]);
192 u[x] = BLEND_10BIT(U0, u[x], alpha);
193 v[x] = BLEND_10BIT(V0, v[x], alpha);
203 const int alpha = (argb[x] >> 24) & 0xff;
204 if (alpha != 0xff) {
205 if (alpha > 0) {
209 r = BLEND(red, r, alpha);
210 g = BLEND(green, g, alpha);
211 b = BLEND(blue, b, alpha);