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?
- Unified one-shot conversion (recommended):
ImagePlan::convert,ImagePlan::convert_into,ImagePlan::to_rgba8,ImagePlan::to_rgb8_if_opaque,ImagePlan::to_gray8_if_opaque,ImagePlan::to_bgra8— or the matching method syntax viaPixelConvertExt(src.convert_to(...),src.convert_into(&mut dst, ...),src.to_rgba8(), etc.). Works uniformly onPixelBuf,PixelView, andBandedBufwithout.as_view()and with zero monomorphization bloat across carrier combinations. Defaults toPeakSource::Measuredonly when HDR tone mapping needs a peak; use*_with_peakfor explicitPeakSource. - Sample claims & checks:
PixelScanExt::measure_claimsscans a buffer or view. The carrier’sattached_claims()accessor reads the claims already attached to it.PixelScanExt::measure_and_attach_claimsrefreshes those claims in place;PixelScanExt::check_nominal_samplesandPixelScanExt::check_sampleslocate out-of-bounds samples. - Reusable image plan:
ImagePlan::build(acceptsPeakSource, works onPixelView,PixelBuf, andBandedBuf). - Streaming row loop (zero heap scratch):
RowPlan::build(accepts resolvedOption<Nits>and executes rows viaconvert_row/convert_row_at). - Planar YCbCr / GBR / RGB / monochrome reconstruction:
PlanarConvertExtonPlanarView. - ISO 21496-1 / UltraHDR gain maps (
gainmapfeature):gainmap::apply_gain_map_with,gainmap::extract_gain_map_only,gainmap::GainMapApplier,gainmap::GainMapRowExtractor. - Content compaction:
CompactionReport::measure,compact_to_buf,compact_in_place. - Encoder output + CICP/ICC signaling:
OutputPlan::adapt_for_encodeor reusableOutputPlan::buildwithOutputSignaling.
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
zenpixelscore types (zero module name collisions!). Unparameterized pixel buffers, zero-copy strided views, bands, planes, and dual-layer HDR. - cicp
- Full re-export of
zenpixelscore types (zero module name collisions!). CICP (Coding-Independent Code Points, ITU-T H.273 / ISO 23091-2) and ICC.1cicpTypetag codec including the 2026-10-19 custom-primaries extension. - claims
- Full re-export of
zenpixelscore types (zero module name collisions!). Unified sample claims:FloatClaims,ExactDepth, andSampleClaims. - cms
- Clean Color Management System (
CmsBackend) trait, named/quotedCmsBinding, sharedColorServices/CmsChoice, and optionalMoxCms/Lcmsadapters. - codes
- Exact depth, placement, and range conversion of native integer codes.
- color
- Full re-export of
zenpixelscore 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::Atfor 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
zenpixelscore types (zero module name collisions!). Portable, endian-independent, stride- and band-invariant XXH3 pixel fingerprinting. - hdr
- Full re-export of
zenpixelscore types (zero module name collisions!). HDR metadata and luminance anchor types. - icc
- Full re-export of
zenpixelscore 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
zenpixelscore types (zero module name collisions!). Zero-copy ecosystem interchange (rgb,imgref, andimage0.25). - layout
- Full re-export of
zenpixelscore 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
zenpixelscore 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
zenpixelscore types (zero module name collisions!). Custom sample and pixel types (F16Sampleand 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-bitBitPacking::P010andU10_LSB, 4:4:4 / 4:2:2 / 4:2:0 / 4:4:0 / 4:1:1) → strided interleavedU8/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 / monochromePlanarViewMut(U8,U168/10/12/16-bit includingP010/U10_LSB,U32, andF32planar 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
zenpixelscore types (zero module name collisions!). Integer sample interpretation, exact code-depth evidence, and native code planes. - scan
- SIMD-accelerated pixel scanning for
SampleClaimsand load-bearing analysis. - storage
- Full re-export of
zenpixelscore 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§
- Aligned
Samples - Full re-export of
zenpixelscore types (zero module name collisions!). Owned byte storage whose first byte is guaranteed 64-byte aligned on every allocator. - At
- Full re-export of
zenpixelscore types (zero module name collisions!). An error with location tracking - wraps any error type. - BandMut
- Full re-export of
zenpixelscore types (zero module name collisions!). Disjoint mutable handle to one horizontal band insideBandedBuf, passed to the closure inBandedBuf::with_bands_mut. - Band
RowLocation - Full re-export of
zenpixelscore types (zero module name collisions!). Band index and band-local row offset returned byBandedBuf::locate_row. - Band
Views - Full re-export of
zenpixelscore types (zero module name collisions!). Zero-allocation iterator over every band in aBandedBufas a borrowedPixelView. - Banded
Buf - Full re-export of
zenpixelscore types (zero module name collisions!). Gigapixel-safe image stored as compact bounded-size horizontal bands. - Bgrx
- Full re-export of
zenpixelscore types (zero module name collisions!). 4-byte BGR + unused padding pixel (#[repr(C)],align = 1). - Chromaticity
- Full re-export of
zenpixelscore types (zero module name collisions!). Validated CIE 1931(x, y)chromaticity coordinate with bit-exact equality & hashing. - Cicp
- Full re-export of
zenpixelscore types (zero module name collisions!). 4-byte ITU-T H.273 color description (CP,TC,MC,full_range). - CicpTag
- Full re-export of
zenpixelscore types (zero module name collisions!). ICC.1:2022 §10.3cicpTypetag payload, including the ICC custom-primaries amendment (approved 2026-10-19). - Clli
Codes - Full re-export of
zenpixelscore types (zero module name collisions!). Exact PNG 3 / ITU-T H.274cLLIcontent light-level codes (0.0001 cd/m²precision). - Code
Plane - Full re-export of
zenpixelscore types (zero module name collisions!). Integer codes of one component in a borrowed plane, without normalization or color claims. - Code
Plane Mut - Full re-export of
zenpixelscore 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
zenpixelscore types (zero module name collisions!). Single-pixel color value used for explicit alpha matting and fills. - Color
Origin - Full re-export of
zenpixelscore types (zero module name collisions!). Immutable provenance of what the original file claimed on disk. - Content
Light Level - Full re-export of
zenpixelscore types (zero module name collisions!). HDR content light level metadata (CEA-861.3 / CTA-861-H / ITU-T H.274 §8.10). - Custom
Primaries - Full re-export of
zenpixelscore types (zero module name collisions!). Validated custom tristimulus RGB primaries + white point (ICCcicpTypeamendment, JXL, OpenEXR, PNGcHRM, HAGC Mode 3 / SMPTE ST 2094-50). - Diffuse
White - Full re-export of
zenpixelscore types (zero module name collisions!). The absolute luminance, in cd/m² (nits), that a relative-linear sample value of1.0represents — the “diffuse white” (a.k.a. nominal diffuse white / SDR reference white) anchor that bridges relative-linear pixel data to absolute display light. - Dual
Layer HdrBuf - Full re-export of
zenpixelscore types (zero module name collisions!). Container-agnostic dual-layer HDR image (base + numeric gain map + exact ISO 21496-1 metadata). - Dual
Layer HdrBuf Parts - Full re-export of
zenpixelscore types (zero module name collisions!). Complete decomposed parts of aDualLayerHdrBufcarrier, preserving every field losslessly. - Dual
Layer HdrView - Full re-export of
zenpixelscore types (zero module name collisions!). Borrowed validated ISO 21496-1 / UltraHDR dual-layer HDR view (zero copy). - Exact
Depth - Full re-export of
zenpixelscore types (zero module name collisions!). Proven exact code depth of the current samples of a canonicalU8/U16image. - External
MutStorage - Full re-export of
zenpixelscore types (zero module name collisions!). Type-erased mutable external owned backing storage (Box<[T]>, custom-allocator wrappers, mutable pool leases, FFI writable buffers). - External
Storage - Full re-export of
zenpixelscore 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
zenpixelscore types (zero module name collisions!). IEEE 754binary16(half-precision float) interchange sample. - Float
Claims - Full re-export of
zenpixelscore types (zero module name collisions!). 6-bit bitmask of claimed properties on floating-point samples. - Gain
MapComponent - Full re-export of
zenpixelscore types (zero module name collisions!). Per-channel ISO 21496-1 gain-map parameters in exact rational form. - Gain
MapMetadata - Full re-export of
zenpixelscore types (zero module name collisions!). ISO 21496-1 / UltraHDR gain-map reconstruction parameters in exact rational form. - Gamma
- Full re-export of
zenpixelscore types (zero module name collisions!). Validated pure power decoding gamma (L = v^gamma, OETFv^(1/gamma)). - Gray
Alpha8 - Full re-export of
zenpixelscore types (zero module name collisions!). Grayscale + alpha, 8-bit. - Gray
Alpha16 - Full re-export of
zenpixelscore types (zero module name collisions!). Grayscale + alpha, 16-bit. - Gray
Alpha F16 - Full re-export of
zenpixelscore types (zero module name collisions!). Grayscale + alpha, f16. - Gray
Alpha F32 - Full re-export of
zenpixelscore types (zero module name collisions!). Grayscale + alpha, f32. - HdrMetadata
- Full re-export of
zenpixelscore types (zero module name collisions!). Descriptive HDR container metadata (CLL / ST 2086 mastering display). - HlgRendering
- Full re-export of
zenpixelscore types (zero module name collisions!). Explicit HLG display rendering conditions. No implicit default exists. - HlgRendering
Params - Full re-export of
zenpixelscore types (zero module name collisions!). Named parameter struct forHlgRendering::new, preventing swappedblack_nitsandsystem_gamma. - IccFingerprint
- Full re-export of
zenpixelscore types (zero module name collisions!). Pair of normalized ICC fingerprints returned bySelf::from_icc. - InPlace
Transform Input - Full re-export of
zenpixelscore types (zero module name collisions!). Current buffer geometry and metadata passed to the closure inPixelBuf::transform_in_place. - InPlace
Transform Output - Full re-export of
zenpixelscore types (zero module name collisions!). Replacement stride and metadata returned by the closure inPixelBuf::transform_in_place. - Interleaved
Code Layout - Full re-export of
zenpixelscore types (zero module name collisions!). Geometry and component selection for borrowing one component from an interleaved code plane. - Mastering
Display - Full re-export of
zenpixelscore types (zero module name collisions!). Mastering display color volume metadata (SMPTE ST 2086). - Matrix
Coefficients - Full re-export of
zenpixelscore types (zero module name collisions!). 1-byte lossless ITU-T H.273 Table 4MatrixCoefficientscode. - Nits
- Full re-export of
zenpixelscore 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. - Pixel
Buf - Full re-export of
zenpixelscore types (zero module name collisions!). Owned, unparameterized, alignment-exact pixel image buffer. - Pixel
BufParts - Full re-export of
zenpixelscore types (zero module name collisions!). Decomposed parts returned byPixelBuf::into_parts. - Pixel
Format - Full re-export of
zenpixelscore types (zero module name collisions!). Complete, validated description of an interleaved pixel: physicalSampleLayout+ algebraicColorSpace. - Pixel
Rect - Full re-export of
zenpixelscore types (zero module name collisions!). Rectangular pixel region specified by top-left origin(x, y)and(width, height)in pixels. - Pixel
View - Full re-export of
zenpixelscore types (zero module name collisions!). Zero-copy borrowed view of an interleaved image or rectangular crop. - Pixel
View Mut - Full re-export of
zenpixelscore types (zero module name collisions!). Zero-copy mutable view of an interleaved image or rectangular crop. - Planar
Buf - Full re-export of
zenpixelscore 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). - Planar
View - Full re-export of
zenpixelscore types (zero module name collisions!). Borrowed multi-plane view (zero heap allocation for1..=4planes; spills cleanly for5..=64planes). - Planar
View Mut - Full re-export of
zenpixelscore types (zero module name collisions!). Mutable borrowed multi-plane view (zero heap allocation for1..=4disjoint planes; spills cleanly for5..=64planes). - Plane
Buf - Full re-export of
zenpixelscore types (zero module name collisions!). Owned single plane inside aPlanarBufwith validated geometry invariants. - Plane
Format - Full re-export of
zenpixelscore types (zero module name collisions!). Storage specification for one plane in a multi-plane image (16 B, zero invalid arity or zero subsampling). - Plane
View - Full re-export of
zenpixelscore types (zero module name collisions!). Validated borrowed view of one plane inside aPlanarView. - Plane
View Mut - Full re-export of
zenpixelscore types (zero module name collisions!). Validated mutable borrowed view of one plane. - Rgbx
- Full re-export of
zenpixelscore types (zero module name collisions!). 4-byte RGB + unused padding pixel (#[repr(C)],align = 1). - Sample
Claims - Full re-export of
zenpixelscore types (zero module name collisions!). Positive claims about active sample values, stored as inline image metadata. - Sample
Encoding - Full re-export of
zenpixelscore types (zero module name collisions!). Checked interpretation of one integer code in a stored sample. - Sample
Layout - Full re-export of
zenpixelscore types (zero module name collisions!). Complete interleaved storage description for a single plane of pixels. - Sample
Stride - Full re-export of
zenpixelscore types (zero module name collisions!). Row stride measured in scalar samples (not bytes). - Signed
Fraction - Full re-export of
zenpixelscore types (zero module name collisions!). Exact unreduced signed rational (i32 / NonZeroU32) per ISO 21496-1 wire format. - St2086
Codes - Full re-export of
zenpixelscore 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. - Stop
Only - Cancellation without progress: a pulse made from any
Stop. - Unsigned
Fraction - Full re-export of
zenpixelscore types (zero module name collisions!). Exact unreduced unsigned rational (u32 / NonZeroU32) per ISO 21496-1 wire format. - Unstoppable
- A
Stopimplementation that never stops (no cooperative cancellation).
Enums§
- Alpha
Mode - Full re-export of
zenpixelscore types (zero module name collisions!). Interpretation of an image’s alpha (or padding) channel. - Band
Sizing - Full re-export of
zenpixelscore types (zero module name collisions!). HowBandedBufpartitions image rows into horizontal bands. - BitPacking
- Full re-export of
zenpixelscore types (zero module name collisions!). Bit-level packing of integer codes inside storage words. - BitPacking
Access - Full re-export of
zenpixelscore types (zero module name collisions!). Policy controlling how zero-copy typed slice borrowing handles non-BitPacking::Fulllayouts (e.g.U10_LSB,U12_LSB,P010,Shifted,RGB10A2,RGB565). - BitPacking
Read - Full re-export of
zenpixelscore 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::Fulllayouts. - BitPacking
Transform - Full re-export of
zenpixelscore 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::Fulllayouts. - BufFill
- Full re-export of
zenpixelscore types (zero module name collisions!). Initial pixel fill color for freshly allocatedPixelBufs (PixelBuf::new_with_fill,PixelBuf::new_signal_white). - Buffer
Error - Full re-export of
zenpixelscore types (zero module name collisions!). Errors returned by pixel buffer, view, band, and plane operations. - Channel
Order - Full re-export of
zenpixelscore types (zero module name collisions!). Memory order of interleaved channels within a single pixel. - Chroma
Siting - Full re-export of
zenpixelscore types (zero module name collisions!). Declared chroma sample location relative to the luma sample grid. - Chroma
Subsampling - Full re-export of
zenpixelscore types (zero module name collisions!). Chroma resolution relative to the complete luma plane. - Cicp
Error - Full re-export of
zenpixelscore types (zero module name collisions!). Failure parsing a raw wire CICP payload or projecting aCicp/CicpTaginto an RGBColorSpace. - Cicp
Projection Error - Full re-export of
zenpixelscore types (zero module name collisions!). Failure projecting aColorSpacelosslessly to an ITU-T H.273Cicptuple. - Code
Plane Error - Full re-export of
zenpixelscore types (zero module name collisions!). Codes cannot be read from a plane as requested. - Color
Error - Full re-export of
zenpixelscore types (zero module name collisions!). Validation errors forPixelFormatandColorSpace. - Color
Space - Full re-export of
zenpixelscore types (zero module name collisions!). Authoritative color meaning of pixel samples — an algebraic enum with zero contradictory or impossible combinations. - Exact
Depth Error - Full re-export of
zenpixelscore types (zero module name collisions!). An exact-depth statement is impossible for its storage, range, or layout. - Format
Cow - Full re-export of
zenpixelscore types (zero module name collisions!). Borrowed-or-ownedPixelFormatcarried insidePixelView<'a>andPixelViewMut<'a>. - Gain
MapChannels - Full re-export of
zenpixelscore 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). - Gain
MapColor Space - Full re-export of
zenpixelscore types (zero module name collisions!). Which rendition’s linear RGB primaries host channelwise gain application (ISO 21496-1use_base_colour_space). - Gain
MapDirection - Full re-export of
zenpixelscore types (zero module name collisions!). Rendition headroom ordering derived from exact rational comparison ofbase_hdr_headroomvsalternate_hdr_headroom. - Hash
Inclusions - Full re-export of
zenpixelscore types (zero module name collisions!). Fields included in a portable pixel fingerprint. Storage padding is always excluded. - HlgMode
- Full re-export of
zenpixelscore types (zero module name collisions!). Interpretation of an HLG signal: bare scene-referred vs explicit BT.2100-3 display rendering. - IccColor
Space - Full re-export of
zenpixelscore types (zero module name collisions!). High-level data color space recorded in an ICC profile header (bytes 16..20). - IccMatch
Tolerance - Full re-export of
zenpixelscore types (zero module name collisions!). TRC matching tolerance tier forIccIdentification::from_icc_for_intent. - IccValidation
Error - Full re-export of
zenpixelscore types (zero module name collisions!). Structural validation error for raw ICC profile bytes (ISO 15076-1 / ICC.1). - InPlace
Transform Decision - Full re-export of
zenpixelscore types (zero module name collisions!). Outcome returned by the closure passed toPixelBuf::transform_in_place. - Interop
Target - Full re-export of
zenpixelscore types (zero module name collisions!). Downstream container contract forPixelBuf::new_for_interop. - Layout
Error - Full re-export of
zenpixelscore types (zero module name collisions!). Layout validation or stride computation error. - Orientation
- Full re-export of
zenpixelscore types (zero module name collisions!). Image orientation — the 8-element D4 dihedral group. - Origin
Kind - Full re-export of
zenpixelscore types (zero module name collisions!). How the original file signaled its color space. - Peak
Source - Full re-export of
zenpixelscore types (zero module name collisions!). How an image-level conversion obtains the source peak for HDR tone mapping. - Perceptual
Space - Full re-export of
zenpixelscore types (zero module name collisions!). Perceptual / cylindrical color spaces beyond Oklab. - Pixel
Cow - Full re-export of
zenpixelscore types (zero module name collisions!). Borrowed-or-owned pixel image returned by zero-copy negotiation / adaptation helpers. - Pixel
Storage - Full re-export of
zenpixelscore types (zero module name collisions!). Alignment-exact owned pixel backing storage. - Plane
Components - Full re-export of
zenpixelscore types (zero module name collisions!). Validated interleaved component count (1..=4) for variable-arity plane roles (PlaneRole::PackedandPlaneRole::Extra). - Plane
Role - Full re-export of
zenpixelscore types (zero module name collisions!). Role of a single plane inside a multi-plane image (PlanarBuf). - Primaries
- Full re-export of
zenpixelscore types (zero module name collisions!). Standardized 1-byteCopy + constchromaticity primaries (and reference white point) for tristimulus RGB color spaces. - Rendering
Intent - Full re-export of
zenpixelscore types (zero module name collisions!). ICC rendering intent. - RowAlign
- Full re-export of
zenpixelscore types (zero module name collisions!). Row-start alignment policy for allocated buffers. - Sample
Encoding Error - Full re-export of
zenpixelscore types (zero module name collisions!). An integer sample description cannot fit its declared storage. - Sample
Type - Full re-export of
zenpixelscore types (zero module name collisions!). Native numeric type of each stored channel sample. - Signal
Range - Full re-export of
zenpixelscore types (zero module name collisions!). Signal quantization range for integer samples. - Stop
Reason - Why an operation was stopped.
- Storage
Error - Full re-export of
zenpixelscore types (zero module name collisions!). Low-level storage allocation error. - Transfer
- Full re-export of
zenpixelscore types (zero module name collisions!). Electro-optical transfer function (non-linear curve between stored values and light). - White
Point - Full re-export of
zenpixelscore 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
zenpixelscore types (zero module name collisions!). Default per-band memory cap (16 MiB) forBandedBuf.
Statics§
- NoPulse
- Never stops and discards reports, including in every nested phase.
Traits§
- AsStop
Reason - The
StopReasonan error represents, if it represents one. - Byte
Storage - Full re-export of
zenpixelscore types (zero module name collisions!). Read access to native-endian pixel bytes without copying. - Byte
Storage Mut - Full re-export of
zenpixelscore types (zero module name collisions!). Mutable access to native-endian pixel bytes without copying. - Pixel
Sink - Full re-export of
zenpixelscore types (zero module name collisions!). Uniform write interface acrossPixelViewMut,PixelBuf, andBandedBuf. - Pixel
Source - Full re-export of
zenpixelscore types (zero module name collisions!). Uniform read interface acrossPixelView,PixelBuf, andBandedBuf. - Pixel
Type - Full re-export of
zenpixelscore types (zero module name collisions!). Compile-time pixel type marker for zero-copyimgref/ typed helpers. - Pulse
- Cancellation, completed work, and nested phase planning, in one value.
- Stop
- Cooperative cancellation check.
- Storage
Sample - Full re-export of
zenpixelscore types (zero module name collisions!). Sealed trait implemented by the 11 native sample types stored inPixelStorage. - Typed
Element - Full re-export of
zenpixelscore types (zero module name collisions!). Sealed marker trait for Rust scalar, channel-array, or pixel types that carry a knownSampleLayoutcompatibility contract.
Functions§
- color_
primaries_ name - Full re-export of
zenpixelscore types (zero module name collisions!). Human-readable ITU-T H.273 Table 2ColourPrimarieslabel. - full_
range_ grid_ nests - Full re-export of
zenpixelscore types (zero module name collisions!). Whether the full-rangesrc_bitsinteger code grid embeds exact inside thedst_bitsfull-range grid (2^src_bits - 1divides2^dst_bits - 1, iffsrc_bitsdividesdst_bits). - matrix_
coefficients_ name - Full re-export of
zenpixelscore types (zero module name collisions!). Human-readable ITU-T H.273 Table 4MatrixCoefficientslabel. - narrow_
range_ grid_ nests - Full re-export of
zenpixelscore types (zero module name collisions!). Whether the narrow-rangesrc_bitsinteger code grid embeds exact inside thedst_bitsnarrow-range grid (power-of-two scaling requiressrc_bits >= 8anddst_bits >= src_bits). - transfer_
characteristics_ name - Full re-export of
zenpixelscore types (zero module name collisions!). Human-readable ITU-T H.273 Table 3TransferCharacteristicslabel. - validate_
icc_ structure - Full re-export of
zenpixelscore types (zero module name collisions!). Validate an ICC profile’s structural framing per ISO 15076-1 / ICC.1: