aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-10-26 13:12:58 +0200
committerLynne <dev@lynne.ee>2022-11-06 14:39:27 +0100
commit4cee7ebd75205bca06ca8010711ae2f83a55caa6 (patch)
tree5f59cfe4a3a636a1e7cb81cea8b214076824c823 /libavcodec/ac3enc.h
parent2508e846a82bcab19fc7feaa573f4b0863b1a8b7 (diff)
downloadffmpeg-4cee7ebd75205bca06ca8010711ae2f83a55caa6.tar.gz
ac3: convert to lavu/tx
Diffstat (limited to 'libavcodec/ac3enc.h')
-rw-r--r--libavcodec/ac3enc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h
index f0dc006759..55e88d69e4 100644
--- a/libavcodec/ac3enc.h
+++ b/libavcodec/ac3enc.h
@@ -31,12 +31,13 @@
#include <stdint.h>
#include "libavutil/opt.h"
+#include "libavutil/tx.h"
+
#include "ac3.h"
#include "ac3defs.h"
#include "ac3dsp.h"
#include "avcodec.h"
#include "codec_internal.h"
-#include "fft.h"
#include "mathops.h"
#include "me_cmp.h"
#include "put_bits.h"
@@ -167,7 +168,8 @@ typedef struct AC3EncodeContext {
#endif
MECmpContext mecc;
AC3DSPContext ac3dsp; ///< AC-3 optimized functions
- FFTContext mdct; ///< FFT context for MDCT calculation
+ AVTXContext *tx; ///< FFT context for MDCT calculation
+ av_tx_fn tx_fn;
const SampleType *mdct_window; ///< MDCT window function array
AC3Block blocks[AC3_MAX_BLOCKS]; ///< per-block info
@@ -257,7 +259,6 @@ typedef struct AC3EncodeContext {
int warned_alternate_bitstream;
/* fixed vs. float function pointers */
- void (*mdct_end)(struct AC3EncodeContext *s);
int (*mdct_init)(struct AC3EncodeContext *s);
/* fixed vs. float templated function pointers */