[][src]Trait rustdct::Dct4

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

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

An umbrella trait for algorithms which compute the Discrete Cosine Transform Type 4 (DCT4)

Required methods

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

Computes the DCT Type 4 on the provided buffer, in-place. Uses the provided scratch buffer as scratch space.

Loading content...

Provided methods

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

Computes the DCT Type 4 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_dst4_with_scratch instead.

Loading content...

Implementors

impl<T: DctNum> Dct4<T> for Type4ConvertToFftOdd<T>[src]

impl<T: DctNum> Dct4<T> for Type4ConvertToType3Even<T>[src]

impl<T: DctNum> Dct4<T> for Type4Naive<T>[src]

Loading content...