#[non_exhaustive]pub enum Error {
Show 15 variants
NalTooShort,
NalTooLargeForHvcc(&'static str, usize),
TooManyNals(&'static str, usize),
NalTooLarge,
SpsParse,
MissingLevelIdc,
ForbiddenZeroBit,
NotInitialized,
MissingSps,
MissingTimestamp,
HvccTooShort,
HvccTruncated,
MissingParamSets {
name: String,
vps: usize,
sps: usize,
pps: usize,
},
Annexb(Error),
NoBaseLayerSps,
}Expand description
H.265 parsing and transform errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NalTooShort
The NAL unit ends before its required header or slice fields.
NalTooLargeForHvcc(&'static str, usize)
The named parameter set length exceeds the hvcC length field.
TooManyNals(&'static str, usize)
The number of parameter sets of the named type exceeds the hvcC limit.
NalTooLarge
The NAL payload length does not fit a four-byte prefix.
SpsParse
The SPS NAL could not be parsed.
MissingLevelIdc
The SPS does not declare a level_idc.
ForbiddenZeroBit
The NAL header sets the forbidden_zero_bit.
NotInitialized
The stream has not supplied its decoder configuration.
MissingSps
A frame arrived before the SPS.
MissingTimestamp
The access unit has no timestamp.
HvccTooShort
The HEVCDecoderConfigurationRecord is shorter than its required header.
HvccTruncated
The HEVCDecoderConfigurationRecord ends before its declared parameter sets.
MissingParamSets
The named hvc1 rendition lacks a VPS, SPS, or PPS in its description.
Fields
Annexb(Error)
Parsing or transforming the Annex B stream failed.
NoBaseLayerSps
Every SPS belongs to an enhancement layer (nuh_layer_id > 0); only the base layer imports.
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()