diff options
author | Lynne <dev@lynne.ee> | 2022-09-24 00:46:44 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-09-26 20:26:54 +0200 |
commit | 543a46b4b2ff0f02fa85e45d7b7bcda19d3be9b4 (patch) | |
tree | 0eab3a15b25135cdeb66087ac54b1f3355744d97 /libavcodec/opus_celt.h | |
parent | dd2ea014ef273157fe9a0e928e77841fbbee9b2f (diff) | |
download | ffmpeg-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/opus_celt.h')
-rw-r--r-- | libavcodec/opus_celt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/opus_celt.h b/libavcodec/opus_celt.h index 661ca251de..291a544298 100644 --- a/libavcodec/opus_celt.h +++ b/libavcodec/opus_celt.h @@ -30,10 +30,10 @@ #include "opus_pvq.h" #include "opusdsp.h" -#include "mdct15.h" #include "libavutil/float_dsp.h" #include "libavutil/libm.h" #include "libavutil/mem_internal.h" +#include "libavutil/tx.h" #define CELT_VECTORS 11 #define CELT_ALLOC_STEPS 6 @@ -93,7 +93,8 @@ typedef struct CeltBlock { struct CeltFrame { // constant values that do not change during context lifetime AVCodecContext *avctx; - MDCT15Context *imdct[4]; + AVTXContext *tx[4]; + av_tx_fn tx_fn[4]; AVFloatDSPContext *dsp; CeltBlock block[2]; CeltPVQ *pvq; |