Descriptor

Trait Descriptor 

Source
pub trait Descriptor {
    type OutputDemuxer: Demuxer;

    // Required methods
    fn create(&self) -> Self::OutputDemuxer;
    fn describe(&self) -> &Descr;
    fn probe(&self, data: &[u8]) -> u8;
}
Expand description

Used to get a format descriptor and create a new demuxer.

Required Associated Types§

Source

type OutputDemuxer: Demuxer

The specific type of the demuxer.

Required Methods§

Source

fn create(&self) -> Self::OutputDemuxer

Creates a new demuxer for the requested format.

Source

fn describe(&self) -> &Descr

Returns the descriptor of a format.

Source

fn probe(&self, data: &[u8]) -> u8

Returns a score which represents how much the input data are associated to a format.

Implementors§