pub struct Codec {
pub id: CodecId,
pub name: &'static str,
pub long_name: &'static str,
pub media_type: MediaType,
pub decoder: Option<DecoderFactory>,
pub encoder: Option<EncoderFactory>,
}Expand description
Static description of a codec and the implementations available for it.
Fields§
§id: CodecId§name: &'static strShort name as used on the command line (h264, opus, …).
long_name: &'static strHuman-readable description (shown by ffmpeg -codecs).
media_type: MediaType§decoder: Option<DecoderFactory>Present if this codec can decode.
encoder: Option<EncoderFactory>Present if this codec can encode.
Implementations§
Source§impl Codec
impl Codec
pub fn can_decode(&self) -> bool
pub fn can_encode(&self) -> bool
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