pub struct MasteringDisplay {
pub primaries_xy: [[f32; 2]; 3],
pub white_point_xy: [f32; 2],
pub max_luminance: f32,
pub min_luminance: f32,
}Expand description
Mastering display color volume metadata (SMPTE ST 2086).
Describes the display on which the content was mastered, enabling downstream displays to reproduce the creator’s intent.
Fields§
§primaries_xy: [[f32; 2]; 3]RGB primaries of the mastering display in CIE 1931 xy coordinates.
[[rx, ry], [gx, gy], [bx, by]].
white_point_xy: [f32; 2]White point in CIE 1931 xy coordinates [wx, wy].
max_luminance: f32Maximum display luminance in cd/m².
min_luminance: f32Minimum display luminance in cd/m².
Implementations§
Source§impl MasteringDisplay
impl MasteringDisplay
Sourcepub const HDR10_REFERENCE: MasteringDisplay
pub const HDR10_REFERENCE: MasteringDisplay
BT.2020 primaries with D65 white point, 10000 nits peak (HDR10 reference).
Sourcepub const DISPLAY_P3_1000: MasteringDisplay
pub const DISPLAY_P3_1000: MasteringDisplay
Display P3 primaries with D65 white point, 1000 nits.
Trait Implementations§
Source§impl Clone for MasteringDisplay
impl Clone for MasteringDisplay
Source§fn clone(&self) -> MasteringDisplay
fn clone(&self) -> MasteringDisplay
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 MasteringDisplay
impl Debug for MasteringDisplay
Source§impl Default for MasteringDisplay
impl Default for MasteringDisplay
Source§fn default() -> MasteringDisplay
fn default() -> MasteringDisplay
Returns the “default value” for a type. Read more
Source§impl PartialEq for MasteringDisplay
impl PartialEq for MasteringDisplay
impl Copy for MasteringDisplay
impl StructuralPartialEq for MasteringDisplay
Auto Trait Implementations§
impl Freeze for MasteringDisplay
impl RefUnwindSafe for MasteringDisplay
impl Send for MasteringDisplay
impl Sync for MasteringDisplay
impl Unpin for MasteringDisplay
impl UnsafeUnpin for MasteringDisplay
impl UnwindSafe for MasteringDisplay
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