filters/gp_filter_resize_alloc: Check w and h
[gfxprim.git] / libs / filters / GP_Diff.gen.c.t
blobddb87c2498f83459859cd82c2bd1d67e76ae655c
1 @ include source.t
2 /*
3  * Symetric difference of 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_ABS({{ chan_name }}_A - {{ chan_name }}_B);
12 @ end
14 {@ filter_arithmetic('diff', filter_op) @}