]> granicus.if.org Git - libvpx/commit
vp9: Skip computation of best_sad for newmv, unless needed.
authorMarco <marpan@google.com>
Tue, 31 May 2016 16:37:26 +0000 (09:37 -0700)
committerMarco <marpan@google.com>
Tue, 31 May 2016 17:29:00 +0000 (10:29 -0700)
commitbedf1c3af68c2ae9cbbacf5be05fe8b7d40ae6b4
tree1c8cec11ee789098355e49ad527ab152af04360d
parentf80d8011a0141a28d8e4a02720483bb6bcb09c6b
vp9: Skip computation of best_sad for newmv, unless needed.

For non-rd pickmode:
best_pred_sad, computed for NEWMV-last, is only used for
skipping golden non-zero modes. Add condition to avoid this
computation if not used (i.e, if golden nonzero modes are not used).

And remove code for computing best_pred_sad for NEWMV-golden,
since that sad is not used.

No change in behavior; small speed gain (~1%) for svc encodes.

Change-Id: Ic2cbdef6c4e9a233a57c0db0eeac8ad5fcead366
vp9/encoder/vp9_pickmode.c