Skip to main content

Crate zenpixels_convert

Crate zenpixels_convert 

Source
Expand description

§zenpixels-convert 0.5 — Pixel Conversion Engine

Composable, no_std + alloc (disable default std feature), #![forbid(unsafe_code)] pixel conversion, HDR tone mapping, gamut compression, ICC/CMS routing, gain-map reconstruction, EXIF orientation, planar YCbCr/RGB/monochrome reconstruction, and codec format negotiation for zenpixels.

Re-exports the entire zenpixels core surface (pub use zenpixels::*;) at the crate root without shadowing a single module name.

§Which Entry Point Should I Use?

ConvertPolicy::default() equals ConvertPolicy::lossless(), a strict permission preset that forbids lossy depth, gamut, range, and alpha changes. Opt in explicitly to ConvertPolicy::permissive(), ConvertPolicy::working_linear(), or ConvertPolicy::display_sdr when lossy conversion is desired.

§Quick Example

use zenpixels_convert::{ConvertPolicy, PixelBuf, PixelConvertExt, PixelFormat, formats};

let src = PixelBuf::from_typed(vec![255u8, 0, 0, 0, 255, 0], 2, 1, PixelFormat::RGB8_SRGB)?;
let linear = src.convert_to(&formats::RGBF32_LINEAR, &ConvertPolicy::lossless())?;
assert_eq!(linear.format(), &formats::RGBF32_LINEAR);

§Opt-in SIMD (const Accelerators)

Native pairs default to a compact scalar core with verified 0-bit parity against SIMD kernels. Use Accelerators::install_global to install a bundle process-wide, or ConvertPolicy::with_accelerators to set it per policy.

Re-exports§

pub use accelerators::Accelerators;
pub use cms::MoxCms;
pub use cms::CmsBackend;
pub use cms::CmsBinding;
pub use cms::CmsChoice;
pub use cms::CmsQuote;
pub use cms::CmsTransform;
pub use cms::ColorServices;
pub use cms::Lcms;
pub use cms::LcmsUnoptimized;
pub use codes::CodeMap;
pub use codes::CodeMapError;
pub use codes::CodeRole;
pub use codes::CodesError;
pub use codes::unpack_code_planes_into;
pub use compact::AlphaCompaction;
pub use compact::CompactOutcome;
pub use compact::CompactionReport;
pub use compact::compact_in_place;
pub use compact::compact_in_place_with_pulse;
pub use compact::compact_to_buf;
pub use compact::compact_to_buf_with_pulse;
pub use error::ConvertError;
pub use gamut::GamutMatrix;
pub use measure::LightLevelHistogram;
pub use measure::LightLevelMethod;
pub use measure::measure_content_light_level;
pub use measure::measure_content_light_level_with_pulse;
pub use measure::measure_histogram;
pub use measure::measure_histogram_with_pulse;
pub use measure::measure_max_smoothed;
pub use measure::measure_max_smoothed_with_pulse;
pub use measure::measure_peak;
pub use measure::measure_peak_with_pulse;
pub use negotiate::FormatCost;
pub use negotiate::LossKind;
pub use negotiate::Negotiate;
pub use negotiate::NegotiatedFormat;
pub use orient::apply_orientation;
pub use orient::apply_orientation_banded;
pub use orient::apply_orientation_banded_into;
pub use orient::apply_orientation_banded_into_with_pulse;
pub use orient::apply_orientation_banded_with_pulse;
pub use orient::apply_orientation_into;
pub use orient::apply_orientation_into_with_pulse;
pub use orient::apply_orientation_owned;
pub use orient::apply_orientation_owned_with_pulse;
pub use orient::apply_orientation_with_pulse;
pub use orient::bake_orientation;
pub use orient::bake_orientation_banded;
pub use orient::bake_orientation_owned;
pub use output::EncodeReady;
pub use output::OutputPlan;
pub use output::OutputSignaling;
pub use output::ResolvedSignaling;
pub use plan::ImagePlan;
pub use plan::PixelConvertExt;
pub use plan::RowPlan;
pub use planar::ChromaUpsample;
pub use planar::PlanarConvertExt;
pub use planar::PlanarReconstructionOptions;
pub use planar::reconstruct_planar_f32;
pub use planar::reconstruct_planar_f32_with_pulse;
pub use planar::reconstruct_planar_into;
pub use planar::reconstruct_planar_into_with_pulse;
pub use planar::reconstruct_planar_to_buf;
pub use planar::reconstruct_planar_to_buf_with_pulse;
pub use planar_capture::CaptureScratch;
pub use planar_capture::ChromaDownsample;
pub use planar_capture::PlanarCaptureOptions;
pub use planar_capture::PlanarCapturePlan;
pub use planar_capture::PlanarCaptureSpec;
pub use policy::AlphaPolicy;
pub use policy::ConvertPolicy;
pub use policy::DepthPolicy;
pub use policy::GamutPolicy;
pub use policy::LumaCoefficients;
pub use policy::LumaDomain;
pub use policy::RangePolicy;
pub use scan::ClaimVerificationError;
pub use scan::PixelCheckError;
pub use scan::PixelScanExt;
pub use scan::SampleBounds;
pub use scan::SampleValidationError;
pub use tonemap::SoftCompress;
pub use tonemap::Bt2446A;
pub use tonemap::Bt2446APipelineManaged;
pub use tonemap::PreparedMapper;
pub use tonemap::Requirements;
pub use tonemap::StripMapper;
pub use tonemap::ToneMapContext;
pub use tonemap::ToneMapper;
pub use ycbcr::YcbcrMatrix;

