]> granicus.if.org Git - libvpx/commit
Let vp9_nb_mvs_inconsistency call log2 just once
authorAngie Chiang <angiebird@google.com>
Wed, 17 Jul 2019 00:49:22 +0000 (17:49 -0700)
committerAngie Chiang <angiebird@google.com>
Wed, 17 Jul 2019 20:14:01 +0000 (13:14 -0700)
commitee554c8cebcb0e3a7a549b98a8b3d398fc88fd07
tree03ad07af7a3bcf5371fb4fe0dd72ba872f56aac3
parent291055812b6962e808619892abe8c87277d843c4
Let vp9_nb_mvs_inconsistency call log2 just once

The bahavior of this function is to compute log2 of mv difference,
i.e. min log2(1 + row_diff * row_diff + col_diff * col_diff)
against available neghbor mvs.
Since the log2 is monotonic increasing, we can compute
min row_diff * row_diff + col_diff * col_diff first
then apply log2 in the end

non_greedy_mv encoding time is reduced by 1.5%

Change-Id: I70d40060e2621daec27229f1f6d9fea0286aa04e
vp9/encoder/vp9_mcomp.c