Skip to main content

Crate hpvcd

Crate hpvcd 

Source

Structs§

Cicp
CICP encoding used for both HEIF colr (nclx) boxes and HEVC VUI.
CleanAperture
Clean aperture (spatial crop) from the ISOBMFF clap property (ISO 14496-12 §12.1.4.2).
ColorMetadata
Combined color metadata from a HEIF item.
ContentLightLevel
HDR content light level (CTA-861.3 / ISOBMFF clli): the maximum content light level (MaxCLL) and maximum frame-average light level (MaxFALL), both in cd/m² (nits). Written as the ContentLightLevelBox.
DecodedImage
A fully decoded HEIF/HEIC image.
DecodedYuv
Raw YCbCr planes from a HEIF/HEIC file; no color conversion applied.
Decoder
A configured, reusable HEIF/HEIC decoder.
ImageInfo
Lightweight, decode-free description of a HEIF/HEIC image.
Metadata
All optional metadata passed to the encoder, threaded through [crate::EncodeConfig].
ParseLimits
Limits enforced while parsing the HEIF container.
PixelAspectRatio
Pixel aspect ratio from the ISOBMFF pasp property (ISO 14496-12 §12.1.4.4).

Enums§

BitDepth
ChromaFormat
Chroma subsampling mode.
DecodeError
ImageBuffer
Pixel buffer returned by crate::decode_heic.
MatrixCoefficients
CICP matrix coefficients for YCbCr ↔ RGB (ISO/IEC 23091-2 Table 4).
Orientation
Primaries
SampleBuf
A typed single-plane sample buffer — u8 for 8-bit, u16 for 10/12-bit.
TransferFunction
CICP transfer characteristics (ISO/IEC 23091-2 Table 3).

Functions§

decode_heic
Decode a HEIF/HEIC file to display-ready pixels using a default Decoder.
decode_heic_rgb8
Decode to 8-bit-per-channel RGB Vec<u8> (always 3 bytes/pixel) using a default Decoder. Monochrome images are expanded to gray RGB. Zero-copy for 8-bit color sources.
decode_heic_yuv
Decode a HEIF/HEIC file and return raw YCbCr planes (no color conversion), using a default Decoder. For a display-ready 8-bit image use decode_heic_rgb8.
read_heic_info
Read image metadata from a HEIF/HEIC file without decoding pixels, using default crate::ParseLimits.
read_heic_info_with_limits
Read image metadata under caller-supplied parse limits.