pub struct BlockModeInfo {Show 17 fields
pub block_size: BlockSize,
pub segment_id: u8,
pub skip: bool,
pub skip_mode: bool,
pub is_inter: bool,
pub intra_mode: IntraMode,
pub uv_mode: IntraMode,
pub angle_delta: [i8; 2],
pub inter_mode: InterMode,
pub ref_frames: [i8; 2],
pub mv: [[i16; 2]; 2],
pub tx_size: TxSize,
pub use_palette: bool,
pub filter_intra_mode: u8,
pub compound_type: u8,
pub interp_filter: [u8; 2],
pub motion_mode: u8,
}Expand description
Block mode information.
Fields§
§block_size: BlockSizeBlock size.
segment_id: u8Segment ID.
skip: boolSkip residual flag.
skip_mode: boolSkip mode (compound prediction skip).
is_inter: boolIs inter block.
intra_mode: IntraModeIntra mode (for intra blocks).
uv_mode: IntraModeUV intra mode.
angle_delta: [i8; 2]Intra angle delta.
inter_mode: InterModeInter mode (for inter blocks).
ref_frames: [i8; 2]Reference frames (up to 2 for compound).
mv: [[i16; 2]; 2]Motion vectors (up to 2 for compound).
tx_size: TxSizeTransform size.
use_palette: boolUse palette mode.
filter_intra_mode: u8Filter intra mode.
compound_type: u8Compound type.
interp_filter: [u8; 2]Interpolation filter.
motion_mode: u8Motion mode (simple, obmc, warp).
Implementations§
Source§impl BlockModeInfo
impl BlockModeInfo
Sourcepub const fn is_compound(&self) -> bool
pub const fn is_compound(&self) -> bool
Check if this block uses compound prediction.
Trait Implementations§
Source§impl Clone for BlockModeInfo
impl Clone for BlockModeInfo
Source§fn clone(&self) -> BlockModeInfo
fn clone(&self) -> BlockModeInfo
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 BlockModeInfo
impl Debug for BlockModeInfo
Source§impl Default for BlockModeInfo
impl Default for BlockModeInfo
Source§fn default() -> BlockModeInfo
fn default() -> BlockModeInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockModeInfo
impl RefUnwindSafe for BlockModeInfo
impl Send for BlockModeInfo
impl Sync for BlockModeInfo
impl Unpin for BlockModeInfo
impl UnsafeUnpin for BlockModeInfo
impl UnwindSafe for BlockModeInfo
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