#[non_exhaustive]pub enum AvcPacketType {
SequenceHeader,
Nalu,
EndOfSequence,
Unknown(u8),
}Expand description
AVCPacketType of an AVC AVCVIDEOPACKET (§E.4.3.2).
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.
SequenceHeader
0: AVC sequence header — the AVCDecoderConfigurationRecord (avcC).
Nalu
1: AVC NALU — one or more length-prefixed NAL units.
EndOfSequence
2: AVC end of sequence (the body carries no data).
Unknown(u8)
3 or above: outside the table, carried as written.
Implementations§
Trait Implementations§
Source§impl Clone for AvcPacketType
impl Clone for AvcPacketType
impl Copy for AvcPacketType
Source§impl Debug for AvcPacketType
impl Debug for AvcPacketType
Source§impl<'de> Deserialize<'de> for AvcPacketType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AvcPacketType
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AvcPacketType
impl Display for AvcPacketType
impl Eq for AvcPacketType
Source§impl Hash for AvcPacketType
impl Hash for AvcPacketType
Source§impl PartialEq for AvcPacketType
impl PartialEq for AvcPacketType
Source§impl Serialize for AvcPacketType
Available on crate feature serde only.
impl Serialize for AvcPacketType
Available on crate feature
serde only.impl StructuralPartialEq for AvcPacketType
Auto Trait Implementations§
impl Forget for AvcPacketType
impl Freeze for AvcPacketType
impl Move for AvcPacketType
impl RefUnwindSafe for AvcPacketType
impl Send for AvcPacketType
impl Sync for AvcPacketType
impl Unpin for AvcPacketType
impl UnsafeUnpin for AvcPacketType
impl UnwindSafe for AvcPacketType
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