pub struct CeltFrame {
pub config: CeltFrameConfig,
pub energy: CeltEnergy,
pub collapsed_mask: u32,
pub samples: Vec<f32>,
}Expand description
A decoded CELT frame.
Fields§
§config: CeltFrameConfigFrame configuration.
energy: CeltEnergyPer-band energy decoded from the bitstream.
collapsed_mask: u32Bitmask of collapsed (zeroed) bands.
samples: Vec<f32>Decoded output samples.
Implementations§
Source§impl CeltFrame
impl CeltFrame
Sourcepub fn new(config: CeltFrameConfig) -> Self
pub fn new(config: CeltFrameConfig) -> Self
Creates a new zeroed CeltFrame for the given configuration.
Sourcepub fn sample_count(&self) -> usize
pub fn sample_count(&self) -> usize
Returns the number of samples in this frame (per channel).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CeltFrame
impl RefUnwindSafe for CeltFrame
impl Send for CeltFrame
impl Sync for CeltFrame
impl Unpin for CeltFrame
impl UnsafeUnpin for CeltFrame
impl UnwindSafe for CeltFrame
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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