pub enum MvpMode {
Median,
Left,
Top,
Temporal,
Zero,
}Expand description
MVP selection modes.
Variants§
Median
Use spatial median.
Left
Use left neighbor.
Top
Use top neighbor.
Temporal
Use co-located temporal.
Zero
Use zero MV.
Implementations§
Source§impl MvpMode
impl MvpMode
Sourcepub fn get_mvp(&self, ctx: &MvPredContext) -> MotionVector
pub fn get_mvp(&self, ctx: &MvPredContext) -> MotionVector
Gets the MVP for this mode.
Trait Implementations§
impl Copy for MvpMode
impl Eq for MvpMode
impl StructuralPartialEq for MvpMode
Auto Trait Implementations§
impl Freeze for MvpMode
impl RefUnwindSafe for MvpMode
impl Send for MvpMode
impl Sync for MvpMode
impl Unpin for MvpMode
impl UnsafeUnpin for MvpMode
impl UnwindSafe for MvpMode
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