loaders: PNG: Handle gamma on 16bpp conversion
[gfxprim.git] / libs / filters / GP_Max.gen.c.t
blob170759810897caa4ad324ef5528b506abb4a4eec
1 @ include source.t
2 /*
3  * Max filter -- Choose max for each pixel (and for each channel) for two bitmaps.
4  *
5  * Copyright (C) 2012-2014 Cyril Hrubis <metan@ucw.cz>
6  */
8 @ include arithmetic_filter.t
10 @ def filter_op(chan_name, chan_size):
11 {{ chan_name }} = GP_MAX({{ chan_name }}_A, {{ chan_name }}_B);
12 @ end
14 {@ filter_arithmetic('Max', filter_op) @}