CodecSpec

Trait CodecSpec 

Source
pub trait CodecSpec:
    Clone
    + Send
    + Sync
    + 'static {
    type FrameDescriptor: FrameDescriptorSpec;

    // Required methods
    fn media_type() -> MediaType;
    fn codec_type() -> CodecType;
    fn from_parameters(params: &CodecParameters) -> Result<Self>;
    fn configure(&mut self, params: &CodecParameters) -> Result<()>;
    fn configure_with_option(
        &mut self,
        key: &str,
        value: &Variant,
    ) -> Result<()>;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CodecSpec for AudioDecoder

Available on crate feature audio only.
Source§

impl CodecSpec for VideoDecoder

Available on crate feature video only.
Source§

impl CodecSpec for AudioEncoder

Available on crate feature audio only.
Source§

impl CodecSpec for VideoEncoder

Available on crate feature video only.