summaryrefslogtreecommitdiff
path: root/libavcodec/opusenc_psy.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-09-24 00:46:44 +0200
committerLynne <dev@lynne.ee>2022-09-26 20:26:54 +0200
commit543a46b4b2ff0f02fa85e45d7b7bcda19d3be9b4 (patch)
tree0eab3a15b25135cdeb66087ac54b1f3355744d97 /libavcodec/opusenc_psy.h
parentdd2ea014ef273157fe9a0e928e77841fbbee9b2f (diff)
downloadffmpeg-543a46b4b2ff0f02fa85e45d7b7bcda19d3be9b4.tar.gz
opus: convert encoder and decoder to lavu/tx
This commit changes both the encoder and decoder to use the new lavu/tx code, which has faster C transforms and more assembly optimizations.
Diffstat (limited to 'libavcodec/opusenc_psy.h')
-rw-r--r--libavcodec/opusenc_psy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/opusenc_psy.h b/libavcodec/opusenc_psy.h
index d4fb096a3d..0a7cdb6f2c 100644
--- a/libavcodec/opusenc_psy.h
+++ b/libavcodec/opusenc_psy.h
@@ -22,6 +22,7 @@
#ifndef AVCODEC_OPUSENC_PSY_H
#define AVCODEC_OPUSENC_PSY_H
+#include "libavutil/tx.h"
#include "libavutil/mem_internal.h"
#include "opusenc.h"
@@ -70,7 +71,8 @@ typedef struct OpusPsyContext {
int max_steps;
float *window[CELT_BLOCK_NB];
- MDCT15Context *mdct[CELT_BLOCK_NB];
+ AVTXContext *mdct[CELT_BLOCK_NB];
+ av_tx_fn mdct_fn[CELT_BLOCK_NB];
int bsize_analysis;
DECLARE_ALIGNED(32, float, scratch)[2048];