pub struct CoeffDecoder { /* private fields */ }Expand description
Decoder for transform coefficients.
Implementations§
Source§impl CoeffDecoder
impl CoeffDecoder
Sourcepub fn new(
data: Vec<u8>,
quant_params: QuantizationParams,
bit_depth: u8,
) -> Self
pub fn new( data: Vec<u8>, quant_params: QuantizationParams, bit_depth: u8, ) -> Self
Create a new coefficient decoder.
Sourcepub fn decode_coefficients(
&mut self,
tx_size: TxSize,
tx_type: TxType,
plane: u8,
skip: bool,
) -> CodecResult<CoeffBuffer>
pub fn decode_coefficients( &mut self, tx_size: TxSize, tx_type: TxType, plane: u8, skip: bool, ) -> CodecResult<CoeffBuffer>
Decode coefficients for a transform block.
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 CoeffDecoder
impl RefUnwindSafe for CoeffDecoder
impl Send for CoeffDecoder
impl Sync for CoeffDecoder
impl Unpin for CoeffDecoder
impl UnsafeUnpin for CoeffDecoder
impl UnwindSafe for CoeffDecoder
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