#include "dsputil.h"

Go to the source code of this file.
Defines | |
| #define | BF(pre, pim, qre, qim, pre1, pim1, qre1, qim1) |
| #define | MUL16(a, b) ((a) * (b)) |
| #define | CMUL(pre, pim, are, aim, bre, bim) |
Functions | |
| int | ff_fft_init (FFTContext *s, int nbits, int inverse) |
| void | ff_fft_calc_c (FFTContext *s, FFTComplex *z) |
| void | ff_fft_permute (FFTContext *s, FFTComplex *z) |
| void | ff_fft_end (FFTContext *s) |
| #define BF | ( | pre, | |||
| pim, | |||||
| qre, | |||||
| qim, | |||||
| pre1, | |||||
| pim1, | |||||
| qre1, | |||||
| qim1 | ) |
| #define CMUL | ( | pre, | |||
| pim, | |||||
| are, | |||||
| aim, | |||||
| bre, | |||||
| bim | ) |
| void ff_fft_calc_c | ( | FFTContext * | s, | |
| FFTComplex * | z | |||
| ) |
Do a complex FFT with the parameters defined in ff_fft_init(). The input data must be permuted before with s->revtab table. No 1.0/sqrt(n) normalization is done.
Definition at line 149 of file fft.c.
References BF, CMUL, FFTContext::exptab, exptab, FFTComplex::im, FFTContext::inverse, FFTContext::nbits, and FFTComplex::re.
Referenced by ff_fft_init().
| void ff_fft_end | ( | FFTContext * | s | ) |
Definition at line 244 of file fft.c.
References av_freep(), FFTContext::exptab, FFTContext::exptab1, and FFTContext::revtab.
Referenced by ff_mdct_end(), and main().

| int ff_fft_init | ( | FFTContext * | s, | |
| int | nbits, | |||
| int | inverse | |||
| ) |
The size of the FFT is 2^nbits. If inverse is TRUE, inverse FFT is done
Definition at line 31 of file fft.c.
References av_freep(), av_malloc(), c1, FFTContext::exptab, FFTContext::exptab1, ff_fft_calc_altivec(), ff_fft_calc_c(), ff_fft_calc_sse(), FFTContext::fft_calc, FFTComplex::im, FFTContext::inverse, M_PI, mm_support(), FFTContext::nbits, NULL, FFTComplex::re, FFTContext::revtab, s1, and s2.
Referenced by ff_mdct_init(), and main().

| void ff_fft_permute | ( | FFTContext * | s, | |
| FFTComplex * | z | |||
| ) |
Do the permutation needed BEFORE calling ff_fft_calc()
Definition at line 226 of file fft.c.
References FFTContext::nbits, and FFTContext::revtab.
Referenced by main().
1.5.5