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

version» Context lines:

pike.git/src/modules/Image/layer_channel.h:4:   || 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)   {    if (da != sa) -  MEMCPY(da,sa,sizeof(rgb_group)*len); /* always copy alpha channel */ +  memcpy(da,sa,sizeof(rgb_group)*len); /* always copy alpha channel */   #define da da da /* protect */    if (alpha==0.0)    {   #ifdef LAYER_DUAL    if (d != s) -  MEMCPY(d,s,sizeof(rgb_group)*len); +  memcpy(d,s,sizeof(rgb_group)*len);   #endif    return;    }    else if (alpha==1.0)    {    if (!la) /* no layer alpha => full opaque (channel replacement) */    while (len--)    {    L_CHANNEL_DO(*s,*l,*d,white);    l++; s++; d++;