trait MbSyntax {
Show 13 methods
// Required methods
fn mb_type(
&mut self,
st: &DecState,
mb_x: u32,
mb_y: u32,
kind: SliceKind,
) -> Result<u32, &'static str>;
fn sub_mb_type(&mut self, kind: SliceKind) -> Result<u32, &'static str>;
fn intra4x4_rem(&mut self) -> Option<i32>;
fn intra_chroma_mode(
&mut self,
st: &DecState,
mb_x: u32,
mb_y: u32,
) -> Result<u8, &'static str>;
fn cbp(
&mut self,
st: &DecState,
mb_x: u32,
mb_y: u32,
intra: bool,
) -> Result<u32, &'static str>;
fn qp_delta(&mut self) -> Result<i32, &'static str>;
fn ref_idx(
&mut self,
st: &DecState,
list: usize,
px: usize,
py: usize,
pw: usize,
ph: usize,
num_ref: u32,
) -> Result<i8, &'static str>;
fn mvd(
&mut self,
st: &DecState,
list: usize,
px: usize,
py: usize,
pw: usize,
ph: usize,
) -> Result<[i16; 2], &'static str>;
fn residual(
&mut self,
st: &DecState,
blk: ResBlock,
) -> Result<([i32; 16], u8), &'static str>;
fn pcm(&mut self, out: &mut [u8; 384]);
fn transform_8x8(&mut self, st: &DecState, mb_x: u32, mb_y: u32) -> bool;
fn residual8x8(
&mut self,
st: &DecState,
bx4: usize,
by4: usize,
) -> Result<([i32; 64], [u8; 4]), &'static str>;
// Provided method
fn mark_direct(&mut self, _px: usize, _py: usize, _pw: usize, _ph: usize) { ... }
}Expand description
MB 層の構文要素の読み手。値の番号付けは CAVLC(表 7-11/7-13/7-14/7-17/7-18)に揃える。
Required Methods§
fn mb_type( &mut self, st: &DecState, mb_x: u32, mb_y: u32, kind: SliceKind, ) -> Result<u32, &'static str>
fn sub_mb_type(&mut self, kind: SliceKind) -> Result<u32, &'static str>
Sourcefn intra4x4_rem(&mut self) -> Option<i32>
fn intra4x4_rem(&mut self) -> Option<i32>
prev_intra4x4_pred_mode_flag が 1 なら None、0 なら rem_intra4x4_pred_mode。
fn intra_chroma_mode( &mut self, st: &DecState, mb_x: u32, mb_y: u32, ) -> Result<u8, &'static str>
fn cbp( &mut self, st: &DecState, mb_x: u32, mb_y: u32, intra: bool, ) -> Result<u32, &'static str>
fn qp_delta(&mut self) -> Result<i32, &'static str>
Sourcefn ref_idx(
&mut self,
st: &DecState,
list: usize,
px: usize,
py: usize,
pw: usize,
ph: usize,
num_ref: u32,
) -> Result<i8, &'static str>
fn ref_idx( &mut self, st: &DecState, list: usize, px: usize, py: usize, pw: usize, ph: usize, num_ref: u32, ) -> Result<i8, &'static str>
パーティション (px, py, pw, ph) の ref_idx_lX。
Sourcefn mvd(
&mut self,
st: &DecState,
list: usize,
px: usize,
py: usize,
pw: usize,
ph: usize,
) -> Result<[i16; 2], &'static str>
fn mvd( &mut self, st: &DecState, list: usize, px: usize, py: usize, pw: usize, ph: usize, ) -> Result<[i16; 2], &'static str>
パーティション (px, py, pw, ph) の mvd_lX。
Sourcefn residual(
&mut self,
st: &DecState,
blk: ResBlock,
) -> Result<([i32; 16], u8), &'static str>
fn residual( &mut self, st: &DecState, blk: ResBlock, ) -> Result<([i32; 16], u8), &'static str>
残差 1 ブロック(走査順の係数, 非ゼロ係数の数)。
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".