Skip to main content

RefmvsFrame

Struct RefmvsFrame 

Source
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: usize

Implementations§

Source§

impl RefmvsFrame

Source

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.

Source

pub fn blk(&self, y4: i32, x4: i32) -> &RefmvsBlock

Source

pub fn splat(&mut self, b: &RefmvsBlock, by4: i32, bx4: i32, bw4: i32, bh4: i32)

splat_mv.

Source

pub fn load_tmvs( &mut self, col_start8: i32, col_end8: i32, row_start8: i32, row_end8: i32, )

load_tmvs_c (rows of 8x8 blocks row_start8..row_end8).

Source

pub fn save_tmvs( &mut self, col_start8: i32, col_end8: i32, row_start8: i32, row_end8: i32, )

save_tmvs_c for 8x8 rows row_start8..row_end8, clipped to the frame.

Trait Implementations§

Source§

impl Clone for RefmvsFrame

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.