pub struct LadderOptimizer {
pub vmaf_equivalence_threshold: f32,
pub vmaf_gap_threshold: f32,
}Expand description
Optimises a LadderSpec by removing VMAF-equivalent rungs and inserting
intermediate rungs where VMAF gaps are too large.
Fields§
§vmaf_equivalence_threshold: f32Rungs closer than this many VMAF points are considered equivalent.
vmaf_gap_threshold: f32A gap larger than this triggers insertion of an intermediate rung.
Implementations§
Source§impl LadderOptimizer
impl LadderOptimizer
Sourcepub fn with_thresholds(equivalence: f32, gap: f32) -> Self
pub fn with_thresholds(equivalence: f32, gap: f32) -> Self
Creates an optimizer with custom thresholds.
Sourcepub fn optimize(&self, spec: LadderSpec) -> LadderSpec
pub fn optimize(&self, spec: LadderSpec) -> LadderSpec
Optimises spec in-place: removes near-equivalent rungs, adds
intermediate rungs for large VMAF gaps.
Sourcepub fn optimize_full(&self, spec: LadderSpec) -> LadderSpec
pub fn optimize_full(&self, spec: LadderSpec) -> LadderSpec
Optimise with full equivalent-rung removal (non-broken version).
Trait Implementations§
Source§impl Clone for LadderOptimizer
impl Clone for LadderOptimizer
Source§fn clone(&self) -> LadderOptimizer
fn clone(&self) -> LadderOptimizer
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 LadderOptimizer
impl Debug for LadderOptimizer
Auto Trait Implementations§
impl Freeze for LadderOptimizer
impl RefUnwindSafe for LadderOptimizer
impl Send for LadderOptimizer
impl Sync for LadderOptimizer
impl Unpin for LadderOptimizer
impl UnsafeUnpin for LadderOptimizer
impl UnwindSafe for LadderOptimizer
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