#[repr(u8)]pub enum MvPrecision {
FullPel = 0,
HalfPel = 1,
QuarterPel = 2,
EighthPel = 3,
}Expand description
Motion vector precision levels.
Variants§
FullPel = 0
Full pixel precision (integer pel).
HalfPel = 1
Half pixel precision (1/2 pel).
QuarterPel = 2
Quarter pixel precision (1/4 pel).
EighthPel = 3
Eighth pixel precision (1/8 pel).
Implementations§
Source§impl MvPrecision
impl MvPrecision
Sourcepub const fn fractional_bits(self) -> u8
pub const fn fractional_bits(self) -> u8
Returns the number of fractional bits for this precision.
Trait Implementations§
Source§impl Clone for MvPrecision
impl Clone for MvPrecision
Source§fn clone(&self) -> MvPrecision
fn clone(&self) -> MvPrecision
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 MvPrecision
impl Debug for MvPrecision
Source§impl Default for MvPrecision
impl Default for MvPrecision
Source§fn default() -> MvPrecision
fn default() -> MvPrecision
Returns the “default value” for a type. Read more
Source§impl Hash for MvPrecision
impl Hash for MvPrecision
Source§impl PartialEq for MvPrecision
impl PartialEq for MvPrecision
impl Copy for MvPrecision
impl Eq for MvPrecision
impl StructuralPartialEq for MvPrecision
Auto Trait Implementations§
impl Freeze for MvPrecision
impl RefUnwindSafe for MvPrecision
impl Send for MvPrecision
impl Sync for MvPrecision
impl Unpin for MvPrecision
impl UnsafeUnpin for MvPrecision
impl UnwindSafe for MvPrecision
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