[][src]Trait av_codec::common::CodecList

pub trait CodecList: Sized {
    type D: ?Sized;
    pub fn new() -> Self;
pub fn by_name(&self, name: &str) -> Option<&'static Self::D>;
pub fn append(&mut self, desc: &'static Self::D); pub fn from_list(descs: &[&'static Self::D]) -> Self { ... } }

Defines a series of methods to interact with a list of codec descriptors.

Associated Types

type D: ?Sized[src]

The type of the structure used to describe a codec.

Loading content...

Required methods

pub fn new() -> Self[src]

Creates a new codec list.

pub fn by_name(&self, name: &str) -> Option<&'static Self::D>[src]

Search by name whether a codec descriptor is in the codec list and returns it.

If the requested codec descriptor is not in the list, None is returned.

pub fn append(&mut self, desc: &'static Self::D)[src]

Appends a codec to the list.

Loading content...

Provided methods

pub fn from_list(descs: &[&'static Self::D]) -> Self[src]

Creates a new codec list starting from a list of codec descriptors.

Loading content...

Implementors

impl CodecList for av_codec::decoder::Codecs[src]

type D = dyn Descriptor

impl CodecList for av_codec::encoder::Codecs[src]

type D = dyn Descriptor

Loading content...