[][src]Struct rustdct::algorithm::DST6And7Naive

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

Naive O(n^2 ) DST Type 6 and DST Type 7 implementation

// Computes a naive DST6 and DST7 of size 23
use rustdct::{DST6, DST7};
use rustdct::algorithm::DST6And7Naive;

let len = 23;
let naive = DST6And7Naive::new(len);
 
let mut dst6_input:  Vec<f32> = vec![0f32; len];
let mut dst6_output: Vec<f32> = vec![0f32; len];
naive.process_dst6(&mut dst6_input, &mut dst6_output);
 
let mut dst7_input:  Vec<f32> = vec![0f32; len];
let mut dst7_output: Vec<f32> = vec![0f32; len];
naive.process_dst7(&mut dst7_input, &mut dst7_output);

Implementations

impl<T: DCTnum> DST6And7Naive<T>[src]

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

Creates a new DST6 and DST7 context that will process signals of length len

Trait Implementations

impl<T: DCTnum> DST6<T> for DST6And7Naive<T>[src]

impl<T: DCTnum> DST6And7<T> for DST6And7Naive<T>[src]

impl<T: DCTnum> DST7<T> for DST6And7Naive<T>[src]

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for DST6And7Naive<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.