Enum jpeg_encoder::EncodingError [−][src]
pub enum EncodingError {
InvalidAppSegment(u8),
AppSegmentTooLarge(usize),
IccTooLarge(usize),
BadImageData {
length: usize,
required: usize,
},
ZeroImageDimensions {
width: u16,
height: u16,
},
IoError(Error),
Write(String),
}
Expand description
Variants
InvalidAppSegment(u8)
An invalid app segment number has been used
Tuple Fields of InvalidAppSegment
0: u8
AppSegmentTooLarge(usize)
App segment exceeds maximum allowed data length
Tuple Fields of AppSegmentTooLarge
0: usize
IccTooLarge(usize)
Color profile exceeds maximum allowed data length
Tuple Fields of IccTooLarge
0: usize
Image data is too short
Width or height is zero
IoError(Error)
An io error occurred during writing
Tuple Fields of IoError
0: Error
Write(String)
An io error occurred during writing (Should be used in no_std cases instead of IoError)
Tuple Fields of Write
0: String
Trait Implementations
Performs the conversion.