diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-12-04 11:57:45 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-12-04 13:51:19 +0300 |
commit | 7b46add7257628bffac96d3002308d1f9e1ed172 (patch) | |
tree | 59176c6dcf8d4fcd6e200b5c0724ac3af9ddc030 /libavcodec/opus_pvq.h | |
parent | ce87e630fa009d0bf78cd7a7599e6efc221e6543 (diff) |
opus_pvq: do not compile encoding/decoding code if the encoder/decoder is disabled
This should save quite a bit of space if either has been disabled for size reasons.
Could just check if the encoding flag is set during runtime on every single location,
however the overhead of branch misses would somewhat decrease performance.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opus_pvq.h')
-rw-r--r-- | libavcodec/opus_pvq.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/opus_pvq.h b/libavcodec/opus_pvq.h index 63cc8c921e..e2f01a01b5 100644 --- a/libavcodec/opus_pvq.h +++ b/libavcodec/opus_pvq.h @@ -37,10 +37,7 @@ struct CeltPVQ { DECLARE_ALIGNED(32, float, hadamard_tmp)[256]; float (*pvq_search)(float *X, int *y, int K, int N); - QUANT_FN(*quant_band); - float (*band_cost)(struct CeltPVQ *pvq, CeltFrame *f, OpusRangeCoder *rc, - int band, float *bits, float lambda); }; void ff_opus_dsp_init_x86(struct CeltPVQ *s); |