OutputFormatExt

Trait OutputFormatExt 

Source
pub(crate) trait OutputFormatExt {
    // Required methods
    fn encoding_params(&self) -> (&'static str, &'static str, &'static str);
    fn extra_args(&self) -> &'static [&'static str];
    fn has_alpha(&self) -> bool;
    fn supports_eq_filter(&self) -> bool;
}
Available on non-target_family=wasm and crate feature render only.
Expand description

Extension trait providing ffmpeg encoding parameters for OutputFormat.

Required Methods§

Source

fn encoding_params(&self) -> (&'static str, &'static str, &'static str)

Returns (video_codec, pixel_format, file_extension).

Source

fn extra_args(&self) -> &'static [&'static str]

Returns extra codec arguments for ffmpeg.

Source

fn has_alpha(&self) -> bool

Whether this format has an alpha channel.

Source

fn supports_eq_filter(&self) -> bool

Whether the eq video filter is compatible with this format.

Implementors§