Artifact a092f43b122a9e7323ee9fe8309b959ca0da095e:
- File
operator/screen-rgb-grey8.crimp
— part of check-in
[b0d870cef2]
at
2011-12-15 01:25:30
on branch infinite-plane
— Reorganized the binary ops, added result type to the generated file
names, and added a few combinations always generating float, for
operators like atan2 and hypot.
Updated all users of the binop_*.c files. Reworked pow to use the binop machinery.
Created special binary ops template for fpcomplex operations which are not element-wise (multiply, div), and updated the actual operators to use this. (user: andreask size: 583) [more...]
screen_rgb_grey8 Tcl_Obj* imageAObj Tcl_Obj* imageBObj /* * Pixel- and channel-wise 1-(1-A)*(1-B) combination of two images. The images * have to have equal dimensions. This could be done at Tcl level using a * combination of 'multiply' and 'invert'. Doing it in C on the other hand * avoids the three temporary images of that implementation. */ #define BINOP(a,b) (255 - (((255-(a))*(255-(b)))/255)) #include "binop_rgb_grey8_rgb.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: */