Expand description
HDR metadata passthrough and conversion for the transcode pipeline.
Supports HDR10 (static metadata via SMPTE ST 2086 + CTA-861.3), HLG (Hybrid Log-Gamma, ITU-R BT.2100), and a Dolby Vision profile descriptor. Metadata can be passed through unchanged, converted between compatible transfer-function families, or stripped.
§Transfer function compatibility
HDR10 (PQ/ST2084) <──> HLG (BT.2100) ← approximate inverse-OOTF path
HDR10 ──> SDR (BT.709) ← tone-map; PQ → BT.1886
HLG ──> SDR (BT.709) ← HLG OOTF collapseFull pixel-level tone-mapping is provided by oximedia-hdr; this module
handles the metadata side: mastering-display descriptors, content-light
levels, and transfer-function flags embedded in the bitstream.
Structs§
- Content
Light Level - Content light level metadata (CTA-861.3 MaxCLL / MaxFALL).
- Dolby
Vision Meta - Dolby Vision metadata payload attached to a stream.
- Dolby
Vision Rpu - Dolby Vision RPU (Reference Processing Unit) passthrough handler.
- DvRpu
Passthrough - Manages a stream of Dolby Vision RPUs for passthrough mode.
- Hdr10
Plus Dynamic Meta - HDR10+ dynamic metadata for a single scene or frame.
- HdrMetadata
- Unified HDR metadata attached to a video stream.
- HdrProcessor
- Applies an
HdrPassthroughModeto a sourceHdrMetadatabundle, producing the metadata that should be written to the output stream. - HdrTo
SdrConfig - Configuration for HDR→SDR tonemapping.
- Mastering
Display - Mastering display colour volume (SMPTE ST 2086).
- SdrTo
HdrConfig - Configuration for SDR→HDR inverse tonemapping.
Enums§
- Colour
Primaries - Video colour primaries (H.273 table 2).
- Dolby
Vision Profile - Dolby Vision profile and level.
- HdrError
- Errors that can occur during HDR metadata handling.
- HdrPassthrough
Mode - How HDR metadata should be handled when transcoding.
- Metadata
Repair Action - Metadata repair actions that can be applied automatically.
- Tonemap
Curve - Tonemapping curve type for HDR↔SDR conversion.
- Transfer
Function - Video transfer function (EOTF / OETF).
Functions§
- decode_
cll_ sei - Decodes a 4-byte CTA-861.3 payload back into
ContentLightLevel. - decode_
mastering_ display_ sei - Decodes a 24-byte SMPTE ST 2086 SEI payload back into a
MasteringDisplay. - encode_
cll_ sei - Serialises
ContentLightLevelinto the 4-byte CTA-861.3 payload (MaxCLL u16 BE, MaxFALL u16 BE). - encode_
mastering_ display_ sei - Serialises a
MasteringDisplayinto the 24-byte SMPTE ST 2086 SEI payload format used by HEVC and (via the same layout) AV1 metadata OBUs. - repair_
hdr_ metadata - Attempts to repair common HDR metadata issues in-place.