Expand description
Format-neutral image foundations for the mynd ecosystem.
Version 0.3.0 provides validated geometry plus explicit sample storage, channel order, chroma subsampling, alpha association, and exact plane relationships. Buffer access remains outside this release.
Structs§
- Dimensions
- Nonzero two-dimensional image dimensions.
- Image
Rect - A nonempty rectangle proven to be contained by retained image dimensions.
- Output
Length - A nonzero output-buffer length representable by the target’s
usize. - Pixel
Plane - One logical plane required by a
PixelLayout. - Plane
Layout - A nonempty, aligned plane extent in a caller-owned output buffer.
- Sample
Storage - A validated sample storage domain.
Enums§
- Alpha
Association - The meaning of stored alpha samples.
- BitOrder
- Bit order within a byte-addressed packed sample stream.
- Byte
Order - Byte order for storage units wider than one byte.
- Chroma
Order - Channel order for the interleaved chroma plane of a semi-planar layout.
- Chroma
Subsampling - Chroma sampling factors relative to full-resolution luma.
- Geometry
Error - A failure while validating format-neutral image geometry or storage.
- Gray
Alpha Order - Channel order for interleaved gray-and-alpha samples.
- Pixel
Layout - A format-neutral pixel layout whose channel, alpha, chroma, and plane relationships are fixed by its variant.
- Pixel
Layout Error - A failure while relating a pixel layout to concrete planes.
- RgbOrder
- Channel order for interleaved three-channel RGB samples.
- Rgba
Order - Channel order for interleaved RGB-with-alpha samples.
- Sample
Class - The numeric class carried by a sample’s stored bit pattern.
- Storage
Error - A failure while validating sample storage.
- Storage
Unit - The physical unit containing one sample.
Functions§
- checked_
plane_ output_ len - Validates an ordered, nonoverlapping set of planes and returns its extent.
Type Aliases§
- Geometry
Result - The result type returned by validated geometry primitives.
- Pixel
Layout Result - The result type returned by pixel-layout validation.
- Storage
Result - The result type returned by sample-storage validation.