pub struct SkipDetector { /* private fields */ }Expand description
Skip detection for inter prediction.
Implementations§
Source§impl SkipDetector
impl SkipDetector
Sourcepub const fn with_mv_weight(self, weight: f32) -> Self
pub const fn with_mv_weight(self, weight: f32) -> Self
Sets the MV cost weight.
Sourcepub fn can_skip(
&self,
block_match: &BlockMatch,
predicted_mv: &MotionVector,
) -> bool
pub fn can_skip( &self, block_match: &BlockMatch, predicted_mv: &MotionVector, ) -> bool
Checks if a block can be skipped.
Sourcepub fn evaluate_skip(
&self,
block_match: &BlockMatch,
predicted_mv: &MotionVector,
mv_cost: &MvCost,
) -> Option<PartitionDecision>
pub fn evaluate_skip( &self, block_match: &BlockMatch, predicted_mv: &MotionVector, mv_cost: &MvCost, ) -> Option<PartitionDecision>
Evaluates skip mode cost.
Trait Implementations§
Source§impl Clone for SkipDetector
impl Clone for SkipDetector
Source§fn clone(&self) -> SkipDetector
fn clone(&self) -> SkipDetector
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 SkipDetector
impl Debug for SkipDetector
Source§impl Default for SkipDetector
impl Default for SkipDetector
Source§fn default() -> SkipDetector
fn default() -> SkipDetector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkipDetector
impl RefUnwindSafe for SkipDetector
impl Send for SkipDetector
impl Sync for SkipDetector
impl Unpin for SkipDetector
impl UnsafeUnpin for SkipDetector
impl UnwindSafe for SkipDetector
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