#[non_exhaustive]pub enum HevcError {
InvalidNalUnit(&'static str),
InvalidBitstream(&'static str),
MissingParameterSet(&'static str),
InvalidParameterSet {
kind: &'static str,
msg: String,
},
CabacError(&'static str),
UnsupportedProfile {
profile: u8,
level: u8,
},
Unsupported(&'static str),
DecodingError(&'static str),
AllocationFailed,
DimensionOverflow,
}Expand description
Errors specific to HEVC decoding
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidNalUnit(&'static str)
Invalid NAL unit
InvalidBitstream(&'static str)
Invalid bitstream
MissingParameterSet(&'static str)
Missing required parameter set
InvalidParameterSet
Invalid parameter set
Fields
CabacError(&'static str)
CABAC decoding error
UnsupportedProfile
Unsupported profile/level
Unsupported(&'static str)
Unsupported feature
DecodingError(&'static str)
Decoding error
AllocationFailed
Memory allocation failed
DimensionOverflow
Dimension overflow (width * height exceeds limits)
Trait Implementations§
Source§impl Error for HevcError
impl Error for HevcError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TryReserveError> for HevcError
impl From<TryReserveError> for HevcError
Source§fn from(_: TryReserveError) -> Self
fn from(_: TryReserveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HevcError
impl RefUnwindSafe for HevcError
impl Send for HevcError
impl Sync for HevcError
impl Unpin for HevcError
impl UnsafeUnpin for HevcError
impl UnwindSafe for HevcError
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
Mutably borrows from an owned value. Read more