[][src]Trait rustdct::Dst1

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

    pub fn process_dst1(&self, buffer: &mut [T]) { ... }
}

An umbrella trait for algorithms which compute the Discrete Sine Transform Type 1 (DST1)

Required methods

pub fn process_dst1_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])[src]

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

Loading content...

Provided methods

pub fn process_dst1(&self, buffer: &mut [T])[src]

Computes the DST Type 1 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, considr calling process_dst1_with_scratch instead.

Loading content...

Implementors

impl<T: DctNum> Dst1<T> for Dst1ConvertToFft<T>[src]

impl<T: DctNum> Dst1<T> for Dst1Naive<T>[src]

Loading content...