Skip to main content

DecState

Struct DecState 

Source
struct DecState {
    yuv: DecodedYuv,
    blk_w: usize,
    nnz_luma: Vec<u8>,
    mode_luma: Vec<i8>,
    decoded: Vec<bool>,
    cblk_w: usize,
    nnz_chroma: [Vec<u8>; 2],
    mb_w: usize,
    mb_qp: Vec<i32>,
    mv_l0: Vec<[i16; 2]>,
    is_inter: Vec<bool>,
    blk_h: usize,
}
Expand description

デコーダ状態。YUV 平面に加え、4x4 ブロック単位の近傍情報グリッドを持つ。

Fields§

§yuv: DecodedYuv§blk_w: usize§nnz_luma: Vec<u8>§mode_luma: Vec<i8>§decoded: Vec<bool>§cblk_w: usize§nnz_chroma: [Vec<u8>; 2]§mb_w: usize§mb_qp: Vec<i32>§mv_l0: Vec<[i16; 2]>§is_inter: Vec<bool>§blk_h: usize

Implementations§

Source§

impl DecState

Source

fn li(&self, bx4: usize, by4: usize) -> usize

Source

fn luma_nc(&self, bx4: usize, by4: usize) -> i32

輝度 4x4 ブロック (bx4,by4) の nC(左/上ブロックの nnz から)。

Source

fn pred_i4x4_mode(&self, bx4: usize, by4: usize) -> i32

Intra4x4 予測モードの予測値(左/上ブロックのモードの min)。

Source

fn predict_luma_4x4(&self, px: usize, py: usize, mode: u8) -> [i32; 16]

輝度 4x4 ブロックの近傍サンプルを収集し intra_4x4_predict で予測を返す。 px,py はフレーム画素座標(ブロック左上)。

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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.