pub struct AcPredBuffer { /* private fields */ }Implementations§
Source§impl AcPredBuffer
impl AcPredBuffer
pub fn new(mb_w: usize, mb_h: usize) -> Self
Sourcepub fn pred_row(&self, mb_row: usize, mb_col: usize, blk: usize) -> [i32; 7]
pub fn pred_row(&self, mb_row: usize, mb_col: usize, blk: usize) -> [i32; 7]
Get the AC predictor row (indices 1..7 of the reconstructed block). Returns the first row of the left neighbour (for horizontal prediction).
Sourcepub fn pred_col(&self, mb_row: usize, mb_col: usize, blk: usize) -> [i32; 7]
pub fn pred_col(&self, mb_row: usize, mb_col: usize, blk: usize) -> [i32; 7]
Get the AC predictor column (rows 1..7 of the reconstructed block). Returns the first column of the top neighbour (for vertical prediction).
pub fn store_row( &mut self, mb_row: usize, mb_col: usize, blk: usize, row: [i32; 7], )
pub fn store_col( &mut self, mb_row: usize, mb_col: usize, blk: usize, col: [i32; 7], )
Trait Implementations§
Source§impl Clone for AcPredBuffer
impl Clone for AcPredBuffer
Source§fn clone(&self) -> AcPredBuffer
fn clone(&self) -> AcPredBuffer
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 moreAuto Trait Implementations§
impl Freeze for AcPredBuffer
impl RefUnwindSafe for AcPredBuffer
impl Send for AcPredBuffer
impl Sync for AcPredBuffer
impl Unpin for AcPredBuffer
impl UnwindSafe for AcPredBuffer
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