dct_2d

Function dct_2d 

Source
pub fn dct_2d(packed_2d: &[f64], rowstride: usize) -> Vec<f64>
Expand description

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

E.g. a vector of length 9 with a rowstride of 3 will be processed as a 3x3 matrix.

Returns a vector of the same size packed in the same way.