pub enum VideoCodec {
Unspecified,
Vp8,
Vp9Profile0Level10Bit8,
Mock,
}Expand description
An enumeration of the supported video codecs. Names include profile/level details for scalability.
Variants§
Unspecified
Unspecified codec - skip decoding.
Vp8
VP8 codec - no profile variants.
Vp9Profile0Level10Bit8
VP9 Profile 0, Level 1.0, 8-bit (vp09.00.10.08).
Mock
A mock decoder that does nothing, for testing and simulation.
Implementations§
Source§impl VideoCodec
impl VideoCodec
Sourcepub fn as_webcodecs_str(&self) -> Option<&'static str>
pub fn as_webcodecs_str(&self) -> Option<&'static str>
Returns the WebCodecs codec string for this codec, or None for Unspecified.
Trait Implementations§
Source§impl Clone for VideoCodec
impl Clone for VideoCodec
Source§fn clone(&self) -> VideoCodec
fn clone(&self) -> VideoCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoCodec
impl Debug for VideoCodec
Source§impl PartialEq for VideoCodec
impl PartialEq for VideoCodec
impl Copy for VideoCodec
impl Eq for VideoCodec
impl StructuralPartialEq for VideoCodec
Auto Trait Implementations§
impl Freeze for VideoCodec
impl RefUnwindSafe for VideoCodec
impl Send for VideoCodec
impl Sync for VideoCodec
impl Unpin for VideoCodec
impl UnsafeUnpin for VideoCodec
impl UnwindSafe for VideoCodec
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