Searched refs:sgip (Results 1 – 3 of 3) sorted by relevance
/third_party/cups-filters/cupsfilters/ |
D | image-sgilib.c | 52 sgiClose(sgi_t *sgip) /* I - SGI image */ in sgiClose() argument 58 if (sgip == NULL) in sgiClose() 61 if (sgip->mode == SGI_WRITE && sgip->comp != SGI_COMP_NONE) in sgiClose() 67 fseek(sgip->file, 512, SEEK_SET); in sgiClose() 69 for (i = sgip->ysize * sgip->zsize, offset = sgip->table[0]; in sgiClose() 72 if (putlong(offset[0], sgip->file) < 0) in sgiClose() 75 for (i = sgip->ysize * sgip->zsize, offset = sgip->length[0]; in sgiClose() 78 if (putlong(offset[0], sgip->file) < 0) in sgiClose() 82 if (sgip->table != NULL) in sgiClose() 84 free(sgip->table[0]); in sgiClose() [all …]
|
D | image-sgi.c | 41 sgi_t *sgip; /* SGI image file */ in _cupsImageReadSGI() local 57 sgip = sgiOpenFile(fp, SGI_READ, 0, 0, 0, 0, 0); in _cupsImageReadSGI() 69 if (sgip->xsize == 0 || sgip->ysize == 0 || in _cupsImageReadSGI() 70 sgip->zsize == 0 || sgip->zsize > 4) in _cupsImageReadSGI() 73 sgip->xsize, sgip->ysize, sgip->zsize); in _cupsImageReadSGI() 74 sgiClose(sgip); in _cupsImageReadSGI() 78 if (sgip->zsize < 3) in _cupsImageReadSGI() 83 img->xsize = sgip->xsize; in _cupsImageReadSGI() 84 img->ysize = sgip->ysize; in _cupsImageReadSGI() 90 if ((in = malloc(img->xsize * sgip->zsize)) == NULL) in _cupsImageReadSGI() [all …]
|
D | image-sgi.h | 66 extern int sgiClose(sgi_t *sgip); 67 extern int sgiGetRow(sgi_t *sgip, unsigned short *row, int y, int z); 72 extern int sgiPutRow(sgi_t *sgip, unsigned short *row, int y, int z);
|