pub struct MdctNaive {
pub len: usize,
pub scale: f64,
}Fields§
§len: usizeFrame size (N). Full IMDCT output is 2N.
scale: f64Scale factor (double precision in upstream).
Implementations§
Source§impl MdctNaive
impl MdctNaive
pub fn new(len: usize, scale: f64) -> Self
Sourcepub fn imdct_half(&self, dst: &mut [f32], src: &[f32])
pub fn imdct_half(&self, dst: &mut [f32], src: &[f32])
Half-length inverse MDCT.
Input: N coefficients. Output: N samples (half IMDCT), matching upstream’s MDCT semantics.
Sourcepub fn imdct_full(&self, dst: &mut [f32], src: &[f32])
pub fn imdct_full(&self, dst: &mut [f32], src: &[f32])
Full IMDCT.
Input: N coefficients. Output: 2N samples.
Auto Trait Implementations§
impl Freeze for MdctNaive
impl RefUnwindSafe for MdctNaive
impl Send for MdctNaive
impl Sync for MdctNaive
impl Unpin for MdctNaive
impl UnsafeUnpin for MdctNaive
impl UnwindSafe for MdctNaive
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