diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-02-11 03:25:06 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-02-14 09:15:36 +0300 |
commit | e538108c219d7b3628a9ec33d85bf252ee70c957 (patch) | |
tree | 796c62422dbc5f3e555d84ce57557729c7a8c900 /libavcodec/opus.h | |
parent | d2119f624d392f53f80c3d36ffaadca23aef8a10 (diff) |
opus_celt: move quantization and band decoding to opus_pvq.c
A huge amount can be reused by the encoder, as the only thing
which needs to be done would be to add a 10 line celt_icwrsi,
a wrapper around it (celt_alg_quant) and templating the
ff_celt_decode_band to replace entropy decoding functions
with entropy encoding.
There is no performance loss but in fact a performance gain of
around 6% which is caused by the compiler being able to optimize
the decoding more efficiently.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opus.h')
-rw-r--r-- | libavcodec/opus.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/opus.h b/libavcodec/opus.h index 2c3d63a7a2..be042497ea 100644 --- a/libavcodec/opus.h +++ b/libavcodec/opus.h @@ -43,16 +43,6 @@ #define CELT_MAX_LOG_BLOCKS 3 #define CELT_MAX_FRAME_SIZE (CELT_SHORT_BLOCKSIZE * (1 << CELT_MAX_LOG_BLOCKS)) #define CELT_MAX_BANDS 21 -#define CELT_VECTORS 11 -#define CELT_ALLOC_STEPS 6 -#define CELT_FINE_OFFSET 21 -#define CELT_MAX_FINE_BITS 8 -#define CELT_NORM_SCALE 16384 -#define CELT_QTHETA_OFFSET 4 -#define CELT_QTHETA_OFFSET_TWOPHASE 16 -#define CELT_DEEMPH_COEFF 0.85000610f -#define CELT_POSTFILTER_MINPERIOD 15 -#define CELT_ENERGY_SILENCE (-28.0f) #define SILK_HISTORY 322 #define SILK_MAX_LPC 16 |