#[non_exhaustive]pub enum UnsupportedFeature {
ProgressiveJpeg,
ExtendedSequentialJpeg,
ArithmeticCodedJpeg,
LosslessJpeg,
HierarchicalJpeg,
JpegPrecision {
bits: u8,
},
JpegComponentCount {
components: u8,
},
JpegChromaSubsampling,
}Expand description
A specific image-format feature that the codec does not implement.
Carried by CodecError::Unsupported. Use this to distinguish “the byte
string is well-formed but uses a feature we don’t decode” from “the byte
string is corrupt” (CodecError::InvalidData).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProgressiveJpeg
JPEG SOF2 (progressive baseline).
ExtendedSequentialJpeg
JPEG SOF1 (extended sequential, Huffman coded).
ArithmeticCodedJpeg
JPEG SOF9/SOF10/SOF11/SOF13/SOF14/SOF15 (arithmetic coding, in all sequential/progressive/lossless/hierarchical flavours).
LosslessJpeg
JPEG SOF3 (lossless predictive).
HierarchicalJpeg
JPEG SOF5/SOF6/SOF7 (hierarchical).
JpegPrecision
JPEG sample precision other than 8 bits per channel.
JpegComponentCount
JPEG with a component count we do not handle (anything other than 1 for greyscale or 3 for YCbCr).
JpegChromaSubsampling
JPEG chroma subsampling configuration where a chroma component is sampled at a higher rate than luma along some axis (rejected so the downstream upsampler does not divide by zero).
Trait Implementations§
Source§impl Clone for UnsupportedFeature
impl Clone for UnsupportedFeature
Source§fn clone(&self) -> UnsupportedFeature
fn clone(&self) -> UnsupportedFeature
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnsupportedFeature
impl Debug for UnsupportedFeature
Source§impl Display for UnsupportedFeature
impl Display for UnsupportedFeature
Source§impl PartialEq for UnsupportedFeature
impl PartialEq for UnsupportedFeature
Source§fn eq(&self, other: &UnsupportedFeature) -> bool
fn eq(&self, other: &UnsupportedFeature) -> bool
self and other values to be equal, and is used by ==.impl Eq for UnsupportedFeature
impl StructuralPartialEq for UnsupportedFeature
Auto Trait Implementations§
impl Freeze for UnsupportedFeature
impl RefUnwindSafe for UnsupportedFeature
impl Send for UnsupportedFeature
impl Sync for UnsupportedFeature
impl Unpin for UnsupportedFeature
impl UnsafeUnpin for UnsupportedFeature
impl UnwindSafe for UnsupportedFeature
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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