pub struct TargetQuality {Show 22 fields
pub vmaf_res: String,
pub probe_res: Option<(u32, u32)>,
pub vmaf_scaler: String,
pub vmaf_filter: Option<String>,
pub vmaf_threads: usize,
pub model: Option<PathBuf>,
pub probing_rate: usize,
pub probes: u32,
pub target: Option<(f64, f64)>,
pub metric: TargetMetric,
pub min_q: u32,
pub max_q: u32,
pub interp_method: Option<(InterpolationMethod, InterpolationMethod)>,
pub encoder: Encoder,
pub pix_format: FFPixelFormat,
pub temp: String,
pub workers: usize,
pub video_params: Option<Vec<String>>,
pub params_copied: bool,
pub vspipe_args: Vec<String>,
pub probing_vmaf_features: Vec<VmafFeature>,
pub probing_statistic: ProbingStatistic,
}Fields§
§vmaf_res: String§probe_res: Option<(u32, u32)>§vmaf_scaler: String§vmaf_filter: Option<String>§vmaf_threads: usize§model: Option<PathBuf>§probing_rate: usize§probes: u32§target: Option<(f64, f64)>§metric: TargetMetric§min_q: u32§max_q: u32§interp_method: Option<(InterpolationMethod, InterpolationMethod)>§encoder: Encoder§pix_format: FFPixelFormat§temp: String§workers: usize§video_params: Option<Vec<String>>§params_copied: bool§vspipe_args: Vec<String>§probing_vmaf_features: Vec<VmafFeature>§probing_statistic: ProbingStatisticImplementations§
Source§impl TargetQuality
impl TargetQuality
pub fn default(temp_dir: &str, encoder: Encoder) -> Self
pub fn per_shot_target_quality( &self, chunk: &Chunk, worker_id: Option<usize>, plugins: Option<VapoursynthPlugins>, ) -> Result<f32>
pub fn parse_probing_statistic(stat: &str) -> Result<ProbingStatistic>
pub fn parse_target_qp_range(s: &str) -> Result<(f64, f64), String>
pub fn parse_interp_method( s: &str, ) -> Result<(InterpolationMethod, InterpolationMethod)>
pub fn parse_qp_range(s: &str) -> Result<(u32, u32), String>
pub fn parse_probe_res(probe_resolution: &str) -> Result<(u32, u32), String>
pub fn validate_probes(probes: u32) -> Result<(u32, Option<String>), String>
pub fn validate_probing_rate( probing_rate: usize, ) -> Result<(usize, Option<String>), String>
Trait Implementations§
Source§impl Clone for TargetQuality
impl Clone for TargetQuality
Source§fn clone(&self) -> TargetQuality
fn clone(&self) -> TargetQuality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetQuality
impl Debug for TargetQuality
Source§impl<'de> Deserialize<'de> for TargetQuality
impl<'de> Deserialize<'de> for TargetQuality
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TargetQuality
impl RefUnwindSafe for TargetQuality
impl Send for TargetQuality
impl Sync for TargetQuality
impl Unpin for TargetQuality
impl UnwindSafe for TargetQuality
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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