#[non_exhaustive]pub enum DecodingError {
Show 14 variants
CodeBlockDecodeFailure,
CodeBlockDecodeFailureWithContext(&'static str),
DirectPlanUnsupported(DirectPlanUnsupportedReason),
UnsupportedFeature(&'static str),
TooManyBitplanes,
TooManyCodingPasses,
InvalidBitplaneCount,
InvalidPrecinct,
PacketParseFailure(&'static str),
InvalidProgressionIterator,
UnexpectedEof,
OutputBufferTooSmall,
HostAllocationFailed,
IncompletePlaneStore,
}Expand description
Errors related to decoding operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CodeBlockDecodeFailure
An error occurred while decoding a code-block.
CodeBlockDecodeFailureWithContext(&'static str)
A backend-specific code-block decode failure with user-visible context.
DirectPlanUnsupported(DirectPlanUnsupportedReason)
A direct-plan builder rejected an unsupported image or codestream shape.
UnsupportedFeature(&'static str)
The codestream uses a feature that this decoder does not implement yet.
TooManyBitplanes
Number of bitplanes in a code-block is too large.
TooManyCodingPasses
A code-block contains too many coding passes.
InvalidBitplaneCount
Invalid number of bitplanes in a code-block.
InvalidPrecinct
A precinct was invalid.
PacketParseFailure(&'static str)
A packet header or its declared body could not be parsed completely.
InvalidProgressionIterator
A progression iterator ver invalid.
UnexpectedEof
Unexpected end of data.
OutputBufferTooSmall
Caller-provided output buffer is too small for the decoded image.
HostAllocationFailed
A bounded host decode workspace could not be allocated.
IncompletePlaneStore
Component planes reused without zeroing were not written in full, so samples from a previous image would have reached the output.
Trait Implementations§
Source§impl Clone for DecodingError
impl Clone for DecodingError
impl Copy for DecodingError
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
impl Eq for DecodingError
Source§impl Error for DecodingError
impl Error for DecodingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<DecodingError> for DecodeError
impl From<DecodingError> for DecodeError
Source§fn from(e: DecodingError) -> Self
fn from(e: DecodingError) -> Self
Source§impl PartialEq for DecodingError
impl PartialEq for DecodingError
impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
impl Freeze for DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnsafeUnpin for DecodingError
impl UnwindSafe for DecodingError
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
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> ⓘ
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> ⓘ
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