pub struct MkvColorInfo {
pub bits_per_channel: Option<u8>,
pub chroma_subsampling_horz: Option<u8>,
pub chroma_subsampling_vert: Option<u8>,
pub chroma_siting_horz: Option<u8>,
pub chroma_siting_vert: Option<u8>,
pub max_cll: Option<u32>,
pub max_fall: Option<u32>,
pub mastering: Option<MkvMasteringMetadata>,
}Expand description
Extended MKV colour/mastering metadata parsed from Segment → Tracks → TrackEntry → Video → Colour and its nested MasteringMetadata. The
core H.273-equivalent fields (matrix / primaries / transfer /
full-range) round-trip through StreamInfo.color_metadata on
DemuxResult; this struct exists to carry the rest (bits_per_channel,
chroma siting / subsampling offsets, MaxCLL/MaxFALL, SMPTE-2086
mastering chromaticities) without requiring a breaking extension of
the shared StreamInfo type in the codec crate.
Populated by demux::probe_mkv_color_info for callers that need it
(mux HDR signalling, future SEI passthrough). Returns None for
non-MKV containers and for MKVs with no Colour element.
Fields§
§bits_per_channel: Option<u8>MatroskaElement 0x55B2 — decoded bits per channel (e.g. 10 for HDR10 sources).
chroma_subsampling_horz: Option<u8>MatroskaElement 0x55B3 — Cb/Cr horizontal subsampling ratio.
chroma_subsampling_vert: Option<u8>MatroskaElement 0x55B4 — Cb/Cr vertical subsampling ratio.
chroma_siting_horz: Option<u8>MatroskaElement 0x55B7 — horizontal chroma siting (0=unspecified, 1=left-collocated, 2=half).
chroma_siting_vert: Option<u8>MatroskaElement 0x55B8 — vertical chroma siting.
max_cll: Option<u32>MatroskaElement 0x55BC — MaxCLL in cd/m².
max_fall: Option<u32>MatroskaElement 0x55BD — MaxFALL in cd/m².
mastering: Option<MkvMasteringMetadata>MatroskaElement 0x55D0 nested — SMPTE ST 2086 mastering display primaries + luminance. Emitted when any sub-element is present.
Trait Implementations§
Source§impl Clone for MkvColorInfo
impl Clone for MkvColorInfo
Source§fn clone(&self) -> MkvColorInfo
fn clone(&self) -> MkvColorInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MkvColorInfo
impl Debug for MkvColorInfo
Source§impl Default for MkvColorInfo
impl Default for MkvColorInfo
Source§fn default() -> MkvColorInfo
fn default() -> MkvColorInfo
Source§impl PartialEq for MkvColorInfo
impl PartialEq for MkvColorInfo
Source§fn eq(&self, other: &MkvColorInfo) -> bool
fn eq(&self, other: &MkvColorInfo) -> bool
self and other values to be equal, and is used by ==.