1#![no_std]
2#![forbid(unsafe_code)]
3#![deny(missing_docs)]
4
5mod dimensions;
12mod error;
13mod pixel;
14mod plane;
15mod rect;
16mod sample;
17
18#[cfg(kani)]
19mod proofs;
20
21pub use dimensions::Dimensions;
22pub use error::{
23 GeometryError, GeometryResult, PixelLayoutError, PixelLayoutResult, StorageError, StorageResult,
24};
25pub use pixel::{
26 AlphaAssociation, ChromaOrder, ChromaSubsampling, GrayAlphaOrder, PixelLayout, PixelPlane,
27 RgbOrder, RgbaOrder,
28};
29pub use plane::{OutputLength, PlaneLayout, checked_plane_output_len};
30pub use rect::ImageRect;
31pub use sample::{BitOrder, ByteOrder, SampleClass, SampleStorage, StorageUnit};
32
33#[cfg(feature = "alloc")]
34extern crate alloc;
35
36#[cfg(any(test, feature = "std"))]
37extern crate std;