Structs§
- Cicp
- Color
Metadata - How the output color space is described in the file.
- Content
Light Level - 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 theContentLightLevelBox. - Encode
Config - 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
- Chroma
Format - Chroma subsampling mode.
- Encode
Error - Matrix
Coefficients - CICP matrix coefficients for RGB→YCbCr (ISO/IEC 23091-2 Table 4).
- Orientation
- Primaries
- CICP color primaries (ISO/IEC 23091-2 Table 2).
- Transfer
Function - CICP transfer characteristics (ISO/IEC 23091-2 Table 3).
Functions§
- encode_
gray - Encode a packed 8-bit grayscale image to HEIC (monochrome, no chroma).
- encode_
gray10 - Encode a 10-bit grayscale image to HEIC.
- encode_
gray12 - Encode a 12-bit grayscale image to HEIC.
- encode_
gray_ alpha - Encode a packed 8-bit grayscale + alpha image to HEIC. Alpha is discarded.
Use
encode_gray_alpha_with_alphato preserve it. - encode_
gray_ alpha10 - Encode a 10-bit grayscale + alpha image to HEIC. Alpha is discarded.
- encode_
gray_ alpha12 - Encode a 12-bit grayscale + alpha image to HEIC. Alpha is discarded.
- encode_
gray_ alpha10_ with_ alpha - Encode a 10-bit grayscale + alpha image to HEIC with a separate alpha auxiliary image.
- encode_
gray_ alpha12_ with_ alpha - Encode a 12-bit grayscale + alpha image to HEIC with a separate alpha auxiliary image.
- encode_
gray_ alpha_ with_ alpha - Encode a packed 8-bit grayscale + alpha image to HEIC with a separate alpha auxiliary image per ISO/IEC 23008-12.
- encode_
rgb - 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_
rgba - Encode a packed 8-bit RGBA image to HEIC. Alpha is discarded.
Use
encode_rgba_with_alphato preserve it. - 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_
rgba_ 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_
yuv - Encode pre-converted planar YCbCr directly, skipping the RGB→YCbCr step.
- encode_
yuv_ with_ alpha