repo.or.cz
/
congif.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #13 from rdebath/patch-fixes
[congif.git]
/
gif.h
blob
b79e8d3a779b5504eeab1f8cbf2f25b0616b454a
1
#include <stdint.h>
2
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
;
12
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
);