pub enum ColourMatrix {
BeforeCurve([[f32; 4]; 3]),
AfterCurve([[f32; 4]; 3]),
}Expand description
Three rows applied to (R, G, B, 1), with negative results clamped to zero. Placement matters: a tone curve is nonlinear, so a colour transform of HDR before the curve is a different operation from a transform after it.
Variants§
BeforeCurve([[f32; 4]; 3])
Transform exposed HDR before forming the tone-table coordinates.
AfterCurve([[f32; 4]; 3])
Transform the tone-table result, before vignette and lookup.
Implementations§
Trait Implementations§
Source§impl Clone for ColourMatrix
impl Clone for ColourMatrix
Source§impl Debug for ColourMatrix
impl Debug for ColourMatrix
Source§impl PartialEq for ColourMatrix
impl PartialEq for ColourMatrix
Source§impl Serialize for ColourMatrix
impl Serialize for ColourMatrix
impl StructuralPartialEq for ColourMatrix
Auto Trait Implementations§
impl Forget for ColourMatrix
impl Freeze for ColourMatrix
impl RefUnwindSafe for ColourMatrix
impl Send for ColourMatrix
impl Sync for ColourMatrix
impl Unpin for ColourMatrix
impl UnsafeUnpin for ColourMatrix
impl UnwindSafe for ColourMatrix
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