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 | fx_dib_composite.cpp | 38 int Blend(int blend_mode, int back_color, int src_color) { in Blend() argument 41 return src_color; in Blend() 43 return src_color * back_color / 255; in Blend() 45 return src_color + back_color - src_color * back_color / 255; in Blend() 47 return Blend(FXDIB_BLEND_HARDLIGHT, src_color, back_color); in Blend() 49 return src_color < back_color ? src_color : back_color; in Blend() 51 return src_color > back_color ? src_color : back_color; in Blend() 53 if (src_color == 255) { in Blend() 54 return src_color; in Blend() 56 int result = back_color * 255 / (255 - src_color); in Blend() [all …]
|