Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ejmahler/rust_dct
Rust library to compute the main four discrete cosine transforms
https://github.com/ejmahler/rust_dct
Last synced: 5 days ago
JSON representation
Rust library to compute the main four discrete cosine transforms
- Host: GitHub
- URL: https://github.com/ejmahler/rust_dct
- Owner: ejmahler
- License: apache-2.0
- Created: 2016-11-13T09:47:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T07:17:33.000Z (about 2 years ago)
- Last Synced: 2024-04-25T02:42:46.482Z (7 months ago)
- Language: Rust
- Size: 330 KB
- Stars: 34
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-open-synth - rust_dct
README
# RustDCT
[![](https://img.shields.io/crates/v/rustdct.svg)](https://crates.io/crates/rustdct)
[![](https://img.shields.io/crates/l/rustdct.svg)](https://crates.io/crates/rustdct)
[![](https://docs.rs/rustdct/badge.svg)](https://docs.rs/rustdct/)
![minimum rustc 1.37](https://img.shields.io/badge/rustc-1.37+-red.svg)RustDCT is a pure-Rust signal processing library that computes the most common Discrete Cosine Transforms:
* Discrete Cosine Transform (DCT) Types 1, 2, 3, 4
* Discrete Sine Transform (DST) Types 1, 2, 3, 4
* Modified Discrete Cosine Transform (MDCT)## Example
```rust
// 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);
```
## Compatibility
The `rustdct` crate requires rustc 1.37 or greater.## Releases
Release notes are available in [RELEASES.md](RELEASES.md).