diff options
author | Lynne <dev@lynne.ee> | 2021-01-09 16:23:20 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-01-14 01:44:21 +0100 |
commit | 151b41c8cc55eec5e7bf8896c21cdc0c1f99b3cf (patch) | |
tree | 3fd413a3066da49312f979cd3a93d760d13980de /libavcodec/fft-internal.h | |
parent | 9e05421dbe0c733dca2a39f8399db86acc7e82bc (diff) | |
download | ffmpeg-151b41c8cc55eec5e7bf8896c21cdc0c1f99b3cf.tar.gz |
fft: remove 16-bit FFT and MDCT code
No longer used by anything.
Unfortunately the old FFT_FLOAT/FFT_FIXED_32 is left as-is. It's
simply too much work for code meant to be all removed anyway.
Diffstat (limited to 'libavcodec/fft-internal.h')
-rw-r--r-- | libavcodec/fft-internal.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/libavcodec/fft-internal.h b/libavcodec/fft-internal.h index 0a8f7d05cf..3bd5a1123d 100644 --- a/libavcodec/fft-internal.h +++ b/libavcodec/fft-internal.h @@ -34,7 +34,7 @@ (dim) = (are) * (bim) + (aim) * (bre); \ } while (0) -#else +#else /* FFT_FLOAT */ #define SCALE_FLOAT(a, bits) lrint((a) * (double)(1 << (bits))) @@ -52,33 +52,6 @@ #define FIX15(a) av_clip(SCALE_FLOAT(a, 31), -2147483647, 2147483647) -#else /* FFT_FIXED_32 */ - -#include "fft.h" -#include "mathops.h" - -void ff_mdct_calcw_c(FFTContext *s, FFTDouble *output, const FFTSample *input); - -#define FIX15(a) av_clip(SCALE_FLOAT(a, 15), -32767, 32767) - -#define sqrthalf ((int16_t)((1<<15)*M_SQRT1_2)) - -#define BF(x, y, a, b) do { \ - x = (a - b) >> 1; \ - y = (a + b) >> 1; \ - } while (0) - -#define CMULS(dre, dim, are, aim, bre, bim, sh) do { \ - (dre) = (MUL16(are, bre) - MUL16(aim, bim)) >> sh; \ - (dim) = (MUL16(are, bim) + MUL16(aim, bre)) >> sh; \ - } while (0) - -#define CMUL(dre, dim, are, aim, bre, bim) \ - CMULS(dre, dim, are, aim, bre, bim, 15) - -#define CMULL(dre, dim, are, aim, bre, bim) \ - CMULS(dre, dim, are, aim, bre, bim, 0) - #endif /* FFT_FIXED_32 */ #endif /* FFT_FLOAT */ |