pub struct HdrMetadata {
pub primaries: [[f64; 2]; 4],
pub max_luminance: f64,
pub min_luminance: f64,
pub max_cll: u32,
pub max_fall: u32,
}Expand description
Static HDR metadata written with an HDR deliverable: the SMPTE ST 2086 mastering display and
the CTA-861.3 content light levels (HEVC SEI, and mdcv / clli in MP4 and MOV).
Fields§
§primaries: [[f64; 2]; 4]Mastering display red, green, blue and white (CIE 1931 xy).
max_luminance: f64Mastering display peak and black, cd/m².
min_luminance: f64§max_cll: u32MaxCLL and MaxFALL, cd/m² (0: unknown).
max_fall: u32Implementations§
Source§impl HdrMetadata
impl HdrMetadata
Sourcepub const P3_D65_1000: HdrMetadata
pub const P3_D65_1000: HdrMetadata
The common HDR10 grading target: a P3-D65 display, 1000 cd/m² peak, 0.0001 black,
MaxCLL 1000 (the encoder can’t measure the content first), MaxFALL 400.
Sourcepub fn with_peak(self, nits: f64) -> HdrMetadata
pub fn with_peak(self, nits: f64) -> HdrMetadata
With a different peak (and MaxCLL capped to it).
Trait Implementations§
Source§impl Clone for HdrMetadata
impl Clone for HdrMetadata
Source§fn clone(&self) -> HdrMetadata
fn clone(&self) -> HdrMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HdrMetadata
Source§impl Debug for HdrMetadata
impl Debug for HdrMetadata
Source§impl PartialEq for HdrMetadata
impl PartialEq for HdrMetadata
impl StructuralPartialEq for HdrMetadata
Auto Trait Implementations§
impl Forget for HdrMetadata
impl Freeze for HdrMetadata
impl RefUnwindSafe for HdrMetadata
impl Send for HdrMetadata
impl Sync for HdrMetadata
impl Unpin for HdrMetadata
impl UnsafeUnpin for HdrMetadata
impl UnwindSafe for HdrMetadata
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