| 1 |
#ifndef SGI_H_INCLUDED |
| 2 |
#define SGI_H_INCLUDED |
| 3 |
|
| 4 |
/* sgi.h - definitions for SGI format */ |
| 5 |
|
| 6 |
typedef struct { |
| 7 |
short magic; |
| 8 |
unsigned char storage; |
| 9 |
char bpc; /* pixel size: 1 = bytes, 2 = shorts */ |
| 10 |
unsigned short dimension; /* 1 = single row, 2 = B/W, 3 = RGB */ |
| 11 |
unsigned short xsize, /* width in pixels */ |
| 12 |
ysize, /* height in pixels */ |
| 13 |
zsize; /* # of channels; B/W=1, RGB=3, RGBA=4 */ |
| 14 |
long pixmin, pixmax; /* min/max pixel values */ |
| 15 |
char dummy1[4]; |
| 16 |
char name[80]; |
| 17 |
long colormap; |
| 18 |
char dummy2[404]; |
| 19 |
} Header; |
| 20 |
#define HeaderSize 512 |
| 21 |
|
| 22 |
#define SGI_MAGIC (short)474 |
| 23 |
|
| 24 |
#define STORAGE_VERBATIM 0 |
| 25 |
#define STORAGE_RLE 1 |
| 26 |
|
| 27 |
#define CMAP_NORMAL 0 |
| 28 |
#define CMAP_DITHERED 1 /* can't handle this */ |
| 29 |
#define CMAP_SCREEN 2 /* can't handle this */ |
| 30 |
#define CMAP_COLORMAP 3 /* can't handle this */ |
| 31 |
|
| 32 |
#endif |
| 33 |
|