Trait rustdct::mdct::MDCT
[−]
[src]
pub trait MDCT<T: DCTnum>: Length { fn process_split(&mut self, input_a: &[T], input_b: &[T], output: &mut [T]); fn process(&mut self, input: &[T], output: &mut [T]) { ... } }
An umbrella trait for algorithms which compute the Modified Discrete Cosine Transform (MDCT)
Required Methods
fn process_split(&mut self, input_a: &[T], input_b: &[T], output: &mut [T])
Computes the MDCT on the input
buffer and places the result in the output
buffer.
Uses input_a
for the first half of the input, and input_b
for the second half of the input
To make overlapping array segments easier, this method DOES NOT modify the input buffer.
Provided Methods
fn process(&mut self, input: &[T], output: &mut [T])
Computes the MDCT on the input
buffer and places the result in the output
buffer.
To make overlapping array segments easier, this method DOES NOT modify the input buffer.
Implementors
impl<T: DCTnum> MDCT<T> for MDCTNaive<T>
impl<T: DCTnum> MDCT<T> for MDCTViaDCT4<T>