Trait rustdct::Dct2 [−][src]
pub trait Dct2<T: DctNum>: RequiredScratch + Length + Sync + Send {
fn process_dct2_with_scratch(&self, buffer: &mut [T], scratch: &mut [T]);
fn process_dct2(&self, buffer: &mut [T]) { ... }
}
Expand description
A trait for algorithms which compute the Discrete Cosine Transform Type 2 (DCT2)
Required methods
fn process_dct2_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
fn process_dct2_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
Computes the DCT Type 2 on the provided buffer, in-place. Uses the provided scratch
buffer as scratch space.
Does not normalize outputs.
Provided methods
fn process_dct2(&self, buffer: &mut [T])
fn process_dct2(&self, buffer: &mut [T])
Computes the DCT Type 2 on the provided buffer, in-place.
This method may allocate a Vecprocess_dct2_with_scratch
instead.
Does not normalize outputs.