summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-10-28 21:36:10 +0200
committerLynne <dev@lynne.ee>2022-11-06 14:39:33 +0100
commit469cd8d7fa55ebd07be31e4c5bd0ed4b45c551dc (patch)
tree39a6426364b9fdd54468fc16b0bc6137c42927c7 /libavcodec/aacdec.c
parent4cee7ebd75205bca06ca8010711ae2f83a55caa6 (diff)
downloadffmpeg-469cd8d7fa55ebd07be31e4c5bd0ed4b45c551dc.tar.gz
aacdec: convert to lavu/tx and support fixed-point 960-sample decoding
This patch replaces the transform used in AAC with lavu/tx and removes the limitation on only being able to decode 960-sample files with the float decoder. This commit also removes a whole bunch of unnecessary and slow lifting steps the decoder did to compensate for the poor accuracy of the old integer transformation code. Overall float decoder speedup on Zen 3 for 64kbps: 32%
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r--libavcodec/aacdec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 2fdfd6b221..ca31540d3c 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -32,16 +32,14 @@
* @author Maxim Gavrilov ( maxim.gavrilov gmail com )
*/
-#define FFT_FLOAT 1
#define USE_FIXED 0
+#define TX_TYPE AV_TX_FLOAT_MDCT
#include "libavutil/float_dsp.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h"
-#include "fft.h"
-#include "mdct15.h"
#include "lpc.h"
#include "kbdwin.h"
#include "sinewin.h"