Limit Q variability in two pass.
authorPaul Wilkins <paulwilkins@google.com>
Fri, 7 Jan 2011 16:33:59 +0000 (16:33 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Fri, 7 Jan 2011 17:23:50 +0000 (17:23 +0000)
commit3af3593c8ecb2a724c3c9f63e2186366550854fa
tree0df4bb3b2f97ed24455faa9c223cfdcf25b3df0b
parent431dac08d10b28803a0b5754337099bc79a79fb5
Limit Q variability in two pass.

In two pass encoding each frame is given an active
Q range to work with. This change limits how much this
Q range can be altered over time from the initial estimate
made for the clip as a whole.

There is some danger this could lead to overshoot or undershoot
in some corner cases but it helps considerably in regard to
clips where either there is a glut or famine of bits in some sections,
particularly near the end of a clip.

Change-Id: I34fcd1af31d2ee3d5444f93e334645254043026e
vp8/encoder/firstpass.c
vp8/encoder/onyx_int.h