[−][src]Struct rustdct::algorithm::Type4Naive
Naive O(n^2 ) DCT Type 4 and DST Type 4 implementation
// Computes a naive DCT4 of size 23 use rustdct::{DCT4, DST4}; use rustdct::algorithm::Type4Naive; let len = 23; let naive = Type4Naive::new(len); let mut dct4_input: Vec<f32> = vec![0f32; len]; let mut dct4_output: Vec<f32> = vec![0f32; len]; naive.process_dct4(&mut dct4_input, &mut dct4_output); let mut dst4_input: Vec<f32> = vec![0f32; len]; let mut dst4_output: Vec<f32> = vec![0f32; len]; naive.process_dst4(&mut dst4_input, &mut dst4_output);
Methods
impl<T: DCTnum> Type4Naive<T>
[src]
impl<T: DCTnum> Type4Naive<T>
pub fn new(len: usize) -> Self | [src] |
Creates a new DCT4 and DTS4 context that will process signals of length len
Trait Implementations
impl<T: DCTnum> DCT4<T> for Type4Naive<T>
[src]
impl<T: DCTnum> DCT4<T> for Type4Naive<T>
fn process_dct4(&self, input: &mut [T], output: &mut [T]) | [src] |
impl<T: DCTnum> DST4<T> for Type4Naive<T>
[src]
impl<T: DCTnum> DST4<T> for Type4Naive<T>
fn process_dst4(&self, input: &mut [T], output: &mut [T]) | [src] |
impl<T: DCTnum> TransformType4<T> for Type4Naive<T>
[src]
impl<T: DCTnum> TransformType4<T> for Type4Naive<T>
impl<T> Length for Type4Naive<T>
[src]
impl<T> Length for Type4Naive<T>
Auto Trait Implementations
impl<T> Send for Type4Naive<T> where
T: Send,
impl<T> Send for Type4Naive<T> where
T: Send,
impl<T> Sync for Type4Naive<T> where
T: Sync,
impl<T> Sync for Type4Naive<T> where
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |