loaders: JPG: Fix bussy loop on corrupted file.
[gfxprim.git] / libs / filters / GP_Min.gen.c.t
blobffc12ae44a99c16d2ed19281d03ebc38b119eaac
1 @ include source.t
2 /*
3  * Min filter -- Choose min 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_MIN({{ chan_name }}_A, {{ chan_name }}_B);
12 @ end
14 {@ filter_arithmetic('Min', filter_op) @}