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. - || $Id: layer_oper.h,v 1.10 2002/10/11 01:39:42 nilsson Exp $ + || $Id: layer_oper.h,v 1.11 2002/12/09 22:43:27 mirar Exp $   */      /* 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;   
pike.git/src/modules/Image/layer_oper.h:29:   #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++;    }