pub struct SpatialPredictor;Expand description
Spatial MV predictor calculator.
Implementations§
Source§impl SpatialPredictor
impl SpatialPredictor
Sourcepub fn get_left(ctx: &MvPredContext) -> Option<MotionVector>
pub fn get_left(ctx: &MvPredContext) -> Option<MotionVector>
Gets the left neighbor MV.
Sourcepub fn get_top(ctx: &MvPredContext) -> Option<MotionVector>
pub fn get_top(ctx: &MvPredContext) -> Option<MotionVector>
Gets the top neighbor MV.
Sourcepub fn get_top_right(ctx: &MvPredContext) -> Option<MotionVector>
pub fn get_top_right(ctx: &MvPredContext) -> Option<MotionVector>
Gets the top-right neighbor MV.
Sourcepub fn get_top_left(ctx: &MvPredContext) -> Option<MotionVector>
pub fn get_top_left(ctx: &MvPredContext) -> Option<MotionVector>
Gets the top-left neighbor MV.
Sourcepub fn median(a: MotionVector, b: MotionVector, c: MotionVector) -> MotionVector
pub fn median(a: MotionVector, b: MotionVector, c: MotionVector) -> MotionVector
Calculates the median predictor from three MVs.
Sourcepub fn calculate_median(ctx: &MvPredContext) -> MotionVector
pub fn calculate_median(ctx: &MvPredContext) -> MotionVector
Calculates the median MVP from spatial neighbors.
Sourcepub fn build_predictors(ctx: &MvPredContext, list: &mut MvPredictorList)
pub fn build_predictors(ctx: &MvPredContext, list: &mut MvPredictorList)
Builds spatial predictor list.
Trait Implementations§
Source§impl Clone for SpatialPredictor
impl Clone for SpatialPredictor
Source§fn clone(&self) -> SpatialPredictor
fn clone(&self) -> SpatialPredictor
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 SpatialPredictor
impl Debug for SpatialPredictor
Source§impl Default for SpatialPredictor
impl Default for SpatialPredictor
Source§fn default() -> SpatialPredictor
fn default() -> SpatialPredictor
Returns the “default value” for a type. Read more
impl Copy for SpatialPredictor
Auto Trait Implementations§
impl Freeze for SpatialPredictor
impl RefUnwindSafe for SpatialPredictor
impl Send for SpatialPredictor
impl Sync for SpatialPredictor
impl Unpin for SpatialPredictor
impl UnsafeUnpin for SpatialPredictor
impl UnwindSafe for SpatialPredictor
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