pub enum SrawConversion {
Original {
subtract_512: bool,
},
Matrix,
}Expand description
Colour conversion variant (depends on the camera generation).
Variants§
Original
Early bodies (40D, 1D Mark III era): R = Y + Cr, B = Y + Cb,
G = Y - (778 Cb + 2048 Cr) / 4096; subtract_512 removes the luma offset
of bodies older than the 5D Mark II.
Matrix
5D Mark II, 7D, 50D, 1D Mark IV, 60D: chroma scaled by 4 plus hue, full matrix.
Trait Implementations§
Source§impl Clone for SrawConversion
impl Clone for SrawConversion
impl Copy for SrawConversion
Source§impl Debug for SrawConversion
impl Debug for SrawConversion
impl Eq for SrawConversion
Source§impl PartialEq for SrawConversion
impl PartialEq for SrawConversion
impl StructuralPartialEq for SrawConversion
Auto Trait Implementations§
impl Forget for SrawConversion
impl Freeze for SrawConversion
impl RefUnwindSafe for SrawConversion
impl Send for SrawConversion
impl Sync for SrawConversion
impl Unpin for SrawConversion
impl UnsafeUnpin for SrawConversion
impl UnwindSafe for SrawConversion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more