pub struct MasteringDisplay {
pub red_x: u16,
pub red_y: u16,
pub green_x: u16,
pub green_y: u16,
pub blue_x: u16,
pub blue_y: u16,
pub white_x: u16,
pub white_y: u16,
pub min_luminance: u32,
pub max_luminance: u32,
}Expand description
Mastering display colour volume (SMPTE ST 2086).
Chromaticity coordinates use a denominator of 50000 (each value represents
n / 50000 in CIE 1931 xy). Luminance values use a denominator of 10000
(each value represents n / 10000 nits).
§Examples
BT.2020 D65 primaries / 1000 nit peak / 0.005 nit black:
use ff_format::hdr::MasteringDisplay;
let md = MasteringDisplay {
red_x: 17000, red_y: 8500,
green_x: 13250, green_y: 34500,
blue_x: 7500, blue_y: 3000,
white_x: 15635, white_y: 16450,
min_luminance: 50, // 0.005 nits
max_luminance: 10_000_000, // 1000 nits
};Fields§
§red_x: u16Red primary x coordinate (×50000).
red_y: u16Red primary y coordinate (×50000).
green_x: u16Green primary x coordinate (×50000).
green_y: u16Green primary y coordinate (×50000).
blue_x: u16Blue primary x coordinate (×50000).
blue_y: u16Blue primary y coordinate (×50000).
white_x: u16White point x coordinate (×50000).
white_y: u16White point y coordinate (×50000).
min_luminance: u32Minimum display luminance (×10000, in nits).
max_luminance: u32Maximum display luminance (×10000, in 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 moreAuto 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