pub struct CoLocatedMvLookup { /* private fields */ }Expand description
Co-located MV lookup helper.
Implementations§
Source§impl CoLocatedMvLookup
impl CoLocatedMvLookup
Sourcepub fn set_temporal_distances(&mut self, distances: &[i32])
pub fn set_temporal_distances(&mut self, distances: &[i32])
Sets temporal distances.
Sourcepub fn get_scaled_co_located(
&self,
frame_idx: usize,
mi_row: usize,
mi_col: usize,
target_dist: i32,
) -> Option<MotionVector>
pub fn get_scaled_co_located( &self, frame_idx: usize, mi_row: usize, mi_col: usize, target_dist: i32, ) -> Option<MotionVector>
Gets co-located MV with temporal scaling.
Sourcepub fn ref_mvs(&self) -> &RefFrameMvs
pub fn ref_mvs(&self) -> &RefFrameMvs
Gets underlying reference MVs.
Sourcepub fn ref_mvs_mut(&mut self) -> &mut RefFrameMvs
pub fn ref_mvs_mut(&mut self) -> &mut RefFrameMvs
Gets mutable reference MVs.
Trait Implementations§
Source§impl Clone for CoLocatedMvLookup
impl Clone for CoLocatedMvLookup
Source§fn clone(&self) -> CoLocatedMvLookup
fn clone(&self) -> CoLocatedMvLookup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CoLocatedMvLookup
impl Debug for CoLocatedMvLookup
Source§impl Default for CoLocatedMvLookup
impl Default for CoLocatedMvLookup
Source§fn default() -> CoLocatedMvLookup
fn default() -> CoLocatedMvLookup
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoLocatedMvLookup
impl RefUnwindSafe for CoLocatedMvLookup
impl Send for CoLocatedMvLookup
impl Sync for CoLocatedMvLookup
impl Unpin for CoLocatedMvLookup
impl UnsafeUnpin for CoLocatedMvLookup
impl UnwindSafe for CoLocatedMvLookup
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