pike.git / src / modules / Image / layer_oper.h

version» Context lines:

pike.git/src/modules/Image/layer_oper.h:1: + /* + || This file is part of Pike. For copyright information see COPYRIGHT. + || Pike is distributed under GPL, LGPL and MPL. See the file COPYING + || for more information. + */ +    /* template for operator layer row function */      static void LM_FUNC(rgb_group *s,rgb_group *l,rgb_group *d,    rgb_group *sa,rgb_group *la,rgb_group *da,    int len,double alpha)   {    union { COLORTYPE r,g,b; } tz,*t=&tz;      #ifndef L_LOGIC    if (alpha==0.0)
pike.git/src/modules/Image/layer_oper.h:22:   #define da da da da /* error */   #endif    if (!la) /* no layer alpha => full opaque */    {   #ifdef L_MMX_OPER   #ifdef TRY_USE_MMX    extern int try_use_mmx;    if(try_use_mmx)    {    int num=sizeof(rgb_group) * len; -  unsigned char *source=(char *)s; -  unsigned char *dest=(char *)d; -  unsigned char *sourcel=(char *)l; +  unsigned char *source=(unsigned char *)s; +  unsigned char *dest=(unsigned char *)d; +  unsigned char *sourcel=(unsigned char *)l;       while (num-->0 && (7&(int)dest))    {    *dest=L_TRUNC(L_OPER(*source,*sourcel));    source++;    sourcel++;    dest++;    }      
pike.git/src/modules/Image/layer_oper.h:225:    *da=*d=L_TRANS;    else    *da=*d=L_LOGIC(L_OPER(s->r,l->r),    L_OPER(s->g,l->g),    L_OPER(s->b,l->b));    l++; s++; la++; sa++; d++; da++;    }    }   #endif /* L_LOGIC */   } -  +