pub struct MergeCandidate {
pub mv: MotionVector,
pub ref_idx: i8,
pub source: MergeSource,
}Expand description
Merge candidate for merge mode.
Fields§
§mv: MotionVectorMotion vector.
ref_idx: i8Reference frame index.
source: MergeSourceSource of this candidate.
Implementations§
Source§impl MergeCandidate
impl MergeCandidate
Sourcepub const fn new(mv: MotionVector, ref_idx: i8, source: MergeSource) -> Self
pub const fn new(mv: MotionVector, ref_idx: i8, source: MergeSource) -> Self
Creates a new merge candidate.
Trait Implementations§
Source§impl Clone for MergeCandidate
impl Clone for MergeCandidate
Source§fn clone(&self) -> MergeCandidate
fn clone(&self) -> MergeCandidate
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 MergeCandidate
impl Debug for MergeCandidate
impl Copy for MergeCandidate
Auto Trait Implementations§
impl Freeze for MergeCandidate
impl RefUnwindSafe for MergeCandidate
impl Send for MergeCandidate
impl Sync for MergeCandidate
impl Unpin for MergeCandidate
impl UnsafeUnpin for MergeCandidate
impl UnwindSafe for MergeCandidate
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