9typedef struct gd_Palette {
11 uint8_t colors[0x100 * 3];
14typedef struct gd_GCE {
24typedef struct gd_GIF {
30 uint16_t width, height;
37 struct gd_GIF *gif, uint16_t tx, uint16_t ty,
38 uint16_t tw, uint16_t th, uint8_t cw, uint8_t ch,
39 uint8_t fg, uint8_t bg
41 void (*comment)(
struct gd_GIF *gif);
42 void (*application)(
struct gd_GIF *gif,
char id[8],
char auth[3]);
43 uint16_t fx, fy, fw, fh;
45 uint8_t *canvas, *frame;
48gd_GIF * gd_open_gif_file(
const char *fname);
50gd_GIF * gd_open_gif_data(
const void *data);
52void gd_render_frame(gd_GIF *gif, uint8_t *buffer);
54int gd_get_frame(gd_GIF *gif);
55void gd_rewind(gd_GIF *gif);
56void gd_close_gif(gd_GIF *gif);