2017-07-28 01:51:10 +03:00
|
|
|
/* Sgi.h */
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* CONFIGURATION */
|
|
|
|
|
2017-07-28 22:58:17 +03:00
|
|
|
/* Number of bytes per channel per pixel */
|
2017-07-28 01:51:10 +03:00
|
|
|
int bpc;
|
|
|
|
|
2017-07-29 09:39:37 +03:00
|
|
|
/* RLE offsets table */
|
2017-07-29 20:35:07 +03:00
|
|
|
UINT32 *starttab;
|
2017-07-29 09:39:37 +03:00
|
|
|
|
|
|
|
/* RLE lengths table */
|
2017-07-29 20:35:07 +03:00
|
|
|
UINT32 *lengthtab;
|
2017-07-29 09:39:37 +03:00
|
|
|
|
|
|
|
/* current row offset */
|
2017-07-29 20:35:07 +03:00
|
|
|
UINT32 rleoffset;
|
2017-07-29 09:39:37 +03:00
|
|
|
|
|
|
|
/* current row length */
|
2017-07-29 20:35:07 +03:00
|
|
|
UINT32 rlelength;
|
2017-07-29 09:39:37 +03:00
|
|
|
|
|
|
|
/* RLE table size */
|
|
|
|
int tablen;
|
|
|
|
|
|
|
|
/* RLE table index */
|
|
|
|
int tabindex;
|
|
|
|
|
|
|
|
/* buffer index */
|
|
|
|
int bufindex;
|
|
|
|
|
|
|
|
/* current row index */
|
|
|
|
int rowno;
|
|
|
|
|
|
|
|
/* current channel index */
|
|
|
|
int channo;
|
|
|
|
|
|
|
|
/* image data size from file descriptor */
|
|
|
|
long bufsize;
|
|
|
|
|
2017-07-28 01:51:10 +03:00
|
|
|
} SGISTATE;
|