File: gifenc.h

package info (click to toggle)
tuxpaint 1%3A0.9.34-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 61,572 kB
  • sloc: ansic: 60,855; makefile: 1,397; sh: 790; objc: 303; cpp: 186; python: 182; php: 43
file content (22 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GIFENC_H
#define GIFENC_H

#include <stdint.h>

typedef struct ge_GIF
{
  uint16_t w, h;
  int depth;
  int fd;
  int offset;
  int nframes;
  uint8_t *frame, *back;
  uint32_t partial;
  uint8_t buffer[0xFF];
} ge_GIF;

ge_GIF *ge_new_gif(const char *fname, uint16_t width, uint16_t height, uint8_t * palette, int depth, int loop);
void ge_add_frame(ge_GIF * gif, uint16_t delay);
void ge_close_gif(ge_GIF * gif);

#endif /* GIFENC_H */