pub struct SymbolDecoder { /* private fields */ }Expand description
Symbol decoder for AV1 syntax elements.
Implementations§
Source§impl SymbolDecoder
impl SymbolDecoder
Sourcepub fn read_partition(
&mut self,
bsize: BlockSize,
_ctx: u8,
) -> CodecResult<PartitionType>
pub fn read_partition( &mut self, bsize: BlockSize, _ctx: u8, ) -> CodecResult<PartitionType>
Read partition symbol.
Sourcepub fn read_skip_mode(&mut self, _ctx: u8) -> bool
pub fn read_skip_mode(&mut self, _ctx: u8) -> bool
Read skip_mode flag.
Sourcepub fn read_segment_id(&mut self, _ctx: u8, max_segments: u8) -> u8
pub fn read_segment_id(&mut self, _ctx: u8, max_segments: u8) -> u8
Read segment ID.
Sourcepub fn read_is_inter(&mut self, _ctx: u8) -> bool
pub fn read_is_inter(&mut self, _ctx: u8) -> bool
Read is_inter flag.
Sourcepub fn read_intra_mode(
&mut self,
_ctx: u8,
_bsize: BlockSize,
) -> CodecResult<IntraMode>
pub fn read_intra_mode( &mut self, _ctx: u8, _bsize: BlockSize, ) -> CodecResult<IntraMode>
Read intra mode for luma.
Sourcepub fn read_uv_mode(
&mut self,
_y_mode: IntraMode,
_ctx: u8,
) -> CodecResult<IntraMode>
pub fn read_uv_mode( &mut self, _y_mode: IntraMode, _ctx: u8, ) -> CodecResult<IntraMode>
Read intra mode for chroma (UV).
Sourcepub fn read_angle_delta(&mut self, mode: IntraMode) -> i8
pub fn read_angle_delta(&mut self, mode: IntraMode) -> i8
Read angle delta for directional intra modes.
Sourcepub fn read_use_palette(&mut self, bsize: BlockSize, _ctx: u8) -> bool
pub fn read_use_palette(&mut self, bsize: BlockSize, _ctx: u8) -> bool
Read palette mode flag.
Sourcepub fn read_filter_intra_mode(&mut self) -> u8
pub fn read_filter_intra_mode(&mut self) -> u8
Read filter intra mode.
Sourcepub fn read_inter_mode(&mut self, _ctx: u8) -> CodecResult<InterMode>
pub fn read_inter_mode(&mut self, _ctx: u8) -> CodecResult<InterMode>
Read inter mode.
Sourcepub fn read_ref_frames(&mut self, _ctx: u8) -> [i8; 2]
pub fn read_ref_frames(&mut self, _ctx: u8) -> [i8; 2]
Read reference frame indices.
Sourcepub fn read_tx_size(&mut self, bsize: BlockSize, _ctx: u8) -> TxSize
pub fn read_tx_size(&mut self, bsize: BlockSize, _ctx: u8) -> TxSize
Read transform size.
Sourcepub fn read_tx_type(
&mut self,
_tx_size: TxSize,
_is_inter: bool,
_ctx: u8,
) -> TxType
pub fn read_tx_type( &mut self, _tx_size: TxSize, _is_inter: bool, _ctx: u8, ) -> TxType
Read transform type.
Sourcepub fn read_compound_type(&mut self, _ctx: u8) -> u8
pub fn read_compound_type(&mut self, _ctx: u8) -> u8
Read compound type for compound prediction.
Sourcepub fn read_interp_filter(&mut self, _ctx: u8) -> u8
pub fn read_interp_filter(&mut self, _ctx: u8) -> u8
Read interpolation filter.
Sourcepub fn read_motion_mode(&mut self, bsize: BlockSize, _ctx: u8) -> u8
pub fn read_motion_mode(&mut self, bsize: BlockSize, _ctx: u8) -> u8
Read motion mode (simple, OBMC, warped).
Sourcepub fn decode_block_mode(
&mut self,
bsize: BlockSize,
ctx_skip: u8,
ctx_mode: u8,
) -> CodecResult<BlockModeInfo>
pub fn decode_block_mode( &mut self, bsize: BlockSize, ctx_skip: u8, ctx_mode: u8, ) -> CodecResult<BlockModeInfo>
Decode complete block mode info.
Sourcepub fn has_more_data(&self) -> bool
pub fn has_more_data(&self) -> bool
Check if more data is available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymbolDecoder
impl RefUnwindSafe for SymbolDecoder
impl Send for SymbolDecoder
impl Sync for SymbolDecoder
impl Unpin for SymbolDecoder
impl UnsafeUnpin for SymbolDecoder
impl UnwindSafe for SymbolDecoder
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