pub struct PredictorDiamond { /* private fields */ }Expand description
Predictor-based diamond search.
Uses multiple predictors (spatial/temporal) to initialize search from the most promising starting point.
Implementations§
Source§impl PredictorDiamond
impl PredictorDiamond
Sourcepub const fn max_predictors(self, max: usize) -> Self
pub const fn max_predictors(self, max: usize) -> Self
Sets the maximum number of predictors.
Sourcepub fn search_multi(
&self,
ctx: &SearchContext<'_>,
config: &SearchConfig,
predictors: &[MotionVector],
) -> BlockMatch
pub fn search_multi( &self, ctx: &SearchContext<'_>, config: &SearchConfig, predictors: &[MotionVector], ) -> BlockMatch
Searches with multiple predictors.
Trait Implementations§
Source§impl Clone for PredictorDiamond
impl Clone for PredictorDiamond
Source§fn clone(&self) -> PredictorDiamond
fn clone(&self) -> PredictorDiamond
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 PredictorDiamond
impl Debug for PredictorDiamond
Source§impl Default for PredictorDiamond
impl Default for PredictorDiamond
Source§impl MotionSearch for PredictorDiamond
impl MotionSearch for PredictorDiamond
Source§fn search(&self, ctx: &SearchContext<'_>, config: &SearchConfig) -> BlockMatch
fn search(&self, ctx: &SearchContext<'_>, config: &SearchConfig) -> BlockMatch
Performs motion search and returns the best match.
Source§fn search_with_predictor(
&self,
ctx: &SearchContext<'_>,
config: &SearchConfig,
predictor: MotionVector,
) -> BlockMatch
fn search_with_predictor( &self, ctx: &SearchContext<'_>, config: &SearchConfig, predictor: MotionVector, ) -> BlockMatch
Performs motion search with a starting point prediction.
Auto Trait Implementations§
impl Freeze for PredictorDiamond
impl RefUnwindSafe for PredictorDiamond
impl Send for PredictorDiamond
impl Sync for PredictorDiamond
impl Unpin for PredictorDiamond
impl UnsafeUnpin for PredictorDiamond
impl UnwindSafe for PredictorDiamond
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