Skip to main content

FrameDec

Struct FrameDec 

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

Source

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

Source

pub fn c(&mut self) -> &mut Rac<'a>

Source

pub fn decode_tiles(&mut self, data: &'a [u8]) -> Result<(), String>

decode_tiles.

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> 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> 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, 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.