[−][src]Struct rustdct::algorithm::DCT1Naive
Naive O(n^2 ) DCT Type 1 implementation
This implementation is primarily used to test other DCT1 algorithms. For small input sizes, this is actually
faster than DCT1ViaFFT
because we don't have to pay the cost associated with converting the problem to a FFT.
// Computes a naive DCT1 of size 23 use rustdct::DCT1; use rustdct::algorithm::DCT1Naive; let len = 23; let mut input: Vec<f32> = vec![0f32; len]; let mut output: Vec<f32> = vec![0f32; len]; let dct = DCT1Naive::new(len); dct.process_dct1(&mut input, &mut output);
Implementations
impl<T: DCTnum> DCT1Naive<T>
[src]
Trait Implementations
impl<T: DCTnum> DCT1<T> for DCT1Naive<T>
[src]
pub fn process_dct1(&self, input: &mut [T], output: &mut [T])
[src]
impl<T> Length for DCT1Naive<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for DCT1Naive<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for DCT1Naive<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for DCT1Naive<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for DCT1Naive<T>
[src]
impl<T> UnwindSafe for DCT1Naive<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>,