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

version» Context lines:

pike.git/src/modules/Image/layers.c:1599:   #define L_TRUNC(X) MINIMUM(255,(X))   #define L_OPER(A,B) ((A)+(int)(B))   #define L_MMX_OPER(A,MMXR) paddusb_m2r(A,MMXR)   WARN_TRACE(1)   #include "layer_oper.h"   #undef L_MMX_OPER   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER    + #if 0   #define LM_FUNC lm_a_add   #define L_TRUNC(X) MINIMUM(255,(X))   #define L_OPER(A,B) ((A)+(int)(B))   #define L_MMX_OPER(A,MMXR) paddusb_m2r(A,MMXR)   WARN_TRACE(1)   #include "layer_oper.h"   #undef L_MMX_OPER   #undef LM_FUNC   #undef L_TRUNC   #undef L_OPER -  + #endif      #define LM_FUNC lm_subtract   #define L_TRUNC(X) MAXIMUM(0,(X))   #define L_OPER(A,B) ((A)-(int)(B))   #define L_MMX_OPER(A,MMXR) psubusb_m2r(A,MMXR)   WARN_TRACE(2)   #include "layer_oper.h"   #undef L_MMX_OPER   #undef LM_FUNC   #undef L_TRUNC
pike.git/src/modules/Image/layers.c:2340:    {    ALPHA_ADD_V(l,s,d,(&white),sa,da,alpha,r);    ALPHA_ADD_V(l,s,d,(&white),sa,da,alpha,g);    ALPHA_ADD_V(l,s,d,(&white),sa,da,alpha,b);    }    l++; s++; sa++; d++; da++;    if (la) la++;    }   }    - static void lm_erase(rgb_group *s,rgb_group *l,rgb_group *d, + static void lm_erase(rgb_group *UNUSED(s),rgb_group *UNUSED(l),rgb_group *UNUSED(d),    rgb_group *sa,rgb_group *la,rgb_group *da,    int len,double alpha)   {    /* la may be NULL, no other */      #ifdef LAYERS_DUAL    MEMCPY(d,s,sizeof(rgb_group)*len);   #endif       if (alpha==1.0)