Crate stream_dct [] [src]

A Rust library for allocation-limited computation of the Discrete Cosine Transform.

1D DCTs are allocation-free but 2D requires allocation.

Features:

  • simd: use SIMD types to speed computation (2D DCT only)
  • cos-approx: use a Taylor series approximation of cosine instead of the stdlib implementation (which is usually much slower but also higher precision)

Structs

DCT1D

An allocation-free one-dimensional Discrete Cosine Transform.

Functions

dct_2d

Perform a 2D DCT on a 1D-packed vector with a given rowstride.