CodecConfig

Trait CodecConfig 

Source
pub trait CodecConfig:
    Clone
    + Send
    + Sync
    + 'static {
    // 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 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 CodecConfig for AudioDecoder

Available on crate feature audio only.
Source§

impl CodecConfig for VideoDecoder

Available on crate feature video only.
Source§

impl CodecConfig for AudioEncoder

Available on crate feature audio only.
Source§

impl CodecConfig for VideoEncoder

Available on crate feature video only.