pub struct RefmvsFrame {Show 18 fields
pub iw4: i32,
pub ih4: i32,
pub iw8: i32,
pub ih8: i32,
pub use_ref_frame_mvs: bool,
pub sign_bias: [u8; 7],
pub mfmv_sign: [u8; 7],
pub pocdiff: [i8; 7],
pub mfmv_ref: [u8; 3],
pub mfmv_ref2cur: [i32; 3],
pub mfmv_ref2ref: [[i32; 7]; 3],
pub n_mfmvs: usize,
pub rp: Vec<TemporalBlock>,
pub rp_ref: [Option<Arc<Vec<TemporalBlock>>>; 7],
pub rp_proj: Vec<TemporalBlock>,
pub rp_stride: usize,
pub r: Vec<RefmvsBlock>,
pub r_stride: usize,
}Available on crate feature
decode only.Fields§
§iw4: i32§ih4: i32§iw8: i32§ih8: i32§use_ref_frame_mvs: bool§sign_bias: [u8; 7]§mfmv_sign: [u8; 7]§pocdiff: [i8; 7]§mfmv_ref: [u8; 3]§mfmv_ref2cur: [i32; 3]§mfmv_ref2ref: [[i32; 7]; 3]§n_mfmvs: usize§rp: Vec<TemporalBlock>This frame’s saved temporal MVs (8x8), rp_stride wide.
rp_ref: [Option<Arc<Vec<TemporalBlock>>>; 7]§rp_proj: Vec<TemporalBlock>Projected temporal MVs for the current frame, whole frame.
rp_stride: usize§r: Vec<RefmvsBlock>4x4 block info, whole frame (r_stride wide).
r_stride: usizeImplementations§
Source§impl RefmvsFrame
impl RefmvsFrame
Sourcepub fn new(
seq: &SeqHeader,
hdr: &FrameHeader,
ref_poc: &[u32; 7],
ref_ref_poc: &[[u32; 7]; 7],
rp_ref: [Option<Arc<Vec<TemporalBlock>>>; 7],
) -> Self
pub fn new( seq: &SeqHeader, hdr: &FrameHeader, ref_poc: &[u32; 7], ref_ref_poc: &[[u32; 7]; 7], rp_ref: [Option<Arc<Vec<TemporalBlock>>>; 7], ) -> Self
dav1d_refmvs_init_frame.
pub fn blk(&self, y4: i32, x4: i32) -> &RefmvsBlock
Trait Implementations§
Auto Trait Implementations§
impl Forget for RefmvsFrame
impl Freeze for RefmvsFrame
impl Move for RefmvsFrame
impl RefUnwindSafe for RefmvsFrame
impl Send for RefmvsFrame
impl Sync for RefmvsFrame
impl Unpin for RefmvsFrame
impl UnsafeUnpin for RefmvsFrame
impl UnwindSafe for RefmvsFrame
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