Merge pull request #13 from rdebath/patch-fixes
[congif.git] / gif.h
blobb79e8d3a779b5504eeab1f8cbf2f25b0616b454a
1 #include <stdint.h>
3 typedef struct GIF {
4 uint16_t w, h;
5 int fd;
6 int offset;
7 uint8_t *cur, *old, *plt;
8 uint32_t partial;
9 uint8_t plt_dirty;
10 uint8_t buffer[0xFF];
11 } GIF;
13 GIF *new_gif(const char *fname, uint16_t w, uint16_t h, uint8_t *gct, int loop);
14 void add_frame(GIF *gif, uint16_t d);
15 void close_gif(GIF* gif);