diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-12-04 11:55:45 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-12-04 13:51:19 +0300 |
commit | ce87e630fa009d0bf78cd7a7599e6efc221e6543 (patch) | |
tree | a0dab6973b6b5c9b0ff994b28fc51afcaac0152c /libavcodec/opus_pvq.h | |
parent | 86fda8be3f3892c48474a319e0ef7509dc137e3e (diff) |
opus_celt: deduplicate band quantization/dequantization function
No point in having the same code twice to do exactly the same thing.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opus_pvq.h')
-rw-r--r-- | libavcodec/opus_pvq.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/opus_pvq.h b/libavcodec/opus_pvq.h index 9246337360..63cc8c921e 100644 --- a/libavcodec/opus_pvq.h +++ b/libavcodec/opus_pvq.h @@ -38,14 +38,14 @@ struct CeltPVQ { float (*pvq_search)(float *X, int *y, int K, int N); - QUANT_FN(*decode_band); - QUANT_FN(*encode_band); + QUANT_FN(*quant_band); float (*band_cost)(struct CeltPVQ *pvq, CeltFrame *f, OpusRangeCoder *rc, int band, float *bits, float lambda); }; -int ff_celt_pvq_init (struct CeltPVQ **pvq); void ff_opus_dsp_init_x86(struct CeltPVQ *s); + +int ff_celt_pvq_init(struct CeltPVQ **pvq, int encode); void ff_celt_pvq_uninit(struct CeltPVQ **pvq); #endif /* AVCODEC_OPUS_PVQ_H */ |