pub enum ColorInformation {
Nclx {
color_primaries: u16,
transfer_characteristics: u16,
matrix_coefficients: u16,
full_range: bool,
},
IccProfile(Vec<u8>),
}Expand description
Colour information from the colr property box.
Can be either CICP-based (nclx) or an ICC profile (rICC/prof).
See ISOBMFF § 12.1.5.
Variants§
Nclx
CICP-based color information (colour_type = ‘nclx’)
Fields
IccProfile(Vec<u8>)
ICC profile (colour_type = ‘rICC’ or ‘prof’)
Trait Implementations§
Source§impl Clone for ColorInformation
impl Clone for ColorInformation
Source§fn clone(&self) -> ColorInformation
fn clone(&self) -> ColorInformation
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 ColorInformation
impl Debug for ColorInformation
Source§impl PartialEq for ColorInformation
impl PartialEq for ColorInformation
impl Eq for ColorInformation
impl StructuralPartialEq for ColorInformation
Auto Trait Implementations§
impl Freeze for ColorInformation
impl RefUnwindSafe for ColorInformation
impl Send for ColorInformation
impl Sync for ColorInformation
impl Unpin for ColorInformation
impl UnwindSafe for ColorInformation
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