pub struct Type2And3ConvertToFft<T> { /* fields omitted */ }
Expand description
DCT2, DST2, DCT3, and DST3 implementation that converts the problem into a FFT of the same size
use rustdct::{Dct2, Dst2, Dct3, Dst3};
use rustdct::algorithm::Type2And3ConvertToFft;
use rustdct::rustfft::FftPlanner;
let len = 1234;
let mut planner = FftPlanner::new();
let fft = planner.plan_fft_forward(len);
let dct = Type2And3ConvertToFft::new(fft);
let mut dct2_buffer = vec![0f32; len];
dct.process_dct2(&mut dct2_buffer);
let mut dst2_buffer = vec![0f32; len];
dct.process_dst2(&mut dst2_buffer);
let mut dct3_buffer = vec![0f32; len];
dct.process_dct3(&mut dct3_buffer);
let mut dst3_buffer = vec![0f32; len];
dct.process_dst3(&mut dst3_buffer);
Creates a new DCT2, DST2, DCT3, and DST3 context that will process signals of length inner_fft.len().
Computes the DCT Type 2 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space. Read more
Computes the DCT Type 2 on the provided buffer, in-place. Read more
Computes the DCT Type 3 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space. Read more
Computes the DCT Type 3 on the provided buffer, in-place. Read more
Computes the DST Type 2 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space. Read more
Computes the DST Type 2 on the provided buffer, in-place. Read more
Computes the DST Type 3 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space. Read more
Computes the DST Type 3 on the provided buffer, in-place. Read more
The FFT size that this algorithm can process
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.