#include "libavutil/mathematics.h"
#include "libavutil/lfg.h"
#include "libavutil/log.h"
#include "fft.h"
#include <math.h>
#include <unistd.h>
#include <sys/time.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | MUL16(a, b) ((a) * (b)) |
#define | CMAC(pre, pim, are, aim, bre, bim) |
Enumerations | |
enum | tf_transform { TRANSFORM_FFT, TRANSFORM_MDCT, TRANSFORM_RDFT, TRANSFORM_DCT } |
Functions | |
static void | fft_ref_init (int nbits, int inverse) |
static void | fft_ref (FFTComplex *tabr, FFTComplex *tab, int nbits) |
static void | imdct_ref (float *out, float *in, int nbits) |
static void | mdct_ref (float *output, float *input, int nbits) |
static void | idct_ref (float *output, float *input, int nbits) |
static void | dct_ref (float *output, float *input, int nbits) |
static float | frandom (AVLFG *prng) |
static int64_t | gettime (void) |
static void | check_diff (float *tab1, float *tab2, int n, double scale) |
static void | help (void) |
int | main (int argc, char **argv) |
Variables | |
FFTComplex * | exptab |
Definition in file fft-test.c.
#define CMAC | ( | pre, | |||
pim, | |||||
are, | |||||
aim, | |||||
bre, | |||||
bim | ) |
#define MUL16 | ( | a, | |||
b | ) | ((a) * (b)) |
Definition at line 40 of file fft-test.c.
enum tf_transform |
Definition at line 213 of file fft-test.c.
static void check_diff | ( | float * | tab1, | |
float * | tab2, | |||
int | n, | |||
double | scale | |||
) | [static] |
static void dct_ref | ( | float * | output, | |
float * | input, | |||
int | nbits | |||
) | [static] |
static void fft_ref | ( | FFTComplex * | tabr, | |
FFTComplex * | tab, | |||
int | nbits | |||
) | [static] |
static void fft_ref_init | ( | int | nbits, | |
int | inverse | |||
) | [static] |
static float frandom | ( | AVLFG * | prng | ) | [static] |
static int64_t gettime | ( | void | ) | [static] |
Definition at line 172 of file fft-test.c.
static void help | ( | void | ) | [static] |
Definition at line 198 of file fft-test.c.
static void idct_ref | ( | float * | output, | |
float * | input, | |||
int | nbits | |||
) | [static] |
static void imdct_ref | ( | float * | out, | |
float * | in, | |||
int | nbits | |||
) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 220 of file fft-test.c.
static void mdct_ref | ( | float * | output, | |
float * | input, | |||
int | nbits | |||
) | [static] |
Definition at line 48 of file fft-test.c.