pub struct HdrMetadata {
pub red: [f32; 2],
pub green: [f32; 2],
pub blue: [f32; 2],
pub white: [f32; 2],
pub max_luminance: f32,
pub min_luminance: f32,
pub max_cll: f32,
pub max_fall: f32,
}Expand description
Static HDR metadata (SMPTE ST 2086 mastering display + CTA-861.3 content
light levels), as 12 little-endian f32s in this order.
Fields§
§red: [f32; 2]CIE 1931 xy chromaticities of the red, green and blue primaries and the white point.
green: [f32; 2]§blue: [f32; 2]§white: [f32; 2]§max_luminance: f32Mastering display luminance in nits: 0 < max ≤ 10000, 0 ≤ min < max.
min_luminance: f32§max_cll: f32Maximum content / frame-average light level in nits (0 = unknown), ≤ 10000, FALL ≤ CLL.
max_fall: f32Implementations§
Source§impl HdrMetadata
impl HdrMetadata
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HdrMetadata
impl Debug for HdrMetadata
Source§impl Default for HdrMetadata
impl Default for HdrMetadata
Source§fn default() -> HdrMetadata
fn default() -> HdrMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for HdrMetadata
impl PartialEq for HdrMetadata
impl Copy for HdrMetadata
impl StructuralPartialEq for HdrMetadata
Auto Trait Implementations§
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