pub struct ProxyCompareEngine { /* private fields */ }Expand description
Engine that compares proxy and original media.
Implementations§
Source§impl ProxyCompareEngine
impl ProxyCompareEngine
Sourcepub fn with_tolerance(tolerance: ComparisonTolerance) -> Self
pub fn with_tolerance(tolerance: ComparisonTolerance) -> Self
Create a comparison engine with custom tolerances.
Sourcepub fn compare(
&self,
proxy: &MediaInfo,
original: &MediaInfo,
) -> ComparisonResult
pub fn compare( &self, proxy: &MediaInfo, original: &MediaInfo, ) -> ComparisonResult
Compare a proxy to its original source.
Sourcepub fn passes_qc(&self, result: &ComparisonResult) -> bool
pub fn passes_qc(&self, result: &ComparisonResult) -> bool
Check whether a comparison result passes all quality gates.
Sourcepub fn compare_batch(
&self,
pairs: &[(MediaInfo, MediaInfo)],
) -> Vec<ComparisonResult>
pub fn compare_batch( &self, pairs: &[(MediaInfo, MediaInfo)], ) -> Vec<ComparisonResult>
Compare a batch of proxy-original pairs and return results.
Sourcepub fn aggregate_stats(results: &[ComparisonResult]) -> ComparisonStats
pub fn aggregate_stats(results: &[ComparisonResult]) -> ComparisonStats
Compute aggregate statistics from a batch of comparison results.
Sourcepub fn group_by_codec(
results: &[ComparisonResult],
) -> HashMap<String, Vec<usize>>
pub fn group_by_codec( results: &[ComparisonResult], ) -> HashMap<String, Vec<usize>>
Group comparison results by codec.
Trait Implementations§
Source§impl Debug for ProxyCompareEngine
impl Debug for ProxyCompareEngine
Auto Trait Implementations§
impl Freeze for ProxyCompareEngine
impl RefUnwindSafe for ProxyCompareEngine
impl Send for ProxyCompareEngine
impl Sync for ProxyCompareEngine
impl Unpin for ProxyCompareEngine
impl UnsafeUnpin for ProxyCompareEngine
impl UnwindSafe for ProxyCompareEngine
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> 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