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

version» Context lines:

pike.git/src/modules/Image/blit_layer_include.h:1: - /* $Id: blit_layer_include.h,v 1.4 1997/10/27 22:41:17 mirar Exp $ */ + /* $Id: blit_layer_include.h,v 1.5 1997/12/28 09:29:31 hubbe Exp $ */   /* included w/ defines in blit.c, image_add_layer() */      /*   **! module Image   **! note - **! $Id: blit_layer_include.h,v 1.4 1997/10/27 22:41:17 mirar Exp $ + **! $Id: blit_layer_include.h,v 1.5 1997/12/28 09:29:31 hubbe Exp $   **! class image   */          i=(y2-y1+1);    while (i--)    {    j=(x2-x1+1);       while (j--)
pike.git/src/modules/Image/blit_layer_include.h:95: Inside #if undefined(ALL_IS_NOP)
  #ifndef ALL_IS_NOP    }    else    {    rgb_group res;       if (!lr->m || lr->m->r || lr->m->g || lr->m->b)    switch (lr->method)    {    case LAYER_MAX: -  res.r=max(lr->s->r,rgb.r); -  res.g=max(lr->s->g,rgb.g); -  res.b=max(lr->s->b,rgb.b); +  res.r=MAXIMUM(lr->s->r,rgb.r); +  res.g=MAXIMUM(lr->s->g,rgb.g); +  res.b=MAXIMUM(lr->s->b,rgb.b);    break;    case LAYER_MIN: -  res.r=min(lr->s->r,rgb.r); -  res.g=min(lr->s->g,rgb.g); -  res.b=min(lr->s->b,rgb.b); +  res.r=MINIMUM(lr->s->r,rgb.r); +  res.g=MINIMUM(lr->s->g,rgb.g); +  res.b=MINIMUM(lr->s->b,rgb.b);    break;    case LAYER_ADD: -  res.r=(unsigned char)max(255,(lr->s->r+rgb.r)); -  res.g=(unsigned char)max(255,(lr->s->g+rgb.g)); -  res.b=(unsigned char)max(255,(lr->s->b+rgb.b)); +  res.r=(unsigned char)MAXIMUM(255,(lr->s->r+rgb.r)); +  res.g=(unsigned char)MAXIMUM(255,(lr->s->g+rgb.g)); +  res.b=(unsigned char)MAXIMUM(255,(lr->s->b+rgb.b));    break;    case LAYER_MULT:    res.r=(unsigned char)((lr->s->r*rgb.r)*q);    res.g=(unsigned char)((lr->s->g*rgb.g)*q);    res.b=(unsigned char)((lr->s->b*rgb.b)*q);    break;    case LAYER_DIFF:    res.r=absdiff(lr->s->r,rgb.r);    res.g=absdiff(lr->s->g,rgb.g);    res.b=absdiff(lr->s->b,rgb.b);