pub struct Hdr10Metadata {
pub max_cll: u16,
pub max_fall: u16,
pub mastering_display: MasteringDisplay,
}Expand description
HDR10 static metadata (MaxCLL + MaxFALL + mastering display).
Pass to VideoEncoderBuilder::hdr10_metadata (in ff-encode) to embed
HDR10 static metadata in the encoded output using
AV_PKT_DATA_CONTENT_LIGHT_LEVEL and
AV_PKT_DATA_MASTERING_DISPLAY_METADATA packet side data.
Setting this automatically configures the codec context with:
color_primaries = BT.2020color_trc = SMPTE ST 2084 (PQ)colorspace = BT.2020 NCL
Fields§
§max_cll: u16Maximum Content Light Level in nits (e.g. 1000).
max_fall: u16Maximum Frame-Average Light Level in nits (e.g. 400).
mastering_display: MasteringDisplayMastering display colour volume (SMPTE ST 2086).
Trait Implementations§
Source§impl Clone for Hdr10Metadata
impl Clone for Hdr10Metadata
Source§fn clone(&self) -> Hdr10Metadata
fn clone(&self) -> Hdr10Metadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Hdr10Metadata
impl RefUnwindSafe for Hdr10Metadata
impl Send for Hdr10Metadata
impl Sync for Hdr10Metadata
impl Unpin for Hdr10Metadata
impl UnsafeUnpin for Hdr10Metadata
impl UnwindSafe for Hdr10Metadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more