vc2enc: replace quantization LUT with a smaller division LUT

Multimedia / FFmpeg - Rostislav Pehlivanov [gmail.com] - 10 March 2018 14:40 EST

This commit replaces the huge and impractical LUT which converted coeffs and a quantizer to bits to encode and instead uses a standard multiplication and a shift to replace the division and then codes the values using the regular golomb coding functions.

ea6973a573 vc2enc: replace quantization LUT with a smaller division LUT
libavcodec/vc2enc.c | 118 ++++++++++++++--------------------------------------
1 file changed, 31 insertions(+), 87 deletions(-)

  • Share