Enum mozjpeg_sys::J_COLOR_SPACE[][src]

#[repr(C)]
pub enum J_COLOR_SPACE {
Show 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
Expand description

error/unspecified

JCS_GRAYSCALE
Expand description

monochrome

JCS_RGB
Expand description

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

JCS_YCbCr
Expand description

Y/Cb/Cr (also known as YUV)

JCS_CMYK
Expand description

C/M/Y/K

JCS_YCCK
Expand description

Y/Cb/Cr/K

JCS_EXT_RGB
Expand description

red/green/blue

JCS_EXT_RGBX
Expand description

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
Expand description

blue/green/red

JCS_EXT_BGRX
Expand description

blue/green/red/x

JCS_EXT_XBGR
Expand description

x/blue/green/red

JCS_EXT_XRGB
Expand description

x/red/green/blue

JCS_EXT_RGBA
Expand description

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
Expand description

blue/green/red/alpha

JCS_EXT_ABGR
Expand description

alpha/blue/green/red

JCS_EXT_ARGB
Expand description

alpha/red/green/blue

JCS_RGB565
Expand description

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]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for J_COLOR_SPACE[src]

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

Formats the value using the given formatter. Read more

impl PartialEq<J_COLOR_SPACE> for J_COLOR_SPACE[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for J_COLOR_SPACE[src]

impl Eq for J_COLOR_SPACE[src]

impl StructuralEq for J_COLOR_SPACE[src]

impl StructuralPartialEq for J_COLOR_SPACE[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.