#[non_exhaustive]#[repr(u8)]pub enum CodecId {
Show 14 variants
H264 = 0,
H265 = 1,
VP8 = 2,
VP9 = 3,
AV1 = 4,
VVC = 12,
AAC = 5,
Opus = 6,
G711Alaw = 7,
G711Ulaw = 8,
G722 = 9,
MP3 = 10,
Raw = 11,
Unknown = 255,
}Expand description
Identifies the codec used to encode a media sample.
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.
H264 = 0
H.264 / AVC video.
H265 = 1
H.265 / HEVC video.
VP8 = 2
VP8 video.
VP9 = 3
VP9 video.
AV1 = 4
AV1 video.
VVC = 12
VVC / H.266 video.
AAC = 5
AAC audio.
Opus = 6
Opus audio.
G711Alaw = 7
G.711 A-law audio.
G711Ulaw = 8
G.711 µ-law audio.
G722 = 9
G.722 audio.
MP3 = 10
MP3 audio.
Raw = 11
Raw / passthrough payload (no codec interpretation).
Unknown = 255
Unknown or unspecified codec.
Trait Implementations§
impl Copy for CodecId
Source§impl<'de> Deserialize<'de> for CodecId
impl<'de> Deserialize<'de> for CodecId
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
impl Eq for CodecId
impl StructuralPartialEq for CodecId
Auto Trait Implementations§
impl Freeze for CodecId
impl RefUnwindSafe for CodecId
impl Send for CodecId
impl Sync for CodecId
impl Unpin for CodecId
impl UnsafeUnpin for CodecId
impl UnwindSafe for CodecId
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