pub struct BatchedCoeffDecoder { /* private fields */ }Expand description
Batched decoder for multiple coefficient blocks.
Implementations§
Source§impl BatchedCoeffDecoder
impl BatchedCoeffDecoder
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 batched decoder.
Sourcepub fn decode_blocks(
&mut self,
specs: &[(TxSize, TxType, u8, bool)],
) -> CodecResult<Vec<CoeffBuffer>>
pub fn decode_blocks( &mut self, specs: &[(TxSize, TxType, u8, bool)], ) -> CodecResult<Vec<CoeffBuffer>>
Decode multiple blocks.
Sourcepub fn get_statistics(&self) -> Vec<CoeffStats>
pub fn get_statistics(&self) -> Vec<CoeffStats>
Get statistics for decoded blocks.
Auto Trait Implementations§
impl Freeze for BatchedCoeffDecoder
impl RefUnwindSafe for BatchedCoeffDecoder
impl Send for BatchedCoeffDecoder
impl Sync for BatchedCoeffDecoder
impl Unpin for BatchedCoeffDecoder
impl UnsafeUnpin for BatchedCoeffDecoder
impl UnwindSafe for BatchedCoeffDecoder
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