00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef SGI_IMAGE_H
00016 #define SGI_IMAGE_H
00017
00018 typedef struct {
00019 short magic;
00020 char storage;
00021 char bpc;
00022 unsigned short dimension;
00023 unsigned short xsize,
00024 ysize,
00025 zsize;
00026 long pixmin, pixmax;
00027 char dummy1[4];
00028 char name[80];
00029 long colormap;
00030 char dummy2[404];
00031 } Header;
00032 #define HeaderSize 512
00033
00034 #define SGI_MAGIC (short)474
00035
00036 #define STORAGE_VERBATIM 0
00037 #define STORAGE_RLE 1
00038
00039 #define CMAP_NORMAL 0
00040 #define CMAP_DITHERED 1
00041 #define CMAP_SCREEN 2
00042 #define CMAP_COLORMAP 3
00043
00044 #endif