Skip to main content

Crate hpvca

Crate hpvca 

Source

Structs§

ColorEncoding
CICP-style colour encoding: the primaries + transfer + matrix the image is authored in, plus the sample range. Drives both the HEIF colr (nclx) box and the HEVC VUI signalling.
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.
EncodeConfig
Encoder configuration shared by all entry points.
Metadata
All optional metadata passed to the encoder, threaded through crate::EncodeConfig.
Yuv
Planar YCbCr image

Enums§

BitDepth
ChromaFormat
Chroma subsampling mode.
ColorMetadata
How the output colour space is described in the file. Either an enumerated CICP encoding (compact nclx) or an embedded ICC profile (prof).
EncodeError
MatrixCoefficients
CICP matrix coefficients for RGB→YCbCr (ISO/IEC 23091-2 Table 4).
Orientation
Primaries
CICP colour primaries (ISO/IEC 23091-2 Table 2).
TransferFunction
CICP transfer characteristics (ISO/IEC 23091-2 Table 3).

Functions§

encode_gray8
Encode a packed 8-bit greyscale image to HEIC (monochrome, no chroma).
encode_gray10
Encode a 10-bit greyscale image to HEIC.
encode_gray12
Encode a 12-bit greyscale image to HEIC.
encode_gray_alpha8
Encode a packed 8-bit greyscale + alpha image to HEIC. Alpha is discarded. Use encode_gray_alpha8_with_alpha to preserve it.
encode_gray_alpha8_with_alpha
Encode a packed 8-bit greyscale + alpha image to HEIC with a separate alpha auxiliary image per ISO/IEC 23008-12.
encode_gray_alpha10
Encode a 10-bit greyscale + alpha image to HEIC. Alpha is discarded.
encode_gray_alpha12
Encode a 12-bit greyscale + alpha image to HEIC. Alpha is discarded.
encode_gray_alpha10_with_alpha
Encode a 10-bit greyscale + alpha image to HEIC with a separate alpha auxiliary image.
encode_gray_alpha12_with_alpha
Encode a 12-bit greyscale + alpha image to HEIC with a separate alpha auxiliary image.
encode_rgb8
Encode a packed 8-bit RGB image to HEIC.
encode_rgb10
Encode a 10-bit RGB image to HEIC.
encode_rgb12
Encode a 12-bit RGB image to HEIC.
encode_rgba8
Encode a packed 8-bit RGBA image to HEIC. Alpha is discarded. Use encode_rgba8_with_alpha to preserve it.
encode_rgba8_with_alpha
Encode a packed 8-bit RGBA image to HEIC, writing alpha as a separate monochrome auxiliary image per ISO/IEC 23008-12.
encode_rgba10
Encode a 10-bit RGBA image to HEIC. Alpha is discarded.
encode_rgba12
Encode a 12-bit RGBA image to HEIC. Alpha is discarded.
encode_rgba10_with_alpha
Encode a 10-bit RGBA image to HEIC with a separate alpha auxiliary image.
encode_rgba12_with_alpha
Encode a 12-bit RGBA image to HEIC with a separate alpha auxiliary image.
encode_yuv
Encode pre-converted planar YCbCr directly, skipping the RGB→YCbCr step.