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.18 2000/08/08 11:08:50 grubba Exp $"); + RCSID("$Id: xcf.c,v 1.19 2000/08/10 09:51:54 per 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:778:    }    return res;   }         void image_xcf_f__rle_decode( INT32 args )   {    struct pike_string *t;    struct buffer s;    struct buffer od, d; -  int bpp, xsize, ysize, i; +  INT_TYPE bpp, xsize, ysize, i;    get_all_args( "_rle_decode", args, "%S%d%d%d", &t, &bpp, &xsize, &ysize);       s.len = t->len;    s.str = (unsigned char *)t->str;    od.len = xsize*ysize*bpp; /* Max and only size, really */    od.str = (unsigned char *)xalloc( xsize*ysize*bpp );    d = od;    for(i=0; i<bpp; i++)    {    int nelems = xsize*ysize;
pike.git/src/modules/Image/encodings/xcf.c:1091:   **!</pre>   */      void image_xcf_f__decode_tiles( INT32 args )   {    struct object *io,*ao, *cmapo;    struct array *tiles;    struct image *i, *a=NULL;    struct neo_colortable *cmap = NULL;    rgb_group *colortable=NULL; -  int rle, bpp, span; +  INT_TYPE rle, bpp, span;    unsigned int l, x=0, y=0, cx, cy;    get_all_args( "_decode_tiles", args, "%o%O%a%i%i%O",    &io, &ao, &tiles, &rle, &bpp, &cmapo);    if( !(i = (struct image *)get_storage( io, image_program )))    error("Wrong type object argument 1 (image)\n");    if(ao && !(a = (struct image *)get_storage( ao, image_program )))    error("Wrong type object argument 2 (image)\n");    if( cmapo &&    !(cmap=(struct neo_colortable *)get_storage(cmapo,    image_colortable_program)))