Fix to frames considered in arf boost calculation.
authorpaulwilkins <paulwilkins@google.com>
Wed, 1 Nov 2017 14:21:39 +0000 (14:21 +0000)
committerpaulwilkins <paulwilkins@google.com>
Thu, 9 Nov 2017 10:46:10 +0000 (10:46 +0000)
commitd6e29868ac4fc58eadc3c30f4baf45fea0b67f6c
tree913ab4a4a54bc1748f4b2c1877d5b3b4cf8215f8
parenteb7d431cb55c8254fcd0a362e269c1d7a25409ba
Fix to frames considered in arf boost calculation.

For a chosen interval "i" the existing arf boost calculation examined frames
+/- (i-1) frames from the current location in the second pass.

This change checks to make sure that the forward search does not extend
beyond the next key frame in the event that the distance to the next key
frame is < (i - 1).

Small metrics gains on all our  test sets but these are localized to a few clips
(e.g. midres set psnr-hvs sintel -2.59% but overall average was only -0.185%)

Change-Id: I26fc9ce582b6d58fa1113a238395e12ad3123cf6
vp9/encoder/vp9_firstpass.c