backends: X11, Add CREATE_ROOT mode.
[gfxprim.git] / libs / filters / GP_Histogram.gen.c.t
blobcd519d64b39dd240b3d499ef3126d365f087ccac
1 %% extends "filter.stats.c.t"
3 %% block descr
4 Histogram filter -- Compute image histogram.
5 %% endblock
7 %% block body
9 {{ filter_stats_include() }}
11 %% macro filter_op(chan_name, chan_size)
12 {{ chan_name }}_hist->hist[{{ chan_name }}]++;
13 %% endmacro
15 %% call(pt) filter_point_per_channel('Histogram', 'GP_FilterParam histogram[]', filter_op)
16 {{ filter_params(pt, 'histogram', 'GP_Histogram *', '_hist', 'ptr') }}
17 %% endcall
19 %% call(ps) filter_point_per_bpp('Histogram', 'GP_FilterParam histogram[]', filter_op)
20 {{ filter_param(ps, 'histogram', 'GP_Histogram *', '_hist', 'ptr') }}
21 %% endcall
23 {{ filter_functions('Histogram', 'GP_FilterParam histogram[]', 'histogram') }}
25 %% endblock body