pub struct Dst1Naive<T> { /* private fields */ }Expand description
Naive O(n^2 ) DST Type 1 implementation
This implementation is primarily used to test other DST1 algorithms.
// Computes a naive DST1 of size 23
use rustdct::Dst1;
use rustdct::algorithm::Dst1Naive;
let len = 23;
let dst = Dst1Naive::new(len);
let mut buffer = vec![0f32; len];
dst.process_dst1(&mut buffer);Implementations§
Trait Implementations§
Source§impl<T: DctNum> Dst1<T> for Dst1Naive<T>
impl<T: DctNum> Dst1<T> for Dst1Naive<T>
Source§fn process_dst1_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
fn process_dst1_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
Computes the DST Type 1 on the provided buffer, in-place. Uses the provided
scratch buffer as scratch space. Read moreSource§fn process_dst1(&self, buffer: &mut [T])
fn process_dst1(&self, buffer: &mut [T])
Computes the DST Type 1 on the provided buffer, in-place. Read more
Source§impl<T> RequiredScratch for Dst1Naive<T>
impl<T> RequiredScratch for Dst1Naive<T>
fn get_scratch_len(&self) -> usize
Auto Trait Implementations§
impl<T> Freeze for Dst1Naive<T>
impl<T> RefUnwindSafe for Dst1Naive<T>where
T: RefUnwindSafe,
impl<T> Send for Dst1Naive<T>where
T: Send,
impl<T> Sync for Dst1Naive<T>where
T: Sync,
impl<T> Unpin for Dst1Naive<T>
impl<T> UnwindSafe for Dst1Naive<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more