#[non_exhaustive]pub enum UnsupportedFeature {
ProgressiveJpeg,
ExtendedSequentialJpeg,
ArithmeticCodedJpeg,
LosslessJpeg,
HierarchicalJpeg,
JpegPrecision {
bits: u8,
},
JpegComponentCount {
components: u8,
},
PngNotEnabled,
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).
PngNotEnabled
PNG data was recognised but the png feature is disabled in this build.
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 more