pub enum Encoder {
aom,
rav1e,
vpx,
svt_av1,
x264,
x265,
}Variants§
Implementations§
Source§impl Encoder
impl Encoder
Sourcepub fn compose_1_1_pass(
self,
params: Vec<String>,
output: String,
) -> Vec<String>
pub fn compose_1_1_pass( self, params: Vec<String>, output: String, ) -> Vec<String>
Composes 1st pass command for 1 pass encoding
Sourcepub fn compose_1_2_pass(self, params: Vec<String>, fpf: &str) -> Vec<String>
pub fn compose_1_2_pass(self, params: Vec<String>, fpf: &str) -> Vec<String>
Composes 1st pass command for 2 pass encoding
Sourcepub fn compose_2_2_pass(
self,
params: Vec<String>,
fpf: &str,
output: String,
) -> Vec<String>
pub fn compose_2_2_pass( self, params: Vec<String>, fpf: &str, output: String, ) -> Vec<String>
Composes 2st pass command for 2 pass encoding
Sourcepub fn get_default_arguments(self, (cols, rows): (u32, u32)) -> Vec<String>
pub fn get_default_arguments(self, (cols, rows): (u32, u32)) -> Vec<String>
Returns default settings for the encoder
Sourcepub const fn get_default_pass(self) -> u8
pub const fn get_default_pass(self) -> u8
Return number of default passes for encoder
Sourcepub const fn get_default_cq_range(self) -> (usize, usize)
pub const fn get_default_cq_range(self) -> (usize, usize)
Default quantizer range target quality mode
Sourcepub fn get_cq_relative_percentage(self, quantizer: usize) -> f64
pub fn get_cq_relative_percentage(self, quantizer: usize) -> f64
Returns quantizer percentage (0-1) relative to entire range for encoder
Sourcepub const fn help_command(self) -> [&'static str; 2]
pub const fn help_command(self) -> [&'static str; 2]
Returns help command for encoder
Sourcepub fn version_text(self) -> Option<String>
pub fn version_text(self) -> Option<String>
Returns version text for encoder, or None if encoder is not available in PATH
Sourcepub const fn format(self) -> &'static str
pub const fn format(self) -> &'static str
Get the name of the video format associated with the encoder
Sourcepub const fn output_extension(&self) -> &'static str
pub const fn output_extension(&self) -> &'static str
Get the default output extension for the encoder
Sourcepub fn man_command(self, params: Vec<String>, q: f32) -> Vec<String>
pub fn man_command(self, params: Vec<String>, q: f32) -> Vec<String>
Returns changed q/crf in command line arguments
Sourcepub fn construct_target_quality_command(
self,
threads: usize,
q: f32,
) -> Vec<Cow<'static, str>>
pub fn construct_target_quality_command( self, threads: usize, q: f32, ) -> Vec<Cow<'static, str>>
Returns command used for target quality probing
Sourcepub fn construct_target_quality_command_probe_slow(
self,
q: f32,
) -> Vec<Cow<'static, str>>
pub fn construct_target_quality_command_probe_slow( self, q: f32, ) -> Vec<Cow<'static, str>>
Returns command used for target quality probing (slow, correctness focused version)
Sourcepub fn remove_patterns(args: &mut Vec<String>, patterns: &[&str])
pub fn remove_patterns(args: &mut Vec<String>, patterns: &[&str])
Function remove_patterns that takes in args and patterns and removes
all instances of the patterns from the args.
Sourcepub fn probe_cmd(
self,
temp: String,
chunk_index: usize,
q: f32,
pix_fmt: FFPixelFormat,
probing_rate: usize,
vmaf_threads: usize,
custom_video_params: Option<Vec<String>>,
) -> (Option<Vec<String>>, Vec<Cow<'static, str>>)
pub fn probe_cmd( self, temp: String, chunk_index: usize, q: f32, pix_fmt: FFPixelFormat, probing_rate: usize, vmaf_threads: usize, custom_video_params: Option<Vec<String>>, ) -> (Option<Vec<String>>, Vec<Cow<'static, str>>)
Constructs tuple of commands for target quality probing
pub fn get_format_bit_depth( self, format: FFPixelFormat, ) -> Result<usize, UnsupportedPixelFormatError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Encoder
impl<'de> Deserialize<'de> for Encoder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for Encoder
impl Eq for Encoder
impl StructuralPartialEq for Encoder
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more