FFmpeg
|
FFT and MDCT tests. More...
#include "config.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/cpu.h"
#include "libavutil/lfg.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavutil/time.h"
#include "fft.h"
#include "compat/getopt.c"
Go to the source code of this file.
Macros | |
#define | MUL16(a, b) ((a) * (b)) |
#define | CMAC(pre, pim, are, aim, bre, bim) |
#define | RANGE 16384 |
#define | REF_SCALE(x, bits) ((x) / (1 << (bits))) |
#define | FMT "%6d" |
Enumerations | |
enum | tf_transform { TRANSFORM_FFT, TRANSFORM_MDCT, TRANSFORM_RDFT, TRANSFORM_DCT, TRANSFORM_FFT, TRANSFORM_MDCT, TRANSFORM_RDFT, TRANSFORM_DCT } |
Functions | |
static int | fft_ref_init (int nbits, int inverse) |
static void | fft_ref (FFTComplex *tabr, FFTComplex *tab, int nbits) |
static FFTSample | frandom (AVLFG *prng) |
static int | check_diff (FFTSample *tab1, FFTSample *tab2, int n, double scale) |
static void | help (void) |
int | main (int argc, char **argv) |
Variables | |
struct { | |
float re | |
float im | |
} | exptab |
FFT and MDCT tests.
Definition in file fft-test.c.
Definition at line 50 of file fft-test.c.
Referenced by apply_window_int16_c(), celt_cos(), ff_dot_product(), g722_apply_qmf(), pRNG(), and synth_frame().
#define CMAC | ( | pre, | |
pim, | |||
are, | |||
aim, | |||
bre, | |||
bim | |||
) |
#define RANGE 16384 |
Definition at line 67 of file fft-test.c.
Referenced by check_diff(), and frandom().
Definition at line 68 of file fft-test.c.
Referenced by fft_ref().
#define FMT "%6d" |
Definition at line 69 of file fft-test.c.
Referenced by check_diff().
enum tf_transform |
Enumerator | |
---|---|
TRANSFORM_FFT | |
TRANSFORM_MDCT | |
TRANSFORM_RDFT | |
TRANSFORM_DCT | |
TRANSFORM_FFT | |
TRANSFORM_MDCT | |
TRANSFORM_RDFT | |
TRANSFORM_DCT |
Definition at line 228 of file fft-test.c.
|
static |
Definition at line 76 of file fft-test.c.
Referenced by main().
|
static |
Definition at line 95 of file fft-test.c.
Referenced by main().
Definition at line 189 of file fft-test.c.
Referenced by main().
Definition at line 194 of file fft-test.c.
Referenced by main().
Definition at line 214 of file fft-test.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 239 of file fft-test.c.
float re |
Definition at line 73 of file fft-test.c.
Referenced by adjust_jnd(), cfhd_decode(), decode_422_bitstream(), decode_ac_coeffs(), decode_bgr_1(), decode_block(), decode_block_intra(), decode_block_progressive(), decode_block_refinement(), decode_dc_coeffs(), decode_gray_bitstream(), decode_plane_bitstream(), decode_spectrum_and_dequant(), decode_vlc_codeword(), dv_decode_ac(), fast_convolute(), ff_imdct_half_c(), ff_mdct_calc_c(), ff_mdct_calcw_c(), ff_mpeg1_decode_block_intra(), ff_msmpeg4_decode_block(), fft(), fft4(), fft8(), get_bits(), get_bits_le(), get_interleaved_se_golomb(), get_interleaved_ue_golomb(), get_level_prefix(), get_sbits(), get_se_golomb(), get_ue_golomb(), get_ue_golomb_31(), get_ur_golomb(), get_ur_golomb_jpegls(), get_vlc2(), get_xbits(), h261_decode_block(), h263_decode_block(), imc_imdct256(), imdct15_half(), mdec_decode_block_intra(), mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), mpeg2_fast_decode_block_intra(), mpeg2_fast_decode_block_non_intra(), mpeg4_decode_block(), rgb_from_cqt(), show_bits(), skip_bits(), sofalizer_fast_convolute(), webp_get_vlc(), and yuv_from_cqt().
float im |
Definition at line 73 of file fft-test.c.
Referenced by adjust_jnd(), fast_convolute(), ff_imdct_half_c(), ff_mdct_calc_c(), ff_mdct_calcw_c(), fft(), fft4(), fft8(), huf_build_dec_table(), huf_uncompress(), huf_unpack_enc_table(), imc_imdct256(), imdct15_half(), rgb_from_cqt(), sofalizer_fast_convolute(), and yuv_from_cqt().
struct { ... } * exptab |
Referenced by fft15(), fft_calc(), fft_ref(), fft_ref_init(), and main().