pub struct CoeffBlock {
pub quant: [i32; 1024],
pub eob: usize,
pub cul_level: u8,
pub dc_category: u8,
pub tx_type: TxType,
}Expand description
The result of decoding one transform block’s coefficients.
Fields§
§quant: [i32; 1024]Quant[] in the coded block’s raster order: signed dequantiser input
levels. Only the first Tx_Width * Tx_Height (of the adjusted size) are
meaningful; the tail stays zero.
eob: usizeThe end-of-block position: the count of leading scan coefficients.
cul_level: u8culLevel, clamped to 63: the neighbour level context this block leaves.
dc_category: u8dcCategory: 0 none, 1 negative DC, 2 positive DC.
tx_type: TxTypeThe resolved PlaneTxType (compute_tx_type, §5.11.40): DCT_DCT for a
skipped or lossless block, otherwise the type read/derived here. The
dequantiser and inverse transform need it, so it travels with the block.
Auto Trait Implementations§
impl Freeze for CoeffBlock
impl RefUnwindSafe for CoeffBlock
impl Send for CoeffBlock
impl Sync for CoeffBlock
impl Unpin for CoeffBlock
impl UnsafeUnpin for CoeffBlock
impl UnwindSafe for CoeffBlock
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