Modules§

accelerators
Dead-stripping SIMD accelerator table (Accelerators) and process-wide registry.
buffer
Full re-export of zenpixels core types (zero module name collisions!). Unparameterized pixel buffers, zero-copy strided views, bands, planes, and dual-layer HDR.
cicp
Full re-export of zenpixels core types (zero module name collisions!). CICP (Coding-Independent Code Points, ITU-T H.273 / ISO 23091-2) and ICC.1 cicpType tag codec including the 2026-10-19 custom-primaries extension.
claims
Full re-export of zenpixels core types (zero module name collisions!). Unified sample claims: FloatClaims, ExactDepth, and SampleClaims.
cms
Clean Color Management System (CmsBackend) trait, named/quoted CmsBinding, shared ColorServices / CmsChoice, and optional MoxCms / Lcms adapters.
codes
Exact depth, placement, and range conversion of native integer codes.
color
Full re-export of zenpixels core types (zero module name collisions!). Algebraic color-space model, image specification, provenance, and gain-map metadata.
compact
Spec-aware content analysis and bit-exact lossless format compaction.
error
Structured conversion errors wrapped in whereat::At for source-site traces.
gainmap
ISO 21496-1 / UltraHDR dual-layer gain-map reconstruction, resampling, orientation, and extraction.
gamut
Color gamut conversion matrices for BT.709, BT.2020, and Display P3.
hashing
Full re-export of zenpixels core types (zero module name collisions!). Portable, endian-independent, stride- and band-invariant XXH3 pixel fingerprinting.
hdr
Full re-export of zenpixels core types (zero module name collisions!). HDR metadata and luminance anchor types.
icc
Full re-export of zenpixels core types (zero module name collisions!). Lightweight ICC profile inspection and identification.
icc_profiles
Embedded CC0-licensed ICC profiles for common wide-gamut color spaces.
interop
Full re-export of zenpixels core types (zero module name collisions!). Zero-copy ecosystem interchange (rgb, imgref, and image 0.25).
layout
Full re-export of zenpixels core types (zero module name collisions!). Pure memory layout and bit-packing geometry for pixel storage.
measure
Streaming HDR content-light-level (MaxCLL / MaxFALL) measurement in O(1) row memory.
negotiate
Codec format negotiation: select the lowest-loss, lowest-effort supported PixelFormat.
oklab
Oklab relative to any supported RGB primaries.
orient
Physical EXIF orientation baking — rotate / flip any pixel view or buffer.
orientation
Full re-export of zenpixels core types (zero module name collisions!). EXIF orientation as an element of the D4 dihedral group.
output
Atomic encode-ready output planning: converted pixels + matching CICP / ICC metadata.
perceptual
Closed-form perceptual & cylindrical color conversions (Oklch, CieLab, CieLch, Jzazbz, Jzczhz, Hsl, Hsv).
pixel_types
Full re-export of zenpixels core types (zero module name collisions!). Custom sample and pixel types (F16Sample and gray+alpha formats).
plan
Type-safe row-level (RowPlan) and image-level (ImagePlan) conversion plans.
planar
Native multi-plane YCbCr / GBR / planar RGB / monochrome (PlanarView / PlanarBuf, including 8/10/12-bit BitPacking::P010 and U10_LSB, 4:4:4 / 4:2:2 / 4:2:0 / 4:4:0 / 4:1:1) → strided interleaved U8 / U16 / F32 (RGB, RGBA, BGR, BGRA, RGBX, BGRX, Gray, GrayAlpha).
planar_capture
Forward packed-to-planar capture (PlanarCaptureSpec, PlanarCapturePlan, CaptureScratch): strided interleaved pixels → multi-plane YCbCr / YCgCo / Identity GBR / planar RGB / monochrome PlanarViewMut (U8, U16 8/10/12/16-bit including P010 / U10_LSB, U32, and F32 planar RGB).
policy
Single cohesive conversion policy (ConvertPolicy) governing depth, alpha, gamut, signal range, HDR white anchor, HLG rendering, tone mapping, CMS, and SIMD.
sample
Full re-export of zenpixels core types (zero module name collisions!). Integer sample interpretation, exact code-depth evidence, and native code planes.
scan
SIMD-accelerated pixel scanning for SampleClaims and load-bearing analysis.
storage
Full re-export of zenpixels core types (zero module name collisions!). Alignment-exact, #![forbid(unsafe_code)] owned pixel storage.
tonemap
HDR → SDR tone mapping and OKLch soft gamut compression.
ycbcr
ITU-T H.273 Table 4 YCbCr / GBR / YCgCo matrix coefficients (YcbcrMatrix).

