Trait rustdct::Dst2

source ·
pub trait Dst2<T: DctNum>: RequiredScratch + Length + Sync + Send {
    fn process_dst2_with_scratch(&self, buffer: &mut [T], scratch: &mut [T]);

    fn process_dst2(&self, buffer: &mut [T]) { ... }
}
Expand description

A trait for algorithms which compute the Discrete Sine Transform Type 2 (DST2)

Required Methods

Computes the DST Type 2 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space.

Does not normalize outputs.

Provided Methods

Computes the DST Type 2 on the provided buffer, in-place.

This method may allocate a Vec of scratch space as needed. If you’d like to reuse that allocation between multiple computations, consider calling process_dst2_with_scratch instead.

Does not normalize outputs.

Implementors