Artifact adf1de054a5fc0051185642e0e5a6f83e5dc2b21:
- File operator/expand-grey32-const.crimp — part of check-in [8ffbf4cf60] at 2010-09-29 07:22:16 on branch ak-experimental — Primitives for blank, crop, downsample, expand, threshold, and upsample extended to handle the image types grey16, grey32, and float (user: andreask size: 504) [more...]
expand_grey32_const Tcl_Obj* imageObj int ww int hn int we int hs int value /* * Border expansion by constant pixel value. */ crimp_image* image; crimp_input (imageObj, image, grey32); #define FILL(xo,yo) { \ GREY32 (result, xo, yo) = value; \ } #define COPY(xo,yo,xi,yi) { \ GREY32 (result, xo, yo) = GREY32 (image, xi, yi); \ } #include <expand_op.c> /* vim: set sts=4 sw=4 tw=80 et ft=c: */ /* * Local Variables: * mode: c * c-basic-offset: 4 * fill-column: 78 * End: */