Call vp8_find_near_mvs lazily
authorAlpha Lam <hclam@google.com>
Thu, 1 Sep 2011 16:11:23 +0000 (17:11 +0100)
committerAlpha Lam <hclam@google.com>
Fri, 30 Sep 2011 13:48:18 +0000 (14:48 +0100)
commit7bce513afe25ae794f69e9c0c5cdf173630bcb80
tree3815ee16586e14258b3dc14665655bf6890c68b6
parenta572ac8327b6f0de17e223994ea4ceabf3930e0f
Call vp8_find_near_mvs lazily

vp8_find_near_mvs() is being called on all possible reference frames
but the data computed may be used if the loop exits early, which can
be due to x->skip beign set to 1.

Optimize this by call vp8_find_near_mvs() laziy only if it is going
to be used and not computed yet.

Change-Id: Iccdbd4c962a670c9f2c99b8aca8096042ca5dc98
vp8/encoder/pickinter.c