]> git.videolan.org Git - x264.git/commit
Move adaptive quantization to before ratecontrol, eliminate qcomp bias
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sat, 13 Sep 2008 21:03:12 +0000 (14:03 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 14 Sep 2008 00:27:03 +0000 (17:27 -0700)
commit173b40c276ee187de31ef630fd207a62de1b2cc7
tree09e34abfa288105405dcf1a143bf06e7e2672b30
parent869d5e4146a669f73d8a5ca07b3c04235fda0514
Move adaptive quantization to before ratecontrol, eliminate qcomp bias
This change improves VBV accuracy and improves bit distribution in CRF and 2pass.
Instead of being applied after ratecontrol, AQ becomes part of the complexity measure that ratecontrol uses.
This allows for modularity for changes to AQ; a new AQ algorithm can be introduced simply by introducing a new aq_mode and a corresponding if in adaptive_quant_frame.
This also allows quantizer field smoothing, since quantizers are calculated beofrehand rather during encoding.
Since there is no more reason for it, aq_mode 1 is removed.  The new mode 1 is in a sense a merger of the old modes 1 and 2.
WARNING: This change redefines CRF when using AQ, so output bitrate for a given CRF may be significantly different from before this change!
common/common.c
common/frame.c
common/frame.h
encoder/encoder.c
encoder/ratecontrol.c
encoder/ratecontrol.h
encoder/slicetype.c
x264.c
x264.h