#[non_exhaustive]pub enum OutputDataType {
Uint8,
Uint16,
Float32,
}Expand description
Output data type for decoder.
Controls the precision and format of decoded pixel data. jpegli uses float internally for 12-bit precision, so Float32 output preserves the full internal precision without conversion loss.
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.
Uint8
8-bit unsigned integer (0-255), standard JPEG output
Uint16
16-bit unsigned integer (0-65535), scaled from internal precision
Float32
32-bit float (0.0-1.0), preserves full internal precision
Trait Implementations§
Source§impl Clone for OutputDataType
impl Clone for OutputDataType
Source§fn clone(&self) -> OutputDataType
fn clone(&self) -> OutputDataType
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 OutputDataType
impl Debug for OutputDataType
Source§impl Default for OutputDataType
impl Default for OutputDataType
Source§fn default() -> OutputDataType
fn default() -> OutputDataType
Returns the “default value” for a type. Read more
Source§impl Hash for OutputDataType
impl Hash for OutputDataType
Source§impl PartialEq for OutputDataType
impl PartialEq for OutputDataType
impl Copy for OutputDataType
impl Eq for OutputDataType
impl StructuralPartialEq for OutputDataType
Auto Trait Implementations§
impl Freeze for OutputDataType
impl RefUnwindSafe for OutputDataType
impl Send for OutputDataType
impl Sync for OutputDataType
impl Unpin for OutputDataType
impl UnwindSafe for OutputDataType
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