summaryrefslogtreecommitdiff
path: root/libavcodec/opus_celt.h
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-05-10 06:47:44 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-05-16 11:22:07 +0100
commit8e7e74df93d18c903164a67c861a428bd4244cb1 (patch)
tree53bc9d9c22ee0a41bbac22560acafc0025829e60 /libavcodec/opus_celt.h
parente6ec482b429b241de0fb3088d87e28777d70ded5 (diff)
downloadffmpeg-8e7e74df93d18c903164a67c861a428bd4244cb1.tar.gz
opus_pvq: port to allow for SIMD functions
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opus_celt.h')
-rw-r--r--libavcodec/opus_celt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/opus_celt.h b/libavcodec/opus_celt.h
index f0d55d600b..b80ade84f2 100644
--- a/libavcodec/opus_celt.h
+++ b/libavcodec/opus_celt.h
@@ -27,6 +27,7 @@
#include <float.h>
#include "opus.h"
+#include "opus_pvq.h"
#include "mdct15.h"
#include "libavutil/float_dsp.h"
@@ -43,6 +44,8 @@
#define CELT_POSTFILTER_MINPERIOD 15
#define CELT_ENERGY_SILENCE (-28.0f)
+typedef struct CeltPVQ CeltPVQ;
+
enum CeltSpread {
CELT_SPREAD_NONE,
CELT_SPREAD_LIGHT,
@@ -92,6 +95,7 @@ struct CeltFrame {
MDCT15Context *imdct[4];
AVFloatDSPContext *dsp;
CeltBlock block[2];
+ CeltPVQ *pvq;
int channels;
int output_channels;
@@ -125,8 +129,6 @@ struct CeltFrame {
int fine_priority[CELT_MAX_BANDS];
int pulses [CELT_MAX_BANDS];
int tf_change [CELT_MAX_BANDS];
-
- DECLARE_ALIGNED(32, float, scratch)[22 * 8]; // MAX(ff_celt_freq_range) * 1<<CELT_MAX_LOG_BLOCKS
};
/* LCG for noise generation */