pub enum Error {
Show 16 variants
NotImplemented,
Unsupported(UnsupportedKind),
Container(ContainerError),
Vp8x(Vp8xError),
Alph(AlphError),
Anim(AnimError),
Anmf(AnmfError),
Build(BuildError),
Lossy(WebpLossyError),
Vp8(DecodeError),
Lossless(WebpLosslessError),
Vp8lTransform(TransformListError),
Vp8lPrefix(PrefixError),
Vp8lMetaPrefix(MetaPrefixError),
Vp8lDecode(DecodeError),
Vp8lEncode(EncodeError),
}Expand description
Crate-local error type.
Variants§
NotImplemented
A code path that has not been wired up yet in this round.
Unsupported(UnsupportedKind)
The file is well-formed but carries an image kind this crate does
not decode yet. Currently this is the §2.5 VP8 lossy
bitstream — routed out via extract_lossy_chunk to a downstream
VP8 decoder rather than decoded here.
Container(ContainerError)
The RIFF/WEBP container walker rejected the input.
Vp8x(Vp8xError)
The §2.7.1 VP8X chunk parser rejected the input.
Alph(AlphError)
The §2.7.1.2 ALPH info-byte parser rejected the input.
Anim(AnimError)
The §2.7.1.1 ANIM payload parser rejected the input.
Anmf(AnmfError)
The §2.7.1.1 ANMF per-frame header parser rejected the input.
Build(BuildError)
The §2.3 / §2.4 / §2.7.1 RIFF/WEBP builders rejected the input.
Lossy(WebpLossyError)
The §2.5 typed VP8 chunk handle rejected the chunk payload.
Vp8(DecodeError)
The §2.5 VP8 lossy bitstream decode (delegated to the
oxideav-vp8 sibling crate) rejected the payload.
Wraps oxideav-vp8’s published oxideav_vp8::DecodeError. (Once
vp8 publishes its Vp8Error umbrella — currently on vp8 master
but not on crates.io — this can widen to that type.)
Lossless(WebpLosslessError)
The §2.6 typed VP8L chunk handle rejected the chunk payload.
Vp8lTransform(TransformListError)
The §4 VP8L transform-list reader rejected the bitstream.
Vp8lPrefix(PrefixError)
The §6.2.1 VP8L prefix-code reader rejected the bitstream.
Vp8lMetaPrefix(MetaPrefixError)
The §5.2.3 / §6.2.2 VP8L meta-prefix header reader rejected the bitstream.
Vp8lDecode(DecodeError)
The §5.2 VP8L per-pixel ARGB decode loop rejected the bitstream.
Vp8lEncode(EncodeError)
The §3.7 / §3.8 VP8L lossless encoder rejected the input.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(e: BuildError) -> Self
fn from(e: BuildError) -> Self
Source§impl From<ContainerError> for Error
impl From<ContainerError> for Error
Source§fn from(e: ContainerError) -> Self
fn from(e: ContainerError) -> Self
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Source§impl From<EncodeError> for Error
impl From<EncodeError> for Error
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Source§impl From<Error> for Error
Bridge crate-local errors to the framework-wide oxideav_core::Error
so trait impls can use ? on the framework-free decode path.
impl From<Error> for Error
Bridge crate-local errors to the framework-wide oxideav_core::Error
so trait impls can use ? on the framework-free decode path.
Error::Unsupported(LossyVp8) and Error::Unsupported(NoImageData)
both map to oxideav_core::Error::Unsupported(...). Every other
variant carries diagnostic text already built by the originating
sub-module’s Display impl — it’s surfaced verbatim via
Error::InvalidData(...).
Source§impl From<Error> for WebpError
impl From<Error> for WebpError
Unsupported / NotImplemented collapse to WebpError::Unsupported;
every other variant (a malformed container or a sub-decoder rejecting
the bitstream) is WebpError::InvalidData.