Skip to main content

mynd_core/
lib.rs

1#![no_std]
2#![forbid(unsafe_code)]
3#![deny(missing_docs)]
4
5//! Format-neutral image foundations for the `mynd` ecosystem.
6//!
7//! Version 0.3.0 provides validated geometry plus explicit sample storage,
8//! channel order, chroma subsampling, alpha association, and exact plane
9//! relationships. Buffer access remains outside this release.
10
11mod 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;