backends: X11, Add CREATE_ROOT mode.
[gfxprim.git] / libs / filters / GP_Max.gen.c.t
blob6e8813d0be997668b5b93b75ec9f1c2fcf106653
1 %% extends "filter.arithmetic.c.t"
3 %% block descr
4 Max filter -- Choose max for each pixel (and for each channel) for two bitmaps.
5 %% endblock
7 %% block body
9 {{ filter_arithmetic_include() }}
11 %% macro filter_op(chan_name, chan_size)
12 {{ chan_name }} = GP_MAX({{ chan_name }}_A, {{ chan_name }}_B);
13 %% endmacro
15 %% call(pt) filter_arithmetic_per_channel('Max', filter_op)
16 %% endcall
18 %% call(ps) filter_arithmetic_per_bpp('Max', filter_op)
19 %% endcall
21 {{ filter_arithmetic_functions('Max') }}
23 %% endblock body