11 typedef struct gd_Palette
{
13 uint8_t colors
[0x100 * 3];
16 typedef struct gd_GCE
{
24 typedef struct gd_GIF
{
27 uint16_t width
, height
;
34 struct gd_GIF
*gif
, uint16_t tx
, uint16_t ty
,
35 uint16_t tw
, uint16_t th
, uint8_t cw
, uint8_t ch
,
36 uint8_t fg
, uint8_t bg
38 void (*comment
)(struct gd_GIF
*gif
);
39 void (*application
)(struct gd_GIF
*gif
, char id
[8], char auth
[3]);
40 uint16_t fx
, fy
, fw
, fh
;
42 uint8_t *canvas
, *frame
;
45 gd_GIF
*gd_open_gif(const char *fname
);
46 int gd_get_frame(gd_GIF
*gif
);
47 void gd_render_frame(gd_GIF
*gif
, uint8_t *buffer
);
48 int gd_is_bgcolor(gd_GIF
*gif
, uint8_t color
[3]);
49 void gd_rewind(gd_GIF
*gif
);
50 void gd_close_gif(gd_GIF
*gif
);