pub struct FrameDec<'a> {Show 55 fields
pub h: &'a Header,
pub p: &'a ProbContext,
pub coef: &'a CoefProbs,
pub counts: &'a mut Counts,
pub cur: &'a mut Frame,
pub refs: &'a [Option<Arc<Frame>>; 3],
pub segmap_ref: Option<&'a Frame>,
pub mvpair: Option<&'a Frame>,
pub mvscale: [[u16; 2]; 3],
pub mvstep: [[u8; 2]; 3],
pub cols: usize,
pub rows: usize,
pub sb_cols: usize,
pub sb_rows: usize,
pub ss_h: usize,
pub ss_v: usize,
pub bpp: u32,
pub above_partition_ctx: Vec<u8>,
pub above_mode_ctx: Vec<u8>,
pub above_y_nnz_ctx: Vec<u8>,
pub above_uv_nnz_ctx: [Vec<u8>; 2],
pub above_skip_ctx: Vec<u8>,
pub above_txfm_ctx: Vec<u8>,
pub above_segpred_ctx: Vec<u8>,
pub above_intra_ctx: Vec<u8>,
pub above_comp_ctx: Vec<u8>,
pub above_ref_ctx: Vec<u8>,
pub above_filter_ctx: Vec<u8>,
pub above_mv_ctx: Vec<[Mv; 2]>,
pub left_y_nnz_ctx: [u8; 16],
pub left_mode_ctx: [u8; 16],
pub left_mv_ctx: [[Mv; 2]; 16],
pub left_uv_nnz_ctx: [[u8; 16]; 2],
pub left_partition_ctx: [u8; 8],
pub left_skip_ctx: [u8; 8],
pub left_txfm_ctx: [u8; 8],
pub left_segpred_ctx: [u8; 8],
pub left_intra_ctx: [u8; 8],
pub left_comp_ctx: [u8; 8],
pub left_ref_ctx: [u8; 8],
pub left_filter_ctx: [u8; 8],
pub b: Block,
pub row: usize,
pub row7: usize,
pub col: usize,
pub col7: usize,
pub tile_col_start: usize,
pub min_mv: (i32, i32),
pub max_mv: (i32, i32),
pub block: Vec<i32>,
pub uvblock: [Vec<i32>; 2],
pub eob: Vec<u16>,
pub uveob: [Vec<u16>; 2],
pub lflvl: Vec<LfMask>,
pub rac: Option<Rac<'a>>,
}Available on crate feature
decode only.Expand description
Everything decoding one frame’s tiles needs (ffmpeg’s VP9Context and
VP9TileData for a single thread).
Fields§
§h: &'a Header§p: &'a ProbContext§coef: &'a CoefProbs§counts: &'a mut Counts§cur: &'a mut Frame§refs: &'a [Option<Arc<Frame>>; 3]§segmap_ref: Option<&'a Frame>§mvpair: Option<&'a Frame>§mvscale: [[u16; 2]; 3]§mvstep: [[u8; 2]; 3]§cols: usize§rows: usize§sb_cols: usize§sb_rows: usize§ss_h: usize§ss_v: usize§bpp: u32§above_partition_ctx: Vec<u8>§above_mode_ctx: Vec<u8>§above_y_nnz_ctx: Vec<u8>§above_uv_nnz_ctx: [Vec<u8>; 2]§above_skip_ctx: Vec<u8>§above_txfm_ctx: Vec<u8>§above_segpred_ctx: Vec<u8>§above_intra_ctx: Vec<u8>§above_comp_ctx: Vec<u8>§above_ref_ctx: Vec<u8>§above_filter_ctx: Vec<u8>§above_mv_ctx: Vec<[Mv; 2]>§left_y_nnz_ctx: [u8; 16]§left_mode_ctx: [u8; 16]§left_mv_ctx: [[Mv; 2]; 16]§left_uv_nnz_ctx: [[u8; 16]; 2]§left_partition_ctx: [u8; 8]§left_skip_ctx: [u8; 8]§left_txfm_ctx: [u8; 8]§left_segpred_ctx: [u8; 8]§left_intra_ctx: [u8; 8]§left_comp_ctx: [u8; 8]§left_ref_ctx: [u8; 8]§left_filter_ctx: [u8; 8]§b: Block§row: usize§row7: usize§col: usize§col7: usize§tile_col_start: usize§min_mv: (i32, i32)§max_mv: (i32, i32)§block: Vec<i32>§uvblock: [Vec<i32>; 2]§eob: Vec<u16>§uveob: [Vec<u16>; 2]§lflvl: Vec<LfMask>Loop-filter masks, one per superblock (raster).
rac: Option<Rac<'a>>Implementations§
Source§impl<'a> FrameDec<'a>
impl<'a> FrameDec<'a>
pub fn new( h: &'a Header, p: &'a ProbContext, coef: &'a CoefProbs, counts: &'a mut Counts, cur: &'a mut Frame, refs: &'a [Option<Arc<Frame>>; 3], segmap_ref: Option<&'a Frame>, mvpair: Option<&'a Frame>, mvscale: [[u16; 2]; 3], mvstep: [[u8; 2]; 3], ) -> Self
pub fn c(&mut self) -> &mut Rac<'a>
Auto Trait Implementations§
impl<'a> !UnwindSafe for FrameDec<'a>
impl<'a> Forget for FrameDec<'a>
impl<'a> Freeze for FrameDec<'a>
impl<'a> Move for FrameDec<'a>
impl<'a> RefUnwindSafe for FrameDec<'a>
impl<'a> Send for FrameDec<'a>
impl<'a> Sync for FrameDec<'a>
impl<'a> Unpin for FrameDec<'a>
impl<'a> UnsafeUnpin for FrameDec<'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
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