Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Integer sample interpretation, exact code-depth evidence, and native code planes.
Storage width, code depth, and bit placement are independent: an unshifted
10-bit code in a u16 sample is not a normalized 16-bit value.
SampleEncodingdescribes the integer storage type, significant bit depth, and low-bit shift of one coded component without implying range or color meaning.ExactDepthcarries proven evidence that the current samples of a canonicalU8/U16image survive re-quantization to a lower depth under either the full-range (divisibility-nesting) or narrow-range (power-of-two) canonical mapping, tracking color and alpha depths independently.CodePlanereads unpacked integer codes from borrowed native codec planes (u8oru16, planar or interleaved) without copying or allocating.ChromaSitingandChromaSubsamplingdescribe declared chroma sample locations and subsampling ratios without silently assuming defaults.
Structs§
- Code
Plane - Integer codes of one component in a borrowed plane, without normalization or color claims.
- Code
Plane Mut - Mutable view of one integer component in a borrowed plane, without normalization or color claims.
- Exact
Depth - Proven exact code depth of the current samples of a canonical
U8/U16image. - Interleaved
Code Layout - Geometry and component selection for borrowing one component from an interleaved code plane.
- Sample
Encoding - Checked interpretation of one integer code in a stored sample.
Enums§
- Chroma
Siting - Declared chroma sample location relative to the luma sample grid.
- Chroma
Subsampling - Chroma resolution relative to the complete luma plane.
- Code
Plane Error - Codes cannot be read from a plane as requested.
- Exact
Depth Error - An exact-depth statement is impossible for its storage, range, or layout.
- Sample
Encoding Error - An integer sample description cannot fit its declared storage.
Functions§
- full_
range_ grid_ nests - Whether the full-range
src_bitsinteger code grid embeds exact inside thedst_bitsfull-range grid (2^src_bits - 1divides2^dst_bits - 1, iffsrc_bitsdividesdst_bits). - narrow_
range_ grid_ nests - Whether the narrow-range
src_bitsinteger code grid embeds exact inside thedst_bitsnarrow-range grid (power-of-two scaling requiressrc_bits >= 8anddst_bits >= src_bits).