pub struct HybridEncodedFrame {
pub silk_frame: SilkEncodedFrame,
pub celt_frame: CeltEncodedFrame,
pub n_samples: usize,
}Expand description
One hybrid-encoded Opus audio frame.
Stores a SILK-encoded low band and a CELT-encoded high band. The decoder
reconstructs the signal by summing both decoded bands; because the encoder
uses a perfect-reconstruction crossover, LP_decoded + HP_decoded ≈ original
up to codec quantisation error.
Fields§
§silk_frame: SilkEncodedFrameSILK payload: the low-band signal (0–HYBRID_CROSSOVER_HZ).
celt_frame: CeltEncodedFrameCELT payload: the high-band signal (HYBRID_CROSSOVER_HZ–Nyquist).
n_samples: usizeNumber of PCM samples in the original frame.
Trait Implementations§
Source§impl Clone for HybridEncodedFrame
impl Clone for HybridEncodedFrame
Source§fn clone(&self) -> HybridEncodedFrame
fn clone(&self) -> HybridEncodedFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HybridEncodedFrame
impl RefUnwindSafe for HybridEncodedFrame
impl Send for HybridEncodedFrame
impl Sync for HybridEncodedFrame
impl Unpin for HybridEncodedFrame
impl UnsafeUnpin for HybridEncodedFrame
impl UnwindSafe for HybridEncodedFrame
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<Src, Dst> ConvertTo<Dst> for Srcwhere
Dst: ConvertFrom<Src>,
impl<Src, Dst> ConvertTo<Dst> for Srcwhere
Dst: ConvertFrom<Src>,
Source§fn convert_to(self) -> Dst
fn convert_to(self) -> Dst
Converts this sample into
Dst using audio-aware scaling. Read moreSource§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