Only call vp8_find_near_mvs() once for each macroblock
authorYunqing Wang <yunqingwang@google.com>
Wed, 14 Dec 2011 20:35:04 +0000 (15:35 -0500)
committerYunqing Wang <yunqingwang@google.com>
Thu, 15 Dec 2011 16:19:18 +0000 (11:19 -0500)
commite06c242baa46ead2fb3d9801b5197ee199f8c60d
tree1c034b4a8f8ad3a623adba68c7178463b24bdb7c
parentc4aeff94b16a6f71d6bea91c442d8b94056d9a75
Only call vp8_find_near_mvs() once for each macroblock

While doing motion search on a macroblock, we usually call
vp8_find_near_mvs once per reference frame. Actually, for
different reference frames, the only difference in calculating
these near_mvs is they may have different sign_bias, which
causes a sign change in resulting near_mvs. In this change, we
only do find_near_mvs for the first reference frame. For other
reference frames, only need to adjust the near_mvs according to
that reference frame's sign_bias value.

Change-Id: I661394b49c6ad79fed7d0f2eb2be239b9c56f149
vp8/encoder/pickinter.c
vp8/encoder/rdopt.c