pub struct ColorMatrix {
pub matrix: [[i32; 3]; 3],
}Expand description
Color transformation matrix (3x3).
Fields§
§matrix: [[i32; 3]; 3]Matrix coefficients [row][col]
Implementations§
Source§impl ColorMatrix
impl ColorMatrix
Sourcepub const fn bt2020_ycbcr_to_rgb() -> Self
pub const fn bt2020_ycbcr_to_rgb() -> Self
BT.2020 YCbCr to RGB matrix (scaled by 2^14).
Sourcepub const fn bt709_ycbcr_to_rgb() -> Self
pub const fn bt709_ycbcr_to_rgb() -> Self
BT.709 YCbCr to RGB matrix (scaled by 2^14).
Sourcepub const fn bt2020_rgb_to_lms() -> Self
pub const fn bt2020_rgb_to_lms() -> Self
BT.2020 RGB to LMS matrix (IPT color space, scaled by 2^14).
Trait Implementations§
Source§impl Clone for ColorMatrix
impl Clone for ColorMatrix
Source§fn clone(&self) -> ColorMatrix
fn clone(&self) -> ColorMatrix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColorMatrix
impl Debug for ColorMatrix
Source§impl Default for ColorMatrix
impl Default for ColorMatrix
impl Copy for ColorMatrix
Auto Trait Implementations§
impl Freeze for ColorMatrix
impl RefUnwindSafe for ColorMatrix
impl Send for ColorMatrix
impl Sync for ColorMatrix
impl Unpin for ColorMatrix
impl UnsafeUnpin for ColorMatrix
impl UnwindSafe for ColorMatrix
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