Skip to main content

stenoxide_core/image_io/
mod.rs

1//! Layer 1 — image input/output.
2//!
3//! Loads the container image, validates it through a type-state pipeline and
4//! analyses it for traces of lossy compression. The type-state pattern
5//! guarantees that no downstream layer can ever receive an image that has not
6//! passed every validation gate.
7//!
8//! Loading also records the shape of the file the samples came in — see
9//! [`envelope`] — because a container is given away by its wrapper as readily as
10//! by its pixels, and the wrapper is the cheaper of the two to read.
11
12pub mod buffer;
13pub mod envelope;
14pub mod jpeg_detect;
15pub mod phash;
16pub mod validate;