pub struct CodeBlock<'a> {
pub x: usize,
pub y: usize,
pub width: usize,
pub height: usize,
pub num_passes: u32,
pub zero_bit_planes: u32,
pub segment: &'a [u8],
}Expand description
One code-block’s coded contribution within its subband. num_passes is the
coding-pass count from the packet header (0 if the block is never included
in the single layer) and zero_bit_planes the all-zero most-significant
bit-plane count from the zero-bitplane tag tree. segment is the raw
MQ-coded byte slice Tier-1 decodes (empty when the block is not included).
Fields§
§x: usizeTop-left of the block within its subband, in band-relative samples.
y: usize§width: usize§height: usize§num_passes: u32§zero_bit_planes: u32§segment: &'a [u8]Trait Implementations§
impl<'a> Eq for CodeBlock<'a>
Source§impl<'a> PartialEq for CodeBlock<'a>
impl<'a> PartialEq for CodeBlock<'a>
impl<'a> StructuralPartialEq for CodeBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for CodeBlock<'a>
impl<'a> RefUnwindSafe for CodeBlock<'a>
impl<'a> Send for CodeBlock<'a>
impl<'a> Sync for CodeBlock<'a>
impl<'a> Unpin for CodeBlock<'a>
impl<'a> UnsafeUnpin for CodeBlock<'a>
impl<'a> UnwindSafe for CodeBlock<'a>
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