pub enum Codec {
Show 14 variants
H264,
H265,
Av1,
Vp8,
Vp9,
Aac,
Ac3,
Eac3,
Mp3,
Flac,
Opus,
WebVtt,
Stpp,
Other(String),
}Expand description
The codec carried by a stream. The string in Codec::Other is a
best-effort fourcc/codec id for formats not yet first-classed.
Variants§
H264
H265
Av1
Vp8
Vp9
Aac
Ac3
Eac3
Mp3
Flac
Opus
WebVtt
Stpp
TTML / IMSC 1.0/1.1 timed text (stpp).
Other(String)
Anything else, keyed by its fourcc or registration string.
Implementations§
Trait Implementations§
impl Eq for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Freeze for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin for Codec
impl UnwindSafe for Codec
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