mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-03 21:00:00 +01:00
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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user