Structs§

AlignedSamples
Full re-export of zenpixels core types (zero module name collisions!). Owned byte storage whose first byte is guaranteed 64-byte aligned on every allocator.
At
Full re-export of zenpixels core types (zero module name collisions!). An error with location tracking - wraps any error type.
BandMut
Full re-export of zenpixels core types (zero module name collisions!). Disjoint mutable handle to one horizontal band inside BandedBuf, passed to the closure in BandedBuf::with_bands_mut.
BandRowLocation
Full re-export of zenpixels core types (zero module name collisions!). Band index and band-local row offset returned by BandedBuf::locate_row.
BandViews
Full re-export of zenpixels core types (zero module name collisions!). Zero-allocation iterator over every band in a BandedBuf as a borrowed PixelView.
BandedBuf
Full re-export of zenpixels core types (zero module name collisions!). Gigapixel-safe image stored as compact bounded-size horizontal bands.
Bgrx
Full re-export of zenpixels core types (zero module name collisions!). 4-byte BGR + unused padding pixel (#[repr(C)], align = 1).
Chromaticity
Full re-export of zenpixels core types (zero module name collisions!). Validated CIE 1931 (x, y) chromaticity coordinate with bit-exact equality & hashing.
Cicp
Full re-export of zenpixels core types (zero module name collisions!). 4-byte ITU-T H.273 color description (CP, TC, MC, full_range).
CicpTag
Full re-export of zenpixels core types (zero module name collisions!). ICC.1:2022 §10.3 cicpType tag payload, including the ICC custom-primaries amendment (approved 2026-10-19).
ClliCodes
Full re-export of zenpixels core types (zero module name collisions!). Exact PNG 3 / ITU-T H.274 cLLI content light-level codes (0.0001 cd/m² precision).
CodePlane
Full re-export of zenpixels core types (zero module name collisions!). Integer codes of one component in a borrowed plane, without normalization or color claims.
CodePlaneMut
Full re-export of zenpixels core types (zero module name collisions!). Mutable view of one integer component in a borrowed plane, without normalization or color claims.
Color
Full re-export of zenpixels core types (zero module name collisions!). Single-pixel color value used for explicit alpha matting and fills.
ColorOrigin
Full re-export of zenpixels core types (zero module name collisions!). Immutable provenance of what the original file claimed on disk.
ContentLightLevel
Full re-export of zenpixels core types (zero module name collisions!). HDR content light level metadata (CEA-861.3 / CTA-861-H / ITU-T H.274 §8.10).
CustomPrimaries
Full re-export of zenpixels core types (zero module name collisions!). Validated custom tristimulus RGB primaries + white point (ICC cicpType amendment, JXL, OpenEXR, PNG cHRM, HAGC Mode 3 / SMPTE ST 2094-50).
DiffuseWhite
Full re-export of zenpixels core types (zero module name collisions!). The absolute luminance, in cd/m² (nits), that a relative-linear sample value of 1.0 represents — the “diffuse white” (a.k.a. nominal diffuse white / SDR reference white) anchor that bridges relative-linear pixel data to absolute display light.
DualLayerHdrBuf
Full re-export of zenpixels core types (zero module name collisions!). Container-agnostic dual-layer HDR image (base + numeric gain map + exact ISO 21496-1 metadata).
DualLayerHdrBufParts
Full re-export of zenpixels core types (zero module name collisions!). Complete decomposed parts of a DualLayerHdrBuf carrier, preserving every field losslessly.
DualLayerHdrView
Full re-export of zenpixels core types (zero module name collisions!). Borrowed validated ISO 21496-1 / UltraHDR dual-layer HDR view (zero copy).
ExactDepth
Full re-export of zenpixels core types (zero module name collisions!). Proven exact code depth of the current samples of a canonical U8/U16 image.
ExternalMutStorage
Full re-export of zenpixels core types (zero module name collisions!). Type-erased mutable external owned backing storage (Box<[T]>, custom-allocator wrappers, mutable pool leases, FFI writable buffers).
ExternalStorage
Full re-export of zenpixels core types (zero module name collisions!). Type-erased immutable external owned backing storage (Arc<[T]>, &'static [T], memory-mapped files, shared buffer pools, FFI read-only buffers).
F16Sample
Full re-export of zenpixels core types (zero module name collisions!). IEEE 754 binary16 (half-precision float) interchange sample.
FloatClaims
Full re-export of zenpixels core types (zero module name collisions!). 6-bit bitmask of claimed properties on floating-point samples.
GainMapComponent
Full re-export of zenpixels core types (zero module name collisions!). Per-channel ISO 21496-1 gain-map parameters in exact rational form.
GainMapMetadata
Full re-export of zenpixels core types (zero module name collisions!). ISO 21496-1 / UltraHDR gain-map reconstruction parameters in exact rational form.
Gamma
Full re-export of zenpixels core types (zero module name collisions!). Validated pure power decoding gamma (L = v^gamma, OETF v^(1/gamma)).
GrayAlpha8
Full re-export of zenpixels core types (zero module name collisions!). Grayscale + alpha, 8-bit.
GrayAlpha16
Full re-export of zenpixels core types (zero module name collisions!). Grayscale + alpha, 16-bit.
GrayAlphaF16
Full re-export of zenpixels core types (zero module name collisions!). Grayscale + alpha, f16.
GrayAlphaF32
Full re-export of zenpixels core types (zero module name collisions!). Grayscale + alpha, f32.
HdrMetadata
Full re-export of zenpixels core types (zero module name collisions!). Descriptive HDR container metadata (CLL / ST 2086 mastering display).
HlgRendering
Full re-export of zenpixels core types (zero module name collisions!). Explicit HLG display rendering conditions. No implicit default exists.
HlgRenderingParams
Full re-export of zenpixels core types (zero module name collisions!). Named parameter struct for HlgRendering::new, preventing swapped black_nits and system_gamma.
IccFingerprint
Full re-export of zenpixels core types (zero module name collisions!). Pair of normalized ICC fingerprints returned by Self::from_icc.
InPlaceTransformInput
Full re-export of zenpixels core types (zero module name collisions!). Current buffer geometry and metadata passed to the closure in PixelBuf::transform_in_place.
InPlaceTransformOutput
Full re-export of zenpixels core types (zero module name collisions!). Replacement stride and metadata returned by the closure in PixelBuf::transform_in_place.
InterleavedCodeLayout
Full re-export of zenpixels core types (zero module name collisions!). Geometry and component selection for borrowing one component from an interleaved code plane.
MasteringDisplay
Full re-export of zenpixels core types (zero module name collisions!). Mastering display color volume metadata (SMPTE ST 2086).
MatrixCoefficients
Full re-export of zenpixels core types (zero module name collisions!). 1-byte lossless ITU-T H.273 Table 4 MatrixCoefficients code.
Nits
Full re-export of zenpixels core types (zero module name collisions!). A finite, strictly positive luminance in cd/m². Used for source/display peaks independently of the relative-linear white anchor.
PixelBuf
Full re-export of zenpixels core types (zero module name collisions!). Owned, unparameterized, alignment-exact pixel image buffer.
PixelBufParts
Full re-export of zenpixels core types (zero module name collisions!). Decomposed parts returned by PixelBuf::into_parts.
PixelFormat
Full re-export of zenpixels core types (zero module name collisions!). Complete, validated description of an interleaved pixel: physical SampleLayout + algebraic ColorSpace.
PixelRect
Full re-export of zenpixels core types (zero module name collisions!). Rectangular pixel region specified by top-left origin (x, y) and (width, height) in pixels.
PixelView
Full re-export of zenpixels core types (zero module name collisions!). Zero-copy borrowed view of an interleaved image or rectangular crop.
PixelViewMut
Full re-export of zenpixels core types (zero module name collisions!). Zero-copy mutable view of an interleaved image or rectangular crop.
PlanarBuf
Full re-export of zenpixels core types (zero module name collisions!). Multi-plane image (YCbCr 4:2:0/4:2:2/4:4:4, NV12, P010, planar RGB+A, planar CMYKA, JXL/TIFF extra planes).
PlanarView
Full re-export of zenpixels core types (zero module name collisions!). Borrowed multi-plane view (zero heap allocation for 1..=4 planes; spills cleanly for 5..=64 planes).
PlanarViewMut
Full re-export of zenpixels core types (zero module name collisions!). Mutable borrowed multi-plane view (zero heap allocation for 1..=4 disjoint planes; spills cleanly for 5..=64 planes).
PlaneBuf
Full re-export of zenpixels core types (zero module name collisions!). Owned single plane inside a PlanarBuf with validated geometry invariants.
PlaneFormat
Full re-export of zenpixels core types (zero module name collisions!). Storage specification for one plane in a multi-plane image (16 B, zero invalid arity or zero subsampling).
PlaneView
Full re-export of zenpixels core types (zero module name collisions!). Validated borrowed view of one plane inside a PlanarView.
PlaneViewMut
Full re-export of zenpixels core types (zero module name collisions!). Validated mutable borrowed view of one plane.
Rgbx
Full re-export of zenpixels core types (zero module name collisions!). 4-byte RGB + unused padding pixel (#[repr(C)], align = 1).
SampleClaims
Full re-export of zenpixels core types (zero module name collisions!). Positive claims about active sample values, stored as inline image metadata.
SampleEncoding
Full re-export of zenpixels core types (zero module name collisions!). Checked interpretation of one integer code in a stored sample.
SampleLayout
Full re-export of zenpixels core types (zero module name collisions!). Complete interleaved storage description for a single plane of pixels.
SampleStride
Full re-export of zenpixels core types (zero module name collisions!). Row stride measured in scalar samples (not bytes).
SignedFraction
Full re-export of zenpixels core types (zero module name collisions!). Exact unreduced signed rational (i32 / NonZeroU32) per ISO 21496-1 wire format.
St2086Codes
Full re-export of zenpixels core types (zero module name collisions!). Exact mastering-display codes, separate from the lossy floating-point view. Chromaticities are in units of 0.00002; luminances in units of 0.0001 cd/m². Byte serialization uses RGB primary order, then white, maximum and minimum luminance, all big-endian. Adapters for formats with another primary order must reorder explicitly. No validation discards unknown or out-of-range codes.
StopOnly
Cancellation without progress: a pulse made from any Stop.
UnsignedFraction
Full re-export of zenpixels core types (zero module name collisions!). Exact unreduced unsigned rational (u32 / NonZeroU32) per ISO 21496-1 wire format.
Unstoppable
A Stop implementation that never stops (no cooperative cancellation).

Enums§

AlphaMode
Full re-export of zenpixels core types (zero module name collisions!). Interpretation of an image’s alpha (or padding) channel.
BandSizing
Full re-export of zenpixels core types (zero module name collisions!). How BandedBuf partitions image rows into horizontal bands.
BitPacking
Full re-export of zenpixels core types (zero module name collisions!). Bit-level packing of integer codes inside storage words.
BitPackingAccess
Full re-export of zenpixels core types (zero module name collisions!). Policy controlling how zero-copy typed slice borrowing handles non-BitPacking::Full layouts (e.g. U10_LSB, U12_LSB, P010, Shifted, RGB10A2, RGB565).
BitPackingRead
Full re-export of zenpixels core types (zero module name collisions!). Policy controlling how read-only row visiting (PixelView::visit_rows_with_packing, PixelBuf::visit_rows_with_packing) handles non-BitPacking::Full layouts.
BitPackingTransform
Full re-export of zenpixels core types (zero module name collisions!). Policy controlling how scoped in-place row mutation (PixelBuf::mutate_rows_with_packing, PixelViewMut::mutate_rows_with_packing) handles non-BitPacking::Full layouts.
BufFill
Full re-export of zenpixels core types (zero module name collisions!). Initial pixel fill color for freshly allocated PixelBufs (PixelBuf::new_with_fill, PixelBuf::new_signal_white).
BufferError
Full re-export of zenpixels core types (zero module name collisions!). Errors returned by pixel buffer, view, band, and plane operations.
ChannelOrder
Full re-export of zenpixels core types (zero module name collisions!). Memory order of interleaved channels within a single pixel.
ChromaSiting
Full re-export of zenpixels core types (zero module name collisions!). Declared chroma sample location relative to the luma sample grid.
ChromaSubsampling
Full re-export of zenpixels core types (zero module name collisions!). Chroma resolution relative to the complete luma plane.
CicpError
Full re-export of zenpixels core types (zero module name collisions!). Failure parsing a raw wire CICP payload or projecting a Cicp / CicpTag into an RGB ColorSpace.
CicpProjectionError
Full re-export of zenpixels core types (zero module name collisions!). Failure projecting a ColorSpace losslessly to an ITU-T H.273 Cicp tuple.
CodePlaneError
Full re-export of zenpixels core types (zero module name collisions!). Codes cannot be read from a plane as requested.
ColorError
Full re-export of zenpixels core types (zero module name collisions!). Validation errors for PixelFormat and ColorSpace.
ColorSpace
Full re-export of zenpixels core types (zero module name collisions!). Authoritative color meaning of pixel samples — an algebraic enum with zero contradictory or impossible combinations.
ExactDepthError
Full re-export of zenpixels core types (zero module name collisions!). An exact-depth statement is impossible for its storage, range, or layout.
FormatCow
Full re-export of zenpixels core types (zero module name collisions!). Borrowed-or-owned PixelFormat carried inside PixelView<'a> and PixelViewMut<'a>.
GainMapChannels
Full re-export of zenpixels core types (zero module name collisions!). Metadata record arity per ISO 21496-1 §5.2.5.1 — strictly independent of gain-map image channels (1 or 3).
GainMapColorSpace
Full re-export of zenpixels core types (zero module name collisions!). Which rendition’s linear RGB primaries host channelwise gain application (ISO 21496-1 use_base_colour_space).
GainMapDirection
Full re-export of zenpixels core types (zero module name collisions!). Rendition headroom ordering derived from exact rational comparison of base_hdr_headroom vs alternate_hdr_headroom.
HashInclusions
Full re-export of zenpixels core types (zero module name collisions!). Fields included in a portable pixel fingerprint. Storage padding is always excluded.
HlgMode
Full re-export of zenpixels core types (zero module name collisions!). Interpretation of an HLG signal: bare scene-referred vs explicit BT.2100-3 display rendering.
IccColorSpace
Full re-export of zenpixels core types (zero module name collisions!). High-level data color space recorded in an ICC profile header (bytes 16..20).
IccMatchTolerance
Full re-export of zenpixels core types (zero module name collisions!). TRC matching tolerance tier for IccIdentification::from_icc_for_intent.
IccValidationError
Full re-export of zenpixels core types (zero module name collisions!). Structural validation error for raw ICC profile bytes (ISO 15076-1 / ICC.1).
InPlaceTransformDecision
Full re-export of zenpixels core types (zero module name collisions!). Outcome returned by the closure passed to PixelBuf::transform_in_place.
InteropTarget
Full re-export of zenpixels core types (zero module name collisions!). Downstream container contract for PixelBuf::new_for_interop.
LayoutError
Full re-export of zenpixels core types (zero module name collisions!). Layout validation or stride computation error.
Orientation
Full re-export of zenpixels core types (zero module name collisions!). Image orientation — the 8-element D4 dihedral group.
OriginKind
Full re-export of zenpixels core types (zero module name collisions!). How the original file signaled its color space.
PeakSource
Full re-export of zenpixels core types (zero module name collisions!). How an image-level conversion obtains the source peak for HDR tone mapping.
PerceptualSpace
Full re-export of zenpixels core types (zero module name collisions!). Perceptual / cylindrical color spaces beyond Oklab.
PixelCow
Full re-export of zenpixels core types (zero module name collisions!). Borrowed-or-owned pixel image returned by zero-copy negotiation / adaptation helpers.
PixelStorage
Full re-export of zenpixels core types (zero module name collisions!). Alignment-exact owned pixel backing storage.
PlaneComponents
Full re-export of zenpixels core types (zero module name collisions!). Validated interleaved component count (1..=4) for variable-arity plane roles (PlaneRole::Packed and PlaneRole::Extra).
PlaneRole
Full re-export of zenpixels core types (zero module name collisions!). Role of a single plane inside a multi-plane image (PlanarBuf).
Primaries
Full re-export of zenpixels core types (zero module name collisions!). Standardized 1-byte Copy + const chromaticity primaries (and reference white point) for tristimulus RGB color spaces.
RenderingIntent
Full re-export of zenpixels core types (zero module name collisions!). ICC rendering intent.
RowAlign
Full re-export of zenpixels core types (zero module name collisions!). Row-start alignment policy for allocated buffers.
SampleEncodingError
Full re-export of zenpixels core types (zero module name collisions!). An integer sample description cannot fit its declared storage.
SampleType
Full re-export of zenpixels core types (zero module name collisions!). Native numeric type of each stored channel sample.
SignalRange
Full re-export of zenpixels core types (zero module name collisions!). Signal quantization range for integer samples.
StopReason
Why an operation was stopped.
StorageError
Full re-export of zenpixels core types (zero module name collisions!). Low-level storage allocation error.
Transfer
Full re-export of zenpixels core types (zero module name collisions!). Electro-optical transfer function (non-linear curve between stored values and light).
WhitePoint
Full re-export of zenpixels core types (zero module name collisions!). Reference white point for XYZ, Gray, or custom-primary RGB spaces.

Constants§

DEFAULT_MAX_BAND_BYTES
Full re-export of zenpixels core types (zero module name collisions!). Default per-band memory cap (16 MiB) for BandedBuf.

Statics§

NoPulse
Never stops and discards reports, including in every nested phase.

Traits§

AsStopReason
The StopReason an error represents, if it represents one.
ByteStorage
Full re-export of zenpixels core types (zero module name collisions!). Read access to native-endian pixel bytes without copying.
ByteStorageMut
Full re-export of zenpixels core types (zero module name collisions!). Mutable access to native-endian pixel bytes without copying.
PixelSink
Full re-export of zenpixels core types (zero module name collisions!). Uniform write interface across PixelViewMut, PixelBuf, and BandedBuf.
PixelSource
Full re-export of zenpixels core types (zero module name collisions!). Uniform read interface across PixelView, PixelBuf, and BandedBuf.
PixelType
Full re-export of zenpixels core types (zero module name collisions!). Compile-time pixel type marker for zero-copy imgref / typed helpers.
Pulse
Cancellation, completed work, and nested phase planning, in one value.
Stop
Cooperative cancellation check.
StorageSample
Full re-export of zenpixels core types (zero module name collisions!). Sealed trait implemented by the 11 native sample types stored in PixelStorage.
TypedElement
Full re-export of zenpixels core types (zero module name collisions!). Sealed marker trait for Rust scalar, channel-array, or pixel types that carry a known SampleLayout compatibility contract.

Functions§

color_primaries_name
Full re-export of zenpixels core types (zero module name collisions!). Human-readable ITU-T H.273 Table 2 ColourPrimaries label.
full_range_grid_nests
Full re-export of zenpixels core types (zero module name collisions!). Whether the full-range src_bits integer code grid embeds exact inside the dst_bits full-range grid (2^src_bits - 1 divides 2^dst_bits - 1, iff src_bits divides dst_bits).
matrix_coefficients_name
Full re-export of zenpixels core types (zero module name collisions!). Human-readable ITU-T H.273 Table 4 MatrixCoefficients label.
narrow_range_grid_nests
Full re-export of zenpixels core types (zero module name collisions!). Whether the narrow-range src_bits integer code grid embeds exact inside the dst_bits narrow-range grid (power-of-two scaling requires src_bits >= 8 and dst_bits >= src_bits).
transfer_characteristics_name
Full re-export of zenpixels core types (zero module name collisions!). Human-readable ITU-T H.273 Table 3 TransferCharacteristics label.
validate_icc_structure
Full re-export of zenpixels core types (zero module name collisions!). Validate an ICC profile’s structural framing per ISO 15076-1 / ICC.1: