#[repr(u8)]pub enum InterMode {
Skip = 0,
Merge = 1,
NewMv = 2,
NearestMv = 3,
NearMv = 4,
ZeroMv = 5,
}Expand description
Mode for inter prediction.
Variants§
Skip = 0
Skip mode (use predicted MV directly).
Merge = 1
Merge mode (copy MV from neighbor).
NewMv = 2
New MV mode (search for best MV).
NearestMv = 3
Nearest MV mode (use nearest neighbor MV).
NearMv = 4
Near MV mode (use second-nearest neighbor MV).
ZeroMv = 5
Zero MV mode.
Implementations§
Source§impl InterMode
impl InterMode
Sourcepub const fn requires_search(&self) -> bool
pub const fn requires_search(&self) -> bool
Returns true if this mode requires MV search.
Sourcepub const fn uses_predictor(&self) -> bool
pub const fn uses_predictor(&self) -> bool
Returns true if this mode uses a predictor MV.
Trait Implementations§
impl Copy for InterMode
impl Eq for InterMode
impl StructuralPartialEq for InterMode
Auto Trait Implementations§
impl Freeze for InterMode
impl RefUnwindSafe for InterMode
impl Send for InterMode
impl Sync for InterMode
impl Unpin for InterMode
impl UnsafeUnpin for InterMode
impl UnwindSafe for InterMode
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