pub struct SubframeHeader {
pub type_: SubframeHeaderType,
pub wasted_bps: u32,
}Expand description
A Subframe Header
| Bits | Field | Meaning |
|---|---|---|
| 1 | pad (0) | |
| 6 | type_ | subframe type and (if any) order |
| 1 | has wasted bits | whether the subframe has wasted bits-per-sample |
| (0+) | wasted_bps | the number of wasted bits-per-sample, as unary |
“Wasted” bits is when all of the samples in a given subframe
have one or more 0 bits in the least-significant bits position.
In this case, the samples can all be safely right shifted
by that amount of wasted bits during encoding, and left
shifted by that amount of bits during decoding, without loss.
This is an uncommon case.
Fields§
§type_: SubframeHeaderTypeThe subframe header’s type
wasted_bps: u32The number of wasted bits-per-sample
Trait Implementations§
Source§impl Debug for SubframeHeader
impl Debug for SubframeHeader
Source§impl FromBitStream for SubframeHeader
impl FromBitStream for SubframeHeader
Auto Trait Implementations§
impl Freeze for SubframeHeader
impl RefUnwindSafe for SubframeHeader
impl Send for SubframeHeader
impl Sync for SubframeHeader
impl Unpin for SubframeHeader
impl UnwindSafe for SubframeHeader
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