[−][src]Struct rustdct::algorithm::Dst5Naive
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
impl<T: DctNum> Dst5Naive<T>
[src]
pub fn new(len: usize) -> Self
[src]
Creates a new DST5 context that will process signals of length len
Trait Implementations
impl<T: DctNum> Dst5<T> for Dst5Naive<T>
[src]
pub fn process_dst5_with_scratch(&self, buffer: &mut [T], scratch: &mut [T])
[src]
pub fn process_dst5(&self, buffer: &mut [T])
[src]
impl<T> Length for Dst5Naive<T>
[src]
impl<T> RequiredScratch for Dst5Naive<T>
[src]
pub fn get_scratch_len(&self) -> usize
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Dst5Naive<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Dst5Naive<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Dst5Naive<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Dst5Naive<T>
[src]
impl<T> UnwindSafe for Dst5Naive<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>,