#[repr(C)]
pub enum J_COLOR_SPACE {
Show 17 variants JCS_UNKNOWN = 0, JCS_GRAYSCALE = 1, JCS_RGB = 2, JCS_YCbCr = 3, JCS_CMYK = 4, JCS_YCCK = 5, JCS_EXT_RGB = 6, JCS_EXT_RGBX = 7, JCS_EXT_BGR = 8, JCS_EXT_BGRX = 9, JCS_EXT_XBGR = 10, JCS_EXT_XRGB = 11, JCS_EXT_RGBA = 12, JCS_EXT_BGRA = 13, JCS_EXT_ABGR = 14, JCS_EXT_ARGB = 15, JCS_RGB565 = 16,
}

Variants§

§

JCS_UNKNOWN = 0

error/unspecified

§

JCS_GRAYSCALE = 1

monochrome

§

JCS_RGB = 2

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

§

JCS_YCbCr = 3

Y/Cb/Cr (also known as YUV)

§

JCS_CMYK = 4

C/M/Y/K

§

JCS_YCCK = 5

Y/Cb/Cr/K

§

JCS_EXT_RGB = 6

red/green/blue

§

JCS_EXT_RGBX = 7

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 = 8

blue/green/red

§

JCS_EXT_BGRX = 9

blue/green/red/x

§

JCS_EXT_XBGR = 10

x/blue/green/red

§

JCS_EXT_XRGB = 11

x/red/green/blue

§

JCS_EXT_RGBA = 12

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 = 13

blue/green/red/alpha

§

JCS_EXT_ABGR = 14

alpha/blue/green/red

§

JCS_EXT_ARGB = 15

alpha/red/green/blue

§

JCS_RGB565 = 16

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 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 StructuralPartialEq for J_COLOR_SPACE

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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 T
where 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.