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§
Sourcefn format_identity(&self) -> &str
fn format_identity(&self) -> &str
Observes the identity the extractor gave the format.
Sourcefn format_extension(&self) -> Option<&str>
fn format_extension(&self) -> Option<&str>
Observes the container or file-name extension.
Sourcefn format_streams(&self) -> Option<MediaStreams>
fn format_streams(&self) -> Option<MediaStreams>
Observes the stream roles the format carries, when it carries any.
Sourcefn format_quality(&self) -> Option<&str>
fn format_quality(&self) -> Option<&str>
Observes the quality the extractor named.
Sourcefn format_height(&self) -> Option<u64>
fn format_height(&self) -> Option<u64>
Observes the picture height in pixels.
Sourcefn format_width(&self) -> Option<u64>
fn format_width(&self) -> Option<u64>
Observes the picture width in pixels.
Sourcefn format_bitrate(&self) -> Option<u64>
fn format_bitrate(&self) -> Option<u64>
Observes the stated bits per second.
Sourcefn format_size(&self) -> Option<u64>
fn format_size(&self) -> Option<u64>
Observes the stated byte count of the whole format.
Sourcefn format_codecs(&self) -> Option<&str>
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".