pub struct Type4ConvertToType3Even<T> { /* fields omitted */ }
DCT4 and DST4 implementation that converts the problem into two DCT3 of half size.
If the inner DCT3 is O(nlogn), then so is this. This algorithm can only be used if the problem size is even.
use std::sync::Arc;
use rustdct::DCT4;
use rustdct::algorithm::Type4ConvertToType3Even;
use rustdct::DCTplanner;
let len = 1234;
let mut input: Vec<f32> = vec![0f32; len];
let mut output: Vec<f32> = vec![0f32; len];
let mut planner = DCTplanner::new();
let inner_dct3 = planner.plan_dct3(len / 2);
let dct = Type4ConvertToType3Even::new(inner_dct3);
dct.process_dct4(&mut input, &mut output);
Creates a new DCT4 context that will process signals of length inner_dct.len() * 2
.
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
)