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§
source§impl Clone for ColorTransform
impl Clone for ColorTransform
source§fn clone(&self) -> ColorTransform
fn clone(&self) -> ColorTransform
Returns a copy of the value. Read more
1.0.0 · 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 ColorTransform
impl Debug for ColorTransform
source§impl Hash for ColorTransform
impl Hash for ColorTransform
source§impl PartialEq for ColorTransform
impl PartialEq for ColorTransform
impl Copy for ColorTransform
impl Eq for ColorTransform
impl StructuralPartialEq for ColorTransform
Auto Trait Implementations§
impl Freeze for ColorTransform
impl RefUnwindSafe for ColorTransform
impl Send for ColorTransform
impl Sync for ColorTransform
impl Unpin for ColorTransform
impl UnwindSafe for ColorTransform
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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