#[non_exhaustive]pub enum Error {
Show 18 variants
SpsTooShort,
SpsParse,
AvccTooShort,
AvccTruncated,
AvccVersion(u8),
MissingParamSets {
name: String,
sps: usize,
pps: usize,
},
SpsTooLarge(usize),
PpsTooLarge(usize),
MissingSps,
TooManySps(usize),
TooManyPps(usize),
NalTooLarge,
NalTooShort,
ForbiddenZeroBit,
NotInitialized,
Avc3TrackNotCreated,
MissingTimestamp,
Annexb(Error),
}Expand description
H.264 parsing and transform errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SpsTooShort
The SPS NAL is shorter than its required header.
SpsParse
The SPS NAL could not be parsed.
AvccTooShort
The AVCDecoderConfigurationRecord is shorter than its required header.
AvccTruncated
The AVCDecoderConfigurationRecord ends before its declared parameter sets.
AvccVersion(u8)
The AVCDecoderConfigurationRecord declares a configurationVersion other than 1.
MissingParamSets
The named avc1 rendition lacks an SPS or PPS in its description.
Fields
SpsTooLarge(usize)
The SPS length does not fit the avcC length field.
PpsTooLarge(usize)
The PPS length does not fit the avcC length field.
MissingSps
No SPS is available to configure the stream.
TooManySps(usize)
The number of SPS NAL units exceeds the avcC limit of 31.
TooManyPps(usize)
The number of PPS NAL units exceeds the avcC limit of 255.
NalTooLarge
The NAL payload length does not fit a four-byte prefix.
NalTooShort
The NAL unit ends before its required header or slice fields.
ForbiddenZeroBit
The NAL header sets the forbidden_zero_bit.
NotInitialized
The stream has not supplied its decoder configuration.
Avc3TrackNotCreated
The avc3 track has not been created.
MissingTimestamp
The access unit has no timestamp.
Annexb(Error)
Parsing or transforming the Annex B stream failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()