1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pub use self::decoder::GIFDecoder;
pub use self::encoder::Encoder as GIFEncoder;
pub use self::encoder::ColorMode;
mod decoder;
mod encoder;
#[derive(FromPrimitive)]
enum Block {
Image = 0x2C,
Extension = 0x21,
Trailer = 0x3B
}
#[derive(FromPrimitive)]
enum Extension {
Text = 0x01,
Control = 0xF9,
Comment = 0xFE,
Application = 0xFF
}
#[derive(FromPrimitive)]
enum DisposalMethod {
Undefined = 0,
None = 1,
Previous = 2,
Background = 3
}