Crates.io | rustdct |
lib.rs | rustdct |
version | 0.7.1 |
source | src |
created_at | 2017-05-24 02:18:34.845513 |
updated_at | 2022-11-08 07:18:03.782531 |
description | Compute Discrete Cosine Transforms (DCT) of any size in O(nlogn) time, in pure Rust. |
homepage | |
repository | https://github.com/ejmahler/rust_dct |
max_upload_size | |
id | 15763 |
size | 301,724 |
RustDCT is a pure-Rust signal processing library that computes the most common Discrete Cosine Transforms:
// Compute a DCT Type 2 of size 1234
use rustdct::DctPlanner;
let mut planner = DctPlanner::new();
let mut dct = planner.plan_dct2(1234);
let mut buffer = vec![0f32; 1234];
dct.process_dct2(&mut buffer);
The rustdct
crate requires rustc 1.37 or greater.
Release notes are available in RELEASES.md.