1#ifndef GIFENC_H 
2#define GIFENC_H 
3 
4#include <stdint.h> 
5#include <stdio.h> 
6 
7#ifdef __cplusplus 
8extern "C"
9#endif 
10 
11typedef struct ge_GIF
12 uint16_t w, h
13 int depth
14 int bgindex
15 FILE* filep
16 int offset
17 int nframes
18 uint8_t *frame, *back
19 uint32_t partial
20 uint8_t buffer[0xFF]; 
21} ge_GIF
22 
23ge_GIF *ge_new_gif
24 const char *fname, uint16_t width, uint16_t height
25 uint8_t *palette, int depth, int bgindex, int loop 
26); 
27void ge_add_frame(ge_GIF *gif, uint16_t delay); 
28void ge_close_gif(ge_GIF* gif); 
29 
30#ifdef __cplusplus 
31
32#endif 
33#endif /* GIFENC_H */ 
34