Skip to main content

RfftI16

Struct RfftI16 

Source
pub struct RfftI16 {
    pub n_fft_real: usize,
    pub ifft_flag: bool,
    pub bit_reverse_flag: bool,
    pub re_table: &'static [u16],
    pub im_table: &'static [u16],
}
Expand description

Real-valued Fast Fourier Transform (RFFT) and its inverse (RIFFT) implementations for 16-bit fixed-point data.

Input and Output formats for RFFT Q15

RFFT SizeInput FormatOutput FormatNumber of bits to upscale
321.156.105
641.157.96
1281.158.87
2561.159.78
5121.1510.69
10241.1511.510
20481.1512.411
40961.1513.312
81921.1514.213

Input and Output formats for RIFFT Q15

RFFT SizeInput FormatOutput FormatNumber of bits to upscale
321.156.100
641.157.90
1281.158.80
2561.159.70
5121.1510.60
10241.1511.50
20481.1512.40
40961.1513.30
81921.1514.20

Fields§

§n_fft_real: usize§ifft_flag: bool§bit_reverse_flag: bool§re_table: &'static [u16]§im_table: &'static [u16]

Implementations§

Source§

impl RfftI16

Source

pub const fn new( n_fft_real: usize, ifft_flag: bool, bit_reverse_flag: bool, ) -> Self

Source

pub fn run(&self, input: &mut [i16], output: &mut [i16])

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.