pub struct MasteringDisplayColourVolume {
pub primaries: [(u16, u16); 3],
pub white_point: (u16, u16),
pub max_luminance: u32,
pub min_luminance: u32,
}Expand description
Mastering Display Colour Volume (SMPTE ST 2086).
Describes the color volume of the mastering display used to author the content. See ISOBMFF § 12.1.5.
Fields§
§primaries: [(u16, u16); 3]Display primaries in CIE 1931 xy chromaticity, encoded as the value × 50000. For example, D65 white (0.3127, 0.3290) encodes as (15635, 16450). Order: [green, blue, red] per SMPTE ST 2086.
white_point: (u16, u16)White point in CIE 1931 xy chromaticity, same encoding as primaries.
max_luminance: u32Maximum luminance of the mastering display in cd/m² × 10000. For example, 1000 cd/m² = 10_000_000.
min_luminance: u32Minimum luminance of the mastering display in cd/m² × 10000. For example, 0.005 cd/m² = 50.
Trait Implementations§
Source§impl Clone for MasteringDisplayColourVolume
impl Clone for MasteringDisplayColourVolume
Source§fn clone(&self) -> MasteringDisplayColourVolume
fn clone(&self) -> MasteringDisplayColourVolume
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 MasteringDisplayColourVolume
impl Debug for MasteringDisplayColourVolume
Source§impl PartialEq for MasteringDisplayColourVolume
impl PartialEq for MasteringDisplayColourVolume
Source§fn eq(&self, other: &MasteringDisplayColourVolume) -> bool
fn eq(&self, other: &MasteringDisplayColourVolume) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MasteringDisplayColourVolume
impl Eq for MasteringDisplayColourVolume
impl StructuralPartialEq for MasteringDisplayColourVolume
Auto Trait Implementations§
impl Freeze for MasteringDisplayColourVolume
impl RefUnwindSafe for MasteringDisplayColourVolume
impl Send for MasteringDisplayColourVolume
impl Sync for MasteringDisplayColourVolume
impl Unpin for MasteringDisplayColourVolume
impl UnwindSafe for MasteringDisplayColourVolume
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