Limit arf interval for low fpf clips.
authorpaulwilkins <paulwilkins@google.com>
Thu, 16 Apr 2015 10:24:38 +0000 (11:24 +0100)
committerpaulwilkins <paulwilkins@google.com>
Thu, 16 Apr 2015 10:50:37 +0000 (11:50 +0100)
commiteffd974b16d4ac8bdb2415b25ba39b09a0e280bf
treebaf6ac042c2ff407d90206c122283b9991cdb3b3
parent3b2510374a8092dd93be912592bf8b3d16ebd5e4
Limit arf interval for low fpf clips.

This patch limits  the maximum arf interval length to
approximately half a second. In some low fps animations in
particular the existing code was selecting an overly long interval
which was hurting visual quality. For a sample problem test clip
(360P animation , 15fps, ~200Kbit/s) this change also improved
metrics by >0.5 db.

There may be some clips where this hurts metrics a little, but the
worst case impact visually is likely to be less than having an
interval that is much too long. On more normal material at 24
fps or higher, the impact is likely to be nil/minimal.

Change-Id: Id8b57413931a670c861213ea91d7cc596375a297
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_ratectrl.c