pub trait Dct4<T: DctNum>:
RequiredScratch
+ Length
+ Sync
+ Send {
// Required method
fn process_dct4_with_scratch(&self, buffer: &mut [T], scratch: &mut [T]);
// Provided method
fn process_dct4(&self, buffer: &mut [T]) { ... }
}
Expand description
A trait for algorithms which compute the Discrete Cosine Transform Type 4 (DCT4)
Required Methods§
Sourcefn process_dct4_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
fn process_dct4_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
Computes the DCT Type 4 on the provided buffer, in-place. Uses the provided scratch
buffer as scratch space.
Does not normalize outputs.
Provided Methods§
Sourcefn process_dct4(&self, buffer: &mut [T])
fn process_dct4(&self, buffer: &mut [T])
Computes the DCT Type 4 on the provided buffer, in-place.
This method may allocate a Vecprocess_dst4_with_scratch
instead.
Does not normalize outputs.