Skip to main content

Crate mynd_core

Crate mynd_core 

Source
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.
ImageRect
A nonempty rectangle proven to be contained by retained image dimensions.
OutputLength
A nonzero output-buffer length representable by the target’s usize.
PixelPlane
One logical plane required by a PixelLayout.
PlaneLayout
A nonempty, aligned plane extent in a caller-owned output buffer.
SampleStorage
A validated sample storage domain.

Enums§

AlphaAssociation
The meaning of stored alpha samples.
BitOrder
Bit order within a byte-addressed packed sample stream.
ByteOrder
Byte order for storage units wider than one byte.
ChromaOrder
Channel order for the interleaved chroma plane of a semi-planar layout.
ChromaSubsampling
Chroma sampling factors relative to full-resolution luma.
GeometryError
A failure while validating format-neutral image geometry or storage.
GrayAlphaOrder
Channel order for interleaved gray-and-alpha samples.
PixelLayout
A format-neutral pixel layout whose channel, alpha, chroma, and plane relationships are fixed by its variant.
PixelLayoutError
A failure while relating a pixel layout to concrete planes.
RgbOrder
Channel order for interleaved three-channel RGB samples.
RgbaOrder
Channel order for interleaved RGB-with-alpha samples.
SampleClass
The numeric class carried by a sample’s stored bit pattern.
StorageError
A failure while validating sample storage.
StorageUnit
The physical unit containing one sample.

Functions§

checked_plane_output_len
Validates an ordered, nonoverlapping set of planes and returns its extent.

Type Aliases§

GeometryResult
The result type returned by validated geometry primitives.
PixelLayoutResult
The result type returned by pixel-layout validation.
StorageResult
The result type returned by sample-storage validation.