pub struct MasteringDisplay {
pub red_x: f64,
pub red_y: f64,
pub green_x: f64,
pub green_y: f64,
pub blue_x: f64,
pub blue_y: f64,
pub white_x: f64,
pub white_y: f64,
pub max_luminance: f64,
pub min_luminance: f64,
}Expand description
Mastering display colour volume (SMPTE ST 2086).
All chromaticity coordinates are in the range [0, 1]; luminance values are in candelas per square metre (cd/m²).
Fields§
§red_x: f64Red chromaticity x coordinate.
red_y: f64Red chromaticity y coordinate.
green_x: f64Green chromaticity x coordinate.
green_y: f64Green chromaticity y coordinate.
blue_x: f64Blue chromaticity x coordinate.
blue_y: f64Blue chromaticity y coordinate.
white_x: f64White point x coordinate.
white_y: f64White point y coordinate.
max_luminance: f64Maximum display mastering luminance (cd/m²).
min_luminance: f64Minimum display mastering luminance (cd/m²).
Implementations§
Source§impl MasteringDisplay
impl MasteringDisplay
Sourcepub fn p3_d65_1000nit() -> Self
pub fn p3_d65_1000nit() -> Self
Creates a mastering display descriptor for a standard P3 D65 reference monitor (typical HDR10 grade suite, 1000 nit peak).
Sourcepub fn bt2020_4000nit() -> Self
pub fn bt2020_4000nit() -> Self
Creates a mastering display descriptor for BT.2020 at 4000 nit.
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<'de> Deserialize<'de> for MasteringDisplay
impl<'de> Deserialize<'de> for MasteringDisplay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MasteringDisplay
impl PartialEq for MasteringDisplay
Source§impl Serialize for MasteringDisplay
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more