[x264-devel] commit: Move adaptive quantization to before ratecontrol, eliminate qcomp bias (Jason Garrett-Glaser )
git version control
git at videolan.org
Sun Sep 14 02:23:55 CEST 2008
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Sat Sep 13 14:03:12 2008 -0700| [173b40c276ee187de31ef630fd207a62de1b2cc7] | committer: Jason Garrett-Glaser
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!
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=173b40c276ee187de31ef630fd207a62de1b2cc7
---
common/common.c | 2 +-
common/frame.c | 3 ++
common/frame.h | 2 +
encoder/encoder.c | 8 ++--
encoder/ratecontrol.c | 84 ++++++++++++------------------------------------
encoder/ratecontrol.h | 3 +-
encoder/slicetype.c | 47 +++++++++++++++++++++------
x264.c | 5 +--
x264.h | 5 +--
9 files changed, 73 insertions(+), 86 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=173b40c276ee187de31ef630fd207a62de1b2cc7
More information about the x264-devel
mailing list