pub struct Type4Naive<T> { /* fields omitted */ }
Naive O(n^2 ) DCT Type 4 and DST Type 4 implementation
use rustdct::{DCT4, DST4};
use rustdct::algorithm::Type4Naive;
let len = 23;
let naive = Type4Naive::new(len);
let mut dct4_input: Vec<f32> = vec![0f32; len];
let mut dct4_output: Vec<f32> = vec![0f32; len];
naive.process_dct4(&mut dct4_input, &mut dct4_output);
let mut dst4_input: Vec<f32> = vec![0f32; len];
let mut dst4_output: Vec<f32> = vec![0f32; len];
naive.process_dst4(&mut dst4_input, &mut dst4_output);
Creates a new DCT4 and DTS4 context that will process signals of length len
Computes the DCT Type 4 on the input
buffer and places the result in the output
buffer. Read more
Computes the DST Type 4 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
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
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
)