pub struct MultipassComparison {Show 13 fields
pub reference_label: String,
pub candidate_label: String,
pub ref_avg_qp: f64,
pub cand_avg_qp: f64,
pub ref_qp_std_dev: f64,
pub cand_qp_std_dev: f64,
pub ref_total_bytes: u64,
pub cand_total_bytes: u64,
pub ref_size_std_dev: f64,
pub cand_size_std_dev: f64,
pub candidate_qp_equal_or_better: bool,
pub candidate_qp_more_consistent: bool,
pub candidate_smoother_bitrate: bool,
}Expand description
Result of comparing two encoding passes.
Fields§
§reference_label: StringLabel of the reference (typically single-pass) pass.
candidate_label: StringLabel of the candidate (typically multipass) pass.
ref_avg_qp: f64Average QP of reference pass.
cand_avg_qp: f64Average QP of candidate pass.
ref_qp_std_dev: f64QP std dev of reference pass.
cand_qp_std_dev: f64QP std dev of candidate pass.
ref_total_bytes: u64Total bytes of reference pass.
cand_total_bytes: u64Total bytes of candidate pass.
ref_size_std_dev: f64Frame size std dev of reference.
cand_size_std_dev: f64Frame size std dev of candidate.
candidate_qp_equal_or_better: boolWhether the candidate has equal or better average QP (lower is better).
candidate_qp_more_consistent: boolWhether the candidate has lower or equal QP variance.
candidate_smoother_bitrate: boolWhether the candidate has a smoother bitrate distribution.
Implementations§
Source§impl MultipassComparison
impl MultipassComparison
Sourcepub fn compare(reference: &PassRecorder, candidate: &PassRecorder) -> Self
pub fn compare(reference: &PassRecorder, candidate: &PassRecorder) -> Self
Compare two passes: reference is the baseline (e.g. single-pass),
candidate is the multipass result.
Trait Implementations§
Source§impl Clone for MultipassComparison
impl Clone for MultipassComparison
Source§fn clone(&self) -> MultipassComparison
fn clone(&self) -> MultipassComparison
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 moreAuto Trait Implementations§
impl Freeze for MultipassComparison
impl RefUnwindSafe for MultipassComparison
impl Send for MultipassComparison
impl Sync for MultipassComparison
impl Unpin for MultipassComparison
impl UnsafeUnpin for MultipassComparison
impl UnwindSafe for MultipassComparison
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> 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