#[repr(i32)]pub enum OPJ_COLOR_SPACE {
OPJ_CLRSPC_UNKNOWN = -1,
OPJ_CLRSPC_UNSPECIFIED = 0,
OPJ_CLRSPC_SRGB = 1,
OPJ_CLRSPC_GRAY = 2,
OPJ_CLRSPC_SYCC = 3,
OPJ_CLRSPC_EYCC = 4,
OPJ_CLRSPC_CMYK = 5,
}Expand description
Supported image color spaces
Variants§
OPJ_CLRSPC_UNKNOWN = -1
< not supported by the library
OPJ_CLRSPC_UNSPECIFIED = 0
< not specified in the codestream
OPJ_CLRSPC_SRGB = 1
< sRGB
OPJ_CLRSPC_GRAY = 2
< grayscale
OPJ_CLRSPC_SYCC = 3
< YUV
OPJ_CLRSPC_EYCC = 4
< e-YCC
OPJ_CLRSPC_CMYK = 5
< CMYK
Trait Implementations§
Source§impl Clone for COLOR_SPACE
impl Clone for COLOR_SPACE
Source§fn clone(&self) -> COLOR_SPACE
fn clone(&self) -> COLOR_SPACE
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for COLOR_SPACE
Source§impl Debug for COLOR_SPACE
impl Debug for COLOR_SPACE
Source§impl Default for COLOR_SPACE
impl Default for COLOR_SPACE
Source§fn default() -> COLOR_SPACE
fn default() -> COLOR_SPACE
Returns the “default value” for a type. Read more
impl Eq for COLOR_SPACE
Source§impl From<COLOR_SPACE> for ColorSpace
impl From<COLOR_SPACE> for ColorSpace
Source§fn from(cs: COLOR_SPACE) -> ColorSpace
fn from(cs: COLOR_SPACE) -> ColorSpace
Converts to this type from the input type.
Source§impl From<ColorSpace> for COLOR_SPACE
impl From<ColorSpace> for COLOR_SPACE
Source§fn from(cs: ColorSpace) -> COLOR_SPACE
fn from(cs: ColorSpace) -> COLOR_SPACE
Converts to this type from the input type.
Source§impl Hash for COLOR_SPACE
impl Hash for COLOR_SPACE
Source§impl PartialEq for COLOR_SPACE
impl PartialEq for COLOR_SPACE
impl StructuralPartialEq for COLOR_SPACE
Auto Trait Implementations§
impl Forget for COLOR_SPACE
impl Freeze for COLOR_SPACE
impl Move for COLOR_SPACE
impl RefUnwindSafe for COLOR_SPACE
impl Send for COLOR_SPACE
impl Sync for COLOR_SPACE
impl Unpin for COLOR_SPACE
impl UnsafeUnpin for COLOR_SPACE
impl UnwindSafe for COLOR_SPACE
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§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