pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:1:   #include "global.h" - RCSID("$Id: xcf.c,v 1.25 2000/10/17 20:07:20 per Exp $"); + RCSID("$Id: xcf.c,v 1.26 2000/10/19 13:28:10 grubba Exp $");      #include "image_machine.h"      #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "module_support.h"   #include "interpret.h"   #include "object.h"   #include "svalue.h"
pike.git/src/modules/Image/encodings/xcf.c:1323:    else    span = 1;       switch( bpp )    {    case 1: /* indexed or grey */    if(colortable)    {    LOOP_INIT();    pix = colortable[s[ind]]; +  apix.r = apix.g = apix.b = 255;    LOOP_EXIT();    }    else    {    LOOP_INIT();    pix.r = pix.g = pix.b = s[ind]; -  +  apix.r = apix.g = apix.b = 255;    LOOP_EXIT();    }    break;    case 2: /* indexed or grey with alpha */    if(colortable)    {    LOOP_INIT();    pix = colortable[s[ind]];    apix.r = apix.g = apix.b = s[ind+span];    LOOP_EXIT();
pike.git/src/modules/Image/encodings/xcf.c:1353:    pix.r = pix.g = pix.b = s[ind];    apix.r = apix.g = apix.b = s[ind+span];    LOOP_EXIT();    }    break;    case 3: /* rgb */    LOOP_INIT();    pix.r = s[ind];    pix.g = s[ind+span];    pix.b = s[ind+span*2]; +  apix.r = apix.g = apix.b = 255;    LOOP_EXIT();    break; -  case 4: /* rgb */ +  case 4: /* rgba */    LOOP_INIT();    pix.r = s[ind];    pix.g = s[ind+span];    pix.b = s[ind+span*2];    apix.r = apix.b = apix.g = s[ind+span*3];    LOOP_EXIT();    break;    }       if( df )