pub struct PredBlock<'a> {
pub above: &'a [i32],
pub left: &'a [i32],
pub corner: i32,
pub have_above: bool,
pub have_left: bool,
pub w: usize,
pub h: usize,
}Expand description
One intra block’s assembled neighbours and geometry: the row above, the
column to the left, the shared top-left corner (AboveRow[-1]), the
availability flags, and the block size w x h in samples. above must
hold at least w entries and left at least h.
Fields§
§above: &'a [i32]AboveRow[0..w].
left: &'a [i32]LeftCol[0..h].
corner: i32AboveRow[-1] (equal to LeftCol[-1]).
have_above: boolWhether the above row holds real reconstructed samples.
have_left: boolWhether the left column holds real reconstructed samples.
w: usizeThe block width in samples.
h: usizeThe block height in samples.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PredBlock<'a>
impl<'a> RefUnwindSafe for PredBlock<'a>
impl<'a> Send for PredBlock<'a>
impl<'a> Sync for PredBlock<'a>
impl<'a> Unpin for PredBlock<'a>
impl<'a> UnsafeUnpin for PredBlock<'a>
impl<'a> UnwindSafe for PredBlock<'a>
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