pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.50 2000/08/06 17:13:33 grubba Exp $ + **! $Id: layers.c,v 1.51 2000/08/06 20:11:08 grubba Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! <add_appendix name="layers" title="Image.Layer modes">   **! <dl compact>   **! <dt><i>The variables in the expression:</i>   **! <dt>L<dd><i>The active layer</i>
pike.git/src/modules/Image/layers.c:208:   **! }   **!   **! </execute>   **! </add_appendix>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.50 2000/08/06 17:13:33 grubba Exp $"); + RCSID("$Id: layers.c,v 1.51 2000/08/06 20:11:08 grubba Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:1412:   #define L_TRUNC(X) (X)   #define L_OPER(A,B) CCUT((A)*DOUBLE_TO_INT(B))   WARN_TRACE(3);   #include "layer_oper.h"   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER      #define LM_FUNC lm_divide   #define L_TRUNC(X) MINIMUM(255,(X)) - #define L_OPER(A,B) ((A)/C2F(1+DOUBLE_TO_INT(B))) + #define L_OPER(A,B) (CCUT((A)/C2F(1+DOUBLE_TO_INT(B))))   WARN_TRACE(4);   #include "layer_oper.h"   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER      #define LM_FUNC lm_modulo   #define L_TRUNC(X) (DOUBLE_TO_COLORTYPE(X))   #define L_OPER(A,B) ((A)%((B)?(B):1))   WARN_TRACE(5);
pike.git/src/modules/Image/layers.c:1441:   #define L_TRUNC(X) MAXIMUM(0,(X))   #define L_OPER(A,B) ((B)-DOUBLE_TO_INT(A))   WARN_TRACE(6);   #include "layer_oper.h"   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER      #define LM_FUNC lm_invdivide   #define L_TRUNC(X) MINIMUM(255,(X)) - #define L_OPER(A,B) ((B)/C2F(1+DOUBLE_TO_INT(A))) + #define L_OPER(A,B) (CCUT((B)/C2F(1+DOUBLE_TO_INT(A))))   WARN_TRACE(7);   #include "layer_oper.h"   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER      #define LM_FUNC lm_invmodulo   #define L_TRUNC(X) (DOUBLE_TO_COLORTYPE(X))   #define L_OPER(A,B) ((B)%((A)?(A):1))   WARN_TRACE(8);