1 /*
2  * hat_grp.h
3  * 1993/3/12 by TF
4  */
5 
6 #ifndef ___INCLUDE_HAT_GRP_H
7 #define ___INCLUDE_HAT_GRP_H
8 
9 #define GRP_R 0
10 #define GRP_G 1
11 #define GRP_B 2
12 
13 typedef struct {
14   int orig_size;
15   int extracted_size;
16   int type;
17   int width;
18   int height;
19   int color_num;
20   int transparent;     /* the palette num. of transparent color */
21   int palette[256][3];
22   int *image;
23 } GRP;
24 
25 GRP *read_grp(const char *);
26 GRP *read_grp_from_data(unsigned char *, int, unsigned char *, int);
27 void grp_free(GRP *);
28 
29 #endif
30