Enum mozjpeg_sys::J_COLOR_SPACE [−][src]
Variants
error/unspecified
monochrome
red/green/blue as specified by the RGB_RED, RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE macros
Y/Cb/Cr (also known as YUV)
C/M/Y/K
Y/Cb/Cr/K
red/green/blue
red/green/blue/x When out_color_space it set to JCS_EXT_RGBX, JCS_EXT_BGRX, JCS_EXT_XBGR, or JCS_EXT_XRGB during decompression, the X byte is undefined, and in order to ensure the best performance, libjpeg-turbo can set that byte to whatever value it wishes.
blue/green/red
blue/green/red/x
x/blue/green/red
x/red/green/blue
Use the following colorspace constants to ensure that the X byte is set to 0xFF, so that it can be interpreted as an opaque alpha channel.
red/green/blue/alpha
blue/green/red/alpha
alpha/blue/green/red
alpha/red/green/blue
5-bit red/6-bit green/5-bit blue
Trait Implementations
impl Clone for J_COLOR_SPACE
[src]
fn clone(&self) -> J_COLOR_SPACE
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for J_COLOR_SPACE
[src]
impl Debug for J_COLOR_SPACE
[src]
impl Eq for J_COLOR_SPACE
[src]
impl PartialEq<J_COLOR_SPACE> for J_COLOR_SPACE
[src]
fn eq(&self, other: &J_COLOR_SPACE) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for J_COLOR_SPACE
[src]
impl StructuralPartialEq for J_COLOR_SPACE
[src]
Auto Trait Implementations
impl RefUnwindSafe for J_COLOR_SPACE
impl Send for J_COLOR_SPACE
impl Sync for J_COLOR_SPACE
impl Unpin for J_COLOR_SPACE
impl UnwindSafe for J_COLOR_SPACE
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,