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