diff options
author | Claudio Freire <klaussfreire@gmail.com> | 2015-10-12 03:56:22 -0300 |
---|---|---|
committer | Claudio Freire <klaussfreire@gmail.com> | 2015-10-12 03:56:22 -0300 |
commit | b629c67ddfceb7026e407685f04d1bb09cb08d31 (patch) | |
tree | 71bd57e7a1b2d8bd8bbc5d82b259bd847e4fb853 /libavcodec/aacenc_quantization.h | |
parent | ce0834bdd6e6490d240d76ec8d7845ca0aef1e44 (diff) | |
download | ffmpeg-b629c67ddfceb7026e407685f04d1bb09cb08d31.tar.gz |
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.
Diffstat (limited to 'libavcodec/aacenc_quantization.h')
-rw-r--r-- | libavcodec/aacenc_quantization.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacenc_quantization.h b/libavcodec/aacenc_quantization.h index 1c3df38e9f..69f97396ff 100644 --- a/libavcodec/aacenc_quantization.h +++ b/libavcodec/aacenc_quantization.h @@ -278,4 +278,6 @@ static inline void quantize_and_encode_band(struct AACEncContext *s, PutBitConte INFINITY, NULL, NULL, rtz); } +#include "aacenc_quantization_misc.h" + #endif /* AVCODEC_AACENC_QUANTIZATION_H */ |