RustDCT is a pure-Rust signal processing library that computes the most common Discrete Cosine Transforms:
The recommended way to use RustDCT is to create a [DCTplanner](/blob/src/plan.rs)
instance, then call its plan_dct1
or plan_dct2
or etc method. Each DCT type has its own method which will choose the best algorithm for the given size.
```rust // Compute a DCT Type 2 of size 1234 use rustdct::DCTplanner;
let mut input: Vec
let mut planner = DCTplanner::new(); let mut dct = planner.plan_dct2(1234);
dct.process(&mut input, &mut output);
```