pub struct MdcvBox {
pub primaries: [(u16, u16); 3],
pub white_point: (u16, u16),
pub max_luminance: u32,
pub min_luminance: u32,
}Expand description
Mastering Display Colour Volume box (mdcv), per ISOBMFF § 12.1.5 / SMPTE ST 2086.
Describes the color volume of the mastering display used to author the content.
This does not describe the content itself — see ClliBox for that.
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§
impl Copy for MdcvBox
impl StructuralPartialEq for MdcvBox
Auto Trait Implementations§
impl Freeze for MdcvBox
impl RefUnwindSafe for MdcvBox
impl Send for MdcvBox
impl Sync for MdcvBox
impl Unpin for MdcvBox
impl UnwindSafe for MdcvBox
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