Skip to main content

FormatDescriptionAlg

Trait FormatDescriptionAlg 

Source
pub trait FormatDescriptionAlg {
    // Required methods
    fn format_identity(&self) -> &str;
    fn format_extension(&self) -> Option<&str>;
    fn format_streams(&self) -> Option<MediaStreams>;
    fn format_quality(&self) -> Option<&str>;
    fn format_height(&self) -> Option<u64>;
    fn format_width(&self) -> Option<u64>;
    fn format_bitrate(&self) -> Option<u64>;
    fn format_size(&self) -> Option<u64>;
    fn format_codecs(&self) -> Option<&str>;
}
Expand description

Specifies what one selectable format states where a chooser can read it.

A chooser reads a format to tell it from its alternatives. These are the observations that distinguish them; everything else an extractor stated stays in the extraction.

Required Methods§

Source

fn format_identity(&self) -> &str

Observes the identity the extractor gave the format.

Source

fn format_extension(&self) -> Option<&str>

Observes the container or file-name extension.

Source

fn format_streams(&self) -> Option<MediaStreams>

Observes the stream roles the format carries, when it carries any.

Source

fn format_quality(&self) -> Option<&str>

Observes the quality the extractor named.

Source

fn format_height(&self) -> Option<u64>

Observes the picture height in pixels.

Source

fn format_width(&self) -> Option<u64>

Observes the picture width in pixels.

Source

fn format_bitrate(&self) -> Option<u64>

Observes the stated bits per second.

Source

fn format_size(&self) -> Option<u64>

Observes the stated byte count of the whole format.

Source

fn format_codecs(&self) -> Option<&str>

Observes the codecs the format is encoded with.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§