pub struct ColorDescription {
pub primaries: u8,
pub transfer: u8,
pub matrix: u8,
}Expand description
How the colours of a picture are signalled: the colour description of
the sequence header, with the code points of ITU-T H.273, as an AVIF
colr box of type nclx repeats them.
Fields§
§primaries: u8color_primaries: 1 for BT.709 and sRGB.
transfer: u8transfer_characteristics: 13 for sRGB.
matrix: u8matrix_coefficients: 6 for BT.601, 1 for BT.709, 0 for the
identity (planes G, B and R).
Implementations§
Source§impl ColorDescription
impl ColorDescription
Sourcepub const SRGB_BT601: Self
pub const SRGB_BT601: Self
sRGB colours in BT.601 luma and chroma, as Pillow saves AVIF.
Sourcepub const SRGB_IDENTITY: Self
pub const SRGB_IDENTITY: Self
sRGB colours stored as they are, green, blue and red.
Trait Implementations§
Source§impl Clone for ColorDescription
impl Clone for ColorDescription
impl Copy for ColorDescription
Source§impl Debug for ColorDescription
impl Debug for ColorDescription
impl Eq for ColorDescription
Source§impl PartialEq for ColorDescription
impl PartialEq for ColorDescription
impl StructuralPartialEq for ColorDescription
Auto Trait Implementations§
impl Forget for ColorDescription
impl Freeze for ColorDescription
impl Move for ColorDescription
impl RefUnwindSafe for ColorDescription
impl Send for ColorDescription
impl Sync for ColorDescription
impl Unpin for ColorDescription
impl UnsafeUnpin for ColorDescription
impl UnwindSafe for ColorDescription
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