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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#![cfg_attr(feature = "nightly", feature(specialization))]
#[cfg(test)]
#[macro_use]
extern crate approx;
extern crate byteorder;
extern crate num;
#[doc(hidden)]
pub extern crate palette;
pub mod color {
pub use palette::{pixel::*, *};
}
#[cfg(feature = "png")]
extern crate png;
#[cfg(feature = "jpeg")]
extern crate jpeg_decoder;
#[cfg(any(feature = "bmp", feature = "tga"))]
extern crate imagefmt;
#[cfg(feature = "gif")]
extern crate gif;
#[cfg(feature = "xyz")]
extern crate xyz;
#[cfg(feature = "processing")]
extern crate color_quant;
#[cfg(feature = "processing")]
extern crate exoquant;
#[macro_use]
mod util;
mod error;
pub use crate::error::{Error, Result};
mod parameter;
pub use crate::parameter::{HasParameters, Parameter};
mod region;
pub use crate::region::Region;
mod orientation;
pub use crate::orientation::Orientation;
pub mod pixel;
pub use crate::pixel::Pixel;
pub mod buffer;
pub use crate::buffer::Buffer;
pub mod view;
pub use crate::view::View;
pub mod iter;
#[cfg(feature = "processing")]
pub mod processing;
pub mod format;
pub use crate::format::Format;
mod decoder;
pub use crate::decoder::Decoder;
mod encoder;
pub use crate::encoder::Encoder;
pub mod read;
pub mod write;