pub struct SubFrame {
pub content: SubframeType,
pub wasted_bits: u32,
}Fields§
§content: SubframeType<6> Subframe type:
000000 : SUBFRAME_CONSTANT
000001 : SUBFRAME_VERBATIM
00001x : reserved
0001xx : reserved
001xxx : if(xxx <= 4) SUBFRAME_FIXED, xxx=order ; else reserved
01xxxx : reserved
1xxxxx : SUBFRAME_LPC, xxxxx=order-1
wasted_bits: u32<1+k> ‘Wasted bits-per-sample’ flag:
0: no wasted bits-per-sample in source subblock, k=01: k wasted bits-per-sample in source subblock, k-1 follows, unary coded; e.g. k=3 => 001 follows, k=7 => 0000001 follows.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubFrame
impl RefUnwindSafe for SubFrame
impl Send for SubFrame
impl Sync for SubFrame
impl Unpin for SubFrame
impl UnwindSafe for SubFrame
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