#[repr(C)]
pub enum J_COLOR_SPACE {
Show 17 variants JCS_UNKNOWN, JCS_GRAYSCALE, JCS_RGB, JCS_YCbCr, JCS_CMYK, JCS_YCCK, JCS_EXT_RGB, JCS_EXT_RGBX, JCS_EXT_BGR, JCS_EXT_BGRX, JCS_EXT_XBGR, JCS_EXT_XRGB, JCS_EXT_RGBA, JCS_EXT_BGRA, JCS_EXT_ABGR, JCS_EXT_ARGB, JCS_RGB565,
}

Variants§

§

JCS_UNKNOWN

error/unspecified

§

JCS_GRAYSCALE

monochrome

§

JCS_RGB

red/green/blue as specified by the RGB_RED, RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE macros

§

JCS_YCbCr

Y/Cb/Cr (also known as YUV)

§

JCS_CMYK

C/M/Y/K

§

JCS_YCCK

Y/Cb/Cr/K

§

JCS_EXT_RGB

red/green/blue

§

JCS_EXT_RGBX

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.

§

JCS_EXT_BGR

blue/green/red

§

JCS_EXT_BGRX

blue/green/red/x

§

JCS_EXT_XBGR

x/blue/green/red

§

JCS_EXT_XRGB

x/red/green/blue

§

JCS_EXT_RGBA

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

§

JCS_EXT_BGRA

blue/green/red/alpha

§

JCS_EXT_ABGR

alpha/blue/green/red

§

JCS_EXT_ARGB

alpha/red/green/blue

§

JCS_RGB565

5-bit red/6-bit green/5-bit blue

Trait Implementations§

source§

impl Clone for J_COLOR_SPACE

source§

fn clone(&self) -> J_COLOR_SPACE

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for J_COLOR_SPACE

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<J_COLOR_SPACE> for J_COLOR_SPACE

source§

fn eq(&self, other: &J_COLOR_SPACE) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for J_COLOR_SPACE

source§

impl Eq for J_COLOR_SPACE

source§

impl StructuralEq for J_COLOR_SPACE

source§

impl StructuralPartialEq for J_COLOR_SPACE

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.