AAC encoder: memoize quantize_band_cost
authorClaudio Freire <klaussfreire@gmail.com>
Mon, 12 Oct 2015 06:56:22 +0000 (03:56 -0300)
committerClaudio Freire <klaussfreire@gmail.com>
Mon, 12 Oct 2015 06:56:22 +0000 (03:56 -0300)
commitb629c67ddfceb7026e407685f04d1bb09cb08d31
tree71bd57e7a1b2d8bd8bbc5d82b259bd847e4fb853
parentce0834bdd6e6490d240d76ec8d7845ca0aef1e44
AAC encoder: memoize quantize_band_cost

The bulk of calls to quantize_band_cost are replaced
by a call to a version that memoizes, greatly improving
performance, since during coefficient search there is
a great deal of repeat work.

Memoization cannot always be applied, so do this in a
different function, and leave the original as-is.
libavcodec/Makefile
libavcodec/aaccoder_twoloop.h
libavcodec/aacenc.c
libavcodec/aacenc.h
libavcodec/aacenc_quantization.h
libavcodec/aacenc_quantization_misc.h [new file with mode: 0644]
libavcodec/mips/aaccoder_mips.c