pub struct HevcMvField {
pub mv: [HevcMv; 2],
pub ref_idx: [i8; 2],
pub pred_flag: [bool; 2],
}Expand description
Per-PU motion information for L0 and L1 reference lists.
Fields§
§mv: [HevcMv; 2]Motion vectors for L0 and L1.
ref_idx: [i8; 2]Reference picture indices for L0 and L1 (-1 = unused).
pred_flag: [bool; 2]Whether L0 / L1 prediction is active.
Implementations§
Source§impl HevcMvField
impl HevcMvField
An empty (no-prediction) field.
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Returns true when at least one list is active.
Trait Implementations§
Source§impl Clone for HevcMvField
impl Clone for HevcMvField
Source§fn clone(&self) -> HevcMvField
fn clone(&self) -> HevcMvField
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 HevcMvField
impl Debug for HevcMvField
Source§impl Default for HevcMvField
impl Default for HevcMvField
Source§fn default() -> HevcMvField
fn default() -> HevcMvField
Returns the “default value” for a type. Read more
Source§impl PartialEq for HevcMvField
impl PartialEq for HevcMvField
impl Copy for HevcMvField
impl Eq for HevcMvField
impl StructuralPartialEq for HevcMvField
Auto Trait Implementations§
impl Freeze for HevcMvField
impl RefUnwindSafe for HevcMvField
impl Send for HevcMvField
impl Sync for HevcMvField
impl Unpin for HevcMvField
impl UnsafeUnpin for HevcMvField
impl UnwindSafe for HevcMvField
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