pub struct Dst1ConvertToFft<T> { /* private fields */ }Expand description
DST Type 1 implementation that converts the problem into a FFT of size 2 * (n + 1)
// Computes a DST Type 1 of size 1234
use rustdct::Dst1;
use rustdct::algorithm::Dst1ConvertToFft;
use rustdct::rustfft::FftPlanner;
let len = 1234;
let mut planner = FftPlanner::new();
let fft = planner.plan_fft_forward(2 * (len + 1));
let dct = Dst1ConvertToFft::new(fft);
let mut buffer = vec![0f32; len];
dct.process_dst1(&mut buffer);Implementations§
Trait Implementations§
Source§impl<T: DctNum> Dst1<T> for Dst1ConvertToFft<T>
impl<T: DctNum> Dst1<T> for Dst1ConvertToFft<T>
Source§fn process_dst1_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
fn process_dst1_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
Computes the DST Type 1 on the provided buffer, in-place. Uses the provided
scratch buffer as scratch space. Read moreSource§fn process_dst1(&self, buffer: &mut [T])
fn process_dst1(&self, buffer: &mut [T])
Computes the DST Type 1 on the provided buffer, in-place. Read more
Source§impl<T> Length for Dst1ConvertToFft<T>
impl<T> Length for Dst1ConvertToFft<T>
Source§impl<T: DctNum> RequiredScratch for Dst1ConvertToFft<T>
impl<T: DctNum> RequiredScratch for Dst1ConvertToFft<T>
fn get_scratch_len(&self) -> usize
Auto Trait Implementations§
impl<T> Freeze for Dst1ConvertToFft<T>
impl<T> !RefUnwindSafe for Dst1ConvertToFft<T>
impl<T> Send for Dst1ConvertToFft<T>
impl<T> Sync for Dst1ConvertToFft<T>
impl<T> Unpin for Dst1ConvertToFft<T>
impl<T> !UnwindSafe for Dst1ConvertToFft<T>
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