pub enum JpegToHtj2kError {
Jpeg(JpegError),
Unsupported(&'static str),
Grid(String),
Grid97(String),
Accelerator(TranscodeStageError),
Metrics(String),
Validation(&'static str),
Encode(&'static str),
}Expand description
Error returned by the experimental transcode path.
Variants§
Jpeg(JpegError)
JPEG parse or entropy decode failed.
Unsupported(&'static str)
Input is outside the currently implemented experimental slice.
Grid(String)
DCT block grid metadata did not cover the component dimensions.
Grid97(String)
DCT block grid metadata did not cover the component dimensions for the 9/7 path.
Accelerator(TranscodeStageError)
Optional transform acceleration failed.
Metrics(String)
Validation metric inputs were inconsistent.
Validation(&'static str)
Validation encountered an out-of-range or non-finite coefficient.
Encode(&'static str)
Native HTJ2K encode failed.
Trait Implementations§
Source§impl Debug for JpegToHtj2kError
impl Debug for JpegToHtj2kError
Source§impl Display for JpegToHtj2kError
impl Display for JpegToHtj2kError
Source§impl Error for JpegToHtj2kError
impl Error for JpegToHtj2kError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for JpegToHtj2kError
impl RefUnwindSafe for JpegToHtj2kError
impl Send for JpegToHtj2kError
impl Sync for JpegToHtj2kError
impl Unpin for JpegToHtj2kError
impl UnsafeUnpin for JpegToHtj2kError
impl UnwindSafe for JpegToHtj2kError
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> 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