pub enum JpegToHtj2kError {
Jpeg(JpegError),
Unsupported(&'static str),
Dct53(DctTransformError),
Dct97(DctTransformError),
Accelerator(TranscodeStageError),
MemoryCapExceeded {
requested: usize,
cap: usize,
},
HostAllocationFailed {
bytes: usize,
},
Metrics(MetricsError),
Validation(&'static str),
InternalInvariant {
what: &'static str,
},
Encode(Htj2kEncodeError),
}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.
Dct53(DctTransformError)
The 5/3 DCT-grid transform could not execute.
Dct97(DctTransformError)
The 9/7 DCT-grid transform could not execute.
Accelerator(TranscodeStageError)
Optional transform acceleration failed.
MemoryCapExceeded
The requested transcode workspace exceeds the shared process safety cap.
HostAllocationFailed
The host allocator could not reserve the requested transcode workspace.
Metrics(MetricsError)
Validation metric construction failed.
Validation(&'static str)
Validation encountered an out-of-range or non-finite coefficient.
InternalInvariant
Internal transcode or batch-scheduler state violated an invariant.
Encode(Htj2kEncodeError)
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 !RefUnwindSafe for JpegToHtj2kError
impl !UnwindSafe for JpegToHtj2kError
impl Freeze for JpegToHtj2kError
impl Send for JpegToHtj2kError
impl Sync for JpegToHtj2kError
impl Unpin for JpegToHtj2kError
impl UnsafeUnpin 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