Searched refs:inv_alpha (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_quad_blend.c | 372 float inv_alpha[4]; in blend_quad() local 373 VEC4_SUB(inv_alpha, one, quadColor[3]); in blend_quad() 374 VEC4_MUL(source[0], quadColor[0], inv_alpha); /* R */ in blend_quad() 375 VEC4_MUL(source[1], quadColor[1], inv_alpha); /* G */ in blend_quad() 376 VEC4_MUL(source[2], quadColor[2], inv_alpha); /* B */ in blend_quad() 381 float inv_alpha[4]; in blend_quad() local 382 VEC4_SUB(inv_alpha, one, dest[3]); in blend_quad() 383 VEC4_MUL(source[0], quadColor[0], inv_alpha); /* R */ in blend_quad() 384 VEC4_MUL(source[1], quadColor[1], inv_alpha); /* G */ in blend_quad() 385 VEC4_MUL(source[2], quadColor[2], inv_alpha); /* B */ in blend_quad() [all …]
|
/external/skia/src/core/ |
D | SkXfermode.cpp | 54 static Sk4f inv_alpha(const Sk4f& color) { return Sk4f(1 - color[3]); } in inv_alpha() function 75 static Sk4f srcover_4f(const Sk4f& s, const Sk4f& d) { return s + inv_alpha(s) * d; } in srcover_4f() 76 static Sk4f dstover_4f(const Sk4f& s, const Sk4f& d) { return d + inv_alpha(d) * s; } in dstover_4f() 79 static Sk4f srcout_4f(const Sk4f& s, const Sk4f& d) { return s * inv_alpha(d); } in srcout_4f() 80 static Sk4f dstout_4f(const Sk4f& s, const Sk4f& d) { return d * inv_alpha(s); } in dstout_4f() 81 static Sk4f srcatop_4f(const Sk4f& s, const Sk4f& d) { return s * alpha(d) + d * inv_alpha(s); } in srcatop_4f() 82 static Sk4f dstatop_4f(const Sk4f& s, const Sk4f& d) { return d * alpha(s) + s * inv_alpha(d); } in dstatop_4f() 83 static Sk4f xor_4f(const Sk4f& s, const Sk4f& d) { return s * inv_alpha(d) + d * inv_alpha(s);} in xor_4f() 89 return s * inv_alpha(d) + d * inv_alpha(s) + s * d; in multiply_4f() 283 return color_alpha(s * inv_alpha(d) + d * inv_alpha(s) + set_argb(0, Sr, Sg, Sb), in hue_4f() [all …]
|