pub struct Cicp {
pub primaries: Primaries,
pub transfer: TransferFunction,
pub matrix: MatrixCoefficients,
pub full_range: bool,
}Fields§
§primaries: Primaries§transfer: TransferFunction§matrix: MatrixCoefficients§full_range: boolImplementations§
Source§impl Cicp
impl Cicp
Sourcepub const fn srgb() -> Self
pub const fn srgb() -> Self
sRGB: BT.709 primaries, sRGB transfer, BT.709 matrix, full range. This is the encoder’s working color space (full-range BT.709 RGB→YCbCr).
Sourcepub const fn bt2020_pq() -> Self
pub const fn bt2020_pq() -> Self
BT.2020 PQ (HDR10): BT.2020 primaries, PQ transfer, BT.2020 NCL matrix.
pub const fn unspecified() -> Self
Sourcepub fn nclx_payload(&self) -> Vec<u8> ⓘ
pub fn nclx_payload(&self) -> Vec<u8> ⓘ
The nclx payload for a HEIF colr box (without the box header):
color_type (‘nclx’) + the four CICP fields. The full_range_flag occupies
the top bit of the final byte; the low 7 bits are reserved zero.
Trait Implementations§
impl Copy for Cicp
impl Eq for Cicp
impl StructuralPartialEq for Cicp
Auto Trait Implementations§
impl Freeze for Cicp
impl RefUnwindSafe for Cicp
impl Send for Cicp
impl Sync for Cicp
impl Unpin for Cicp
impl UnsafeUnpin for Cicp
impl UnwindSafe for Cicp
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