Function stream_dct::dct_2d [] [src]

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

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.