[][src]Struct rustdct::algorithm::Dct1Naive

pub struct Dct1Naive<T> { /* fields omitted */ }

Naive O(n^2 ) DCT Type 1 implementation

This implementation is primarily used to test other DCT1 algorithms. For small scratch sizes, this is actually faster than DCT1ViaFFT because we don't have to pay the cost associated with converting the problem to a FFT.

// Computes a naive DCT1 of size 23
use rustdct::Dct1;
use rustdct::algorithm::Dct1Naive;

let len = 23;

let dct = Dct1Naive::new(len);

let mut buffer = vec![0f32; len];
dct.process_dct1(&mut buffer);

Implementations

impl<T: DctNum> Dct1Naive<T>[src]

pub fn new(len: usize) -> Self[src]

Trait Implementations

impl<T: DctNum> Dct1<T> for Dct1Naive<T>[src]

impl<T> Length for Dct1Naive<T>[src]

impl<T> RequiredScratch for Dct1Naive<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Dct1Naive<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Dct1Naive<T> where
    T: Send
[src]

impl<T> Sync for Dct1Naive<T> where
    T: Sync
[src]

impl<T> Unpin for Dct1Naive<T>[src]

impl<T> UnwindSafe for Dct1Naive<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.