Struct MasteringDisplayColorVolume

pub struct MasteringDisplayColorVolume { pub chromaticities: SourceChromaticities, pub max_luminance: u32, pub min_luminance: u32 }

Mastering Display Color Volume (mDCV) used at the point of content creation, as specified in SMPTE-ST-2086.

See https://www.w3.org/TR/png-3/#mDCV-chunk for more details.

Fields

chromaticities: SourceChromaticities

Mastering display chromaticities.

max_luminance: u32

Mastering display maximum luminance.

The value is expressed in units of 0.0001 cd/m^2 - for example if this field is set to 10000000 then it indicates 1000 cd/m^2.

min_luminance: u32

Mastering display minimum luminance.

The value is expressed in units of 0.0001 cd/m^2 - for example if this field is set to 10000000 then it indicates 1000 cd/m^2.

Trait Implementations

impl Clone for MasteringDisplayColorVolume

fn clone(&self) -> Self

impl Copy for MasteringDisplayColorVolume

impl Debug for MasteringDisplayColorVolume

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for MasteringDisplayColorVolume

impl PartialEq for MasteringDisplayColorVolume

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for MasteringDisplayColorVolume

Auto Trait Implementations

impl Freeze for MasteringDisplayColorVolume

impl RefUnwindSafe for MasteringDisplayColorVolume

impl Send for MasteringDisplayColorVolume

impl Sync for MasteringDisplayColorVolume

impl Unpin for MasteringDisplayColorVolume

impl UnsafeUnpin for MasteringDisplayColorVolume

impl UnwindSafe for MasteringDisplayColorVolume

Blanket Implementations

impl<T> Any for MasteringDisplayColorVolume where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MasteringDisplayColorVolume where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MasteringDisplayColorVolume where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for MasteringDisplayColorVolume where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for MasteringDisplayColorVolume

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for MasteringDisplayColorVolume where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for MasteringDisplayColorVolume where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for MasteringDisplayColorVolume where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for MasteringDisplayColorVolume where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>