pub struct HdrStaticMeta {
pub mastering: Option<MasteringDisplay>,
pub max_content_light_level: Option<u16>,
pub max_frame_average_light_level: Option<u16>,
}Expand description
HDR10 static metadata as carried by the H.264 / H.265
mastering_display_colour_volume and content_light_level_info SEI
messages: how the content was graded, which a display sink hands to the
driver so the panel maps the highlights the way the colourist saw them.
Each half is independent: a stream may carry either, both, or (then no meta is attached at all) neither. The colour primaries / transfer function / matrix themselves are not here: those are CICP codepoints in the SPS VUI that the decode path already resolves for itself.
Fields§
§mastering: Option<MasteringDisplay>§max_content_light_level: Option<u16>MaxCLL: the brightest single pixel in the stream, cd/m^2.
max_frame_average_light_level: Option<u16>MaxFALL: the brightest frame average in the stream, cd/m^2.
Implementations§
Trait Implementations§
Source§impl Clone for HdrStaticMeta
impl Clone for HdrStaticMeta
Source§fn clone(&self) -> HdrStaticMeta
fn clone(&self) -> HdrStaticMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HdrStaticMeta
Source§impl Debug for HdrStaticMeta
impl Debug for HdrStaticMeta
Source§impl Default for HdrStaticMeta
impl Default for HdrStaticMeta
Source§fn default() -> HdrStaticMeta
fn default() -> HdrStaticMeta
Source§impl FrameMeta for HdrStaticMeta
impl FrameMeta for HdrStaticMeta
Source§fn propagate(&self, _transform: Transform) -> Propagation
fn propagate(&self, _transform: Transform) -> Propagation
A grading description of the content, not of the sample grid: it survives every transform, including a re-encode (the new bitstream describes the same graded picture).
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Source§fn clone_box(&self) -> Box<dyn FrameMeta>
fn clone_box(&self) -> Box<dyn FrameMeta>
copy_func analog. Backs
the copy-on-write of a shared meta when a tee branch mutates it (see
FrameMetaSet::get_mut); each FrameMeta impl is its own concrete
type, so the duplication can only be expressed on the trait.