Prevent severe rate control errors in CBR mode
commitffa06b37083d028b50f27e67ae6ed0c6ee9953bb
authorYaowu Xu <yaowu@google.com>
Tue, 18 Nov 2014 16:52:21 +0000 (18 08:52 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 18 Nov 2014 17:05:57 +0000 (18 09:05 -0800)
tree126502ce22e939244450349e98c51840efac5ec4
parent1687c47bfdff2a4a6d2a07fb143be3f9b21824ff
Prevent severe rate control errors in CBR mode

In rare cases, the interaction between rate correction factor and Q
choices may cause severe oscillating frame sizes that are way off
target bandwidth. This commit adds tracking of rate control results
for last two frames, and use the information to prevent oscillating
Q choices.

Change-Id: I9a6d125a15652b9bcac0e1fec6d7a1aedc4ed97e
vp9/encoder/vp9_ratectrl.c
vp9/encoder/vp9_ratectrl.h