[−][src]Struct rustdct::algorithm::DST6And7Naive
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]
pub fn process_dst6(&self, input: &mut [T], output: &mut [T])
[src]
impl<T: DCTnum> DST6And7<T> for DST6And7Naive<T>
[src]
impl<T: DCTnum> DST7<T> for DST6And7Naive<T>
[src]
pub fn process_dst7(&self, input: &mut [T], output: &mut [T])
[src]
impl<T> Length for DST6And7Naive<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for DST6And7Naive<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for DST6And7Naive<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for DST6And7Naive<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for DST6And7Naive<T>
[src]
impl<T> UnwindSafe for DST6And7Naive<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,