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>
Showing
This diff is collapsed.
libavcodec/opus_celt.h
0 → 100644
libavcodec/opus_pvq.c
0 → 100644
This diff is collapsed.
libavcodec/opus_pvq.h
0 → 100644
Please
register
or
sign in
to comment