pub struct Type2And3Naive<T> { /* fields omitted */ }
Naive O(n^2 ) DCT Type 2, DST Type 2, DCT Type 3, and DST Type 3 implementation
use rustdct::{DCT2, DST2, DCT3, DST3};
use rustdct::algorithm::Type2And3Naive;
let len = 23;
let naive = Type2And3Naive::new(len);
let mut dct2_input: Vec<f32> = vec![0f32; len];
let mut dct2_output: Vec<f32> = vec![0f32; len];
naive.process_dct2(&mut dct2_input, &mut dct2_output);
let mut dst2_input: Vec<f32> = vec![0f32; len];
let mut dst2_output: Vec<f32> = vec![0f32; len];
naive.process_dst2(&mut dst2_input, &mut dst2_output);
let mut dct3_input: Vec<f32> = vec![0f32; len];
let mut dct3_output: Vec<f32> = vec![0f32; len];
naive.process_dct3(&mut dct3_input, &mut dct3_output);
let mut dst3_input: Vec<f32> = vec![0f32; len];
let mut dst3_output: Vec<f32> = vec![0f32; len];
naive.process_dst3(&mut dst3_input, &mut dst3_output);
Creates a new DCT2, DCT3, DST2, and DST3 context that will process signals of length len
Computes the DCT Type 2 on the input
buffer and places the result in the output
buffer. Read more
Computes the DCT Type 3 on the input
buffer and places the result in the output
buffer. Read more
Computes the DST Type 2 on the input
buffer and places the result in the output
buffer. Read more
Computes the DST Type 3 on the input
buffer and places the result in the output
buffer. Read more
The FFT size that this algorithm can process
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static