1 
2 #define BUFFER_SIZE 8192
3 
4 struct gif_header_t
5 {
6   int version;
7   /* unsigned short int width; */
8   /* unsigned short int height; */
9   unsigned int colors;
10   unsigned int color_map[256];
11   unsigned char resolution;
12   unsigned char bgcolor;
13   unsigned char aspect;
14   unsigned char flags;
15 };
16 
17 struct node_t
18 {
19   int prev;
20   unsigned char color;
21 };
22 
23 struct compress_node_t
24 {
25   int down;
26   int right;
27   unsigned char color;
28 };
29 
30 int lzw_decompress(FILE *in, unsigned int *picture);
31 int lzw_compress(FILE *in, unsigned int *picture, int width, int height);
32 
33 
34 
35