Artifact 29cb24b1d28e46662cd0a9db27ea599972c2cef7:
- File operator/add-rgba-rgba.crimp — part of check-in [8942f8463c] at 2010-07-15 22:05:09 on branch ak-experimental — 7 seven new binary operators (max, min, multiply, screen, add, subtract, difference) Added to C level (rgba/rgba only so far), Tcl level, and demos. No documentation yet. (user: andreask size: 472) [more...]
add_rgba_rgba Tcl_Obj* imageAObj Tcl_Obj* imageBObj int scale int offset /* * Pixel- and channel-wise scaled and biased addition of two images. The * images have to have equal dimensions. Values out of range are wrapped into * it (modulo). */ #define BINOP(a,b) ((((a) + (b)) / scale) + offset) #include "binop_rgba_rgba.c" #undef BINOP /* vim: set sts=4 sw=4 tw=80 et ft=c: */ /* * Local Variables: * mode: c * c-basic-offset: 4 * fill-column: 78 * End: */