Enum jpeg_decoder::ColorTransform
source · [−]#[non_exhaustive]
pub enum ColorTransform {
None,
Unknown,
Grayscale,
RGB,
YCbCr,
CMYK,
YCCK,
JcsBgYcc,
JcsBgRgb,
}
Expand description
Describes the colour transform to apply before binary data is returned
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No transform should be applied and the data is returned as-is.
Unknown
Unknown colour transformation
Grayscale
Grayscale transform should be applied (expects 1 channel)
RGB
RGB transform should be applied.
YCbCr
YCbCr transform should be applied.
CMYK
CMYK transform should be applied.
YCCK
YCCK transform should be applied.
JcsBgYcc
big gamut Y/Cb/Cr, bg-sYCC
JcsBgRgb
big gamut red/green/blue, bg-sRGB
Trait Implementations
sourceimpl Clone for ColorTransform
impl Clone for ColorTransform
sourcefn clone(&self) -> ColorTransform
fn clone(&self) -> ColorTransform
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ColorTransform
impl Debug for ColorTransform
sourceimpl Hash for ColorTransform
impl Hash for ColorTransform
sourceimpl PartialEq<ColorTransform> for ColorTransform
impl PartialEq<ColorTransform> for ColorTransform
sourcefn eq(&self, other: &ColorTransform) -> bool
fn eq(&self, other: &ColorTransform) -> bool
impl Copy for ColorTransform
impl Eq for ColorTransform
impl StructuralEq for ColorTransform
impl StructuralPartialEq for ColorTransform
Auto Trait Implementations
impl RefUnwindSafe for ColorTransform
impl Send for ColorTransform
impl Sync for ColorTransform
impl Unpin for ColorTransform
impl UnwindSafe for ColorTransform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more