#[non_exhaustive]#[repr(u32)]pub enum JxlColorSpace {
JXL_COLOR_SPACE_RGB = 0,
JXL_COLOR_SPACE_GRAY = 1,
JXL_COLOR_SPACE_XYB = 2,
JXL_COLOR_SPACE_UNKNOWN = 3,
}Expand description
Color space of the image data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JXL_COLOR_SPACE_RGB = 0
Tristimulus RGB
JXL_COLOR_SPACE_GRAY = 1
Luminance based, the primaries in @ref JxlColorEncoding must be ignored. This value implies that num_color_channels in @ref JxlBasicInfo is 1, any other value implies num_color_channels is 3.
JXL_COLOR_SPACE_XYB = 2
XYB (opsin) color space
JXL_COLOR_SPACE_UNKNOWN = 3
None of the other table entries describe the color space appropriately
Trait Implementations§
Source§impl Clone for JxlColorSpace
impl Clone for JxlColorSpace
Source§fn clone(&self) -> JxlColorSpace
fn clone(&self) -> JxlColorSpace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JxlColorSpace
impl Debug for JxlColorSpace
Source§impl Hash for JxlColorSpace
impl Hash for JxlColorSpace
Source§impl PartialEq for JxlColorSpace
impl PartialEq for JxlColorSpace
impl Copy for JxlColorSpace
impl Eq for JxlColorSpace
impl StructuralPartialEq for JxlColorSpace
Auto Trait Implementations§
impl Freeze for JxlColorSpace
impl RefUnwindSafe for JxlColorSpace
impl Send for JxlColorSpace
impl Sync for JxlColorSpace
impl Unpin for JxlColorSpace
impl UnsafeUnpin for JxlColorSpace
impl UnwindSafe for JxlColorSpace
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