Searched refs:src_color (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_nir_lower_blend.c | 286 nir_ssa_def **src_color, nir_ssa_def **dst_color) in vc4_do_blending_f() argument 292 result[i] = src_color[i]; in vc4_do_blending_f() 298 src_color[i] = nir_fsat(b, src_color[i]); in vc4_do_blending_f() 306 src_blend[i] = nir_fmul(b, src_color[i], in vc4_do_blending_f() 308 src_color, dst_color, in vc4_do_blending_f() 312 src_color, dst_color, in vc4_do_blending_f() 332 nir_ssa_def *src_color, nir_ssa_def *dst_color, in vc4_do_blending_i() argument 338 return src_color; in vc4_do_blending_i() 359 src_color, dst_color, in vc4_do_blending_i() 364 src_color, dst_color, in vc4_do_blending_i() [all …]
|
/external/pdfium/core/fxge/dib/ |
D | cfx_scanlinecompositor.cpp | 48 int Blend(int blend_mode, int back_color, int src_color) { in Blend() argument 51 return src_color; in Blend() 53 return src_color * back_color / 255; in Blend() 55 return src_color + back_color - src_color * back_color / 255; in Blend() 57 return Blend(FXDIB_BLEND_HARDLIGHT, src_color, back_color); in Blend() 59 return src_color < back_color ? src_color : back_color; in Blend() 61 return src_color > back_color ? src_color : back_color; in Blend() 63 if (src_color == 255) in Blend() 64 return src_color; in Blend() 66 return std::min(back_color * 255 / (255 - src_color), 255); in Blend() [all …]
|