pub struct Dst6And7Naive<T> { /* private fields */ }Expand description
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_buffer = vec![0f32; len];
naive.process_dst6(&mut dst6_buffer);
let mut dst7_buffer = vec![0f32; len];
naive.process_dst7(&mut dst7_buffer);Implementations§
Trait Implementations§
Source§impl<T: DctNum> Dst6<T> for Dst6And7Naive<T>
impl<T: DctNum> Dst6<T> for Dst6And7Naive<T>
Source§fn process_dst6_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
fn process_dst6_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
Computes the DST Type 6 on the provided buffer, in-place. Uses the provided
scratch buffer as scratch space. Read moreSource§fn process_dst6(&self, buffer: &mut [T])
fn process_dst6(&self, buffer: &mut [T])
Computes the DST Type 6 on the provided buffer, in-place. Read more
Source§impl<T: DctNum> Dst7<T> for Dst6And7Naive<T>
impl<T: DctNum> Dst7<T> for Dst6And7Naive<T>
Source§fn process_dst7_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
fn process_dst7_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
Computes the DST Type 7 on the provided buffer, in-place. Uses the provided
scratch buffer as scratch space. Read moreSource§fn process_dst7(&self, buffer: &mut [T])
fn process_dst7(&self, buffer: &mut [T])
Computes the DST Type 7 on the provided buffer, in-place. Read more
Source§impl<T> Length for Dst6And7Naive<T>
impl<T> Length for Dst6And7Naive<T>
Source§impl<T> RequiredScratch for Dst6And7Naive<T>
impl<T> RequiredScratch for Dst6And7Naive<T>
fn get_scratch_len(&self) -> usize
impl<T: DctNum> Dst6And7<T> for Dst6And7Naive<T>
Auto Trait Implementations§
impl<T> Freeze for Dst6And7Naive<T>
impl<T> RefUnwindSafe for Dst6And7Naive<T>where
T: RefUnwindSafe,
impl<T> Send for Dst6And7Naive<T>where
T: Send,
impl<T> Sync for Dst6And7Naive<T>where
T: Sync,
impl<T> Unpin for Dst6And7Naive<T>
impl<T> UnsafeUnpin for Dst6And7Naive<T>
impl<T> UnwindSafe for Dst6And7Naive<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