#[repr(C)]pub enum JxlDataType {
Float = 0,
Uint8 = 2,
Uint16 = 3,
Float16 = 5,
}Expand description
Data type for the sample values per channel per pixel.
Variants§
Float = 0
Use 32-bit single-precision floating point values, with range 0.0-1.0
(within gamut, may go outside this range for wide color gamut). Floating
point output, either JxlDataType::Float or JxlDataType::Float16, is recommended
for HDR and wide gamut images when color profile conversion is required.
Uint8 = 2
Use type u8. May clip wide color gamut data.
Uint16 = 3
Use type u16. May clip wide color gamut data.
Float16 = 5
Use 16-bit IEEE 754 half-precision floating point values.
Trait Implementations§
Source§impl Clone for JxlDataType
impl Clone for JxlDataType
Source§fn clone(&self) -> JxlDataType
fn clone(&self) -> JxlDataType
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 JxlDataType
impl Debug for JxlDataType
Source§impl Hash for JxlDataType
impl Hash for JxlDataType
Source§impl PartialEq for JxlDataType
impl PartialEq for JxlDataType
impl Copy for JxlDataType
impl Eq for JxlDataType
impl StructuralPartialEq for JxlDataType
Auto Trait Implementations§
impl Freeze for JxlDataType
impl RefUnwindSafe for JxlDataType
impl Send for JxlDataType
impl Sync for JxlDataType
impl Unpin for JxlDataType
impl UnwindSafe for JxlDataType
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