summaryrefslogtreecommitdiff
path: root/vp8/encoder/segmentation.c
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2020-03-20 09:22:55 +0100
committerClement Courbet <courbet@google.com>2020-03-20 13:33:37 +0100
commit81374532905b376cead0958c543c431bac530620 (patch)
tree01fd3ccc746a17b21a367c97c0ada53270ff2c3e /vp8/encoder/segmentation.c
parenta0765aa9f34e7f5dfa1ba938dbe9e1399a75bf5e (diff)
downloadlibvpx-81374532905b376cead0958c543c431bac530620.tar
libvpx-81374532905b376cead0958c543c431bac530620.tar.gz
libvpx-81374532905b376cead0958c543c431bac530620.tar.bz2
libvpx-81374532905b376cead0958c543c431bac530620.zip
Optimize vp9_get_sub_block_energy.
Because energy scaling is non-decreasing, we can work on the variance and scale after the loop. This avoids costly computations (in particular, log()) within the loop. We've measured that we spend 0.8% of our total time computing the log. Change-Id: I302fc0ecd9fd8cf96ee9f31b8673e82de1b2b3e2
Diffstat (limited to 'vp8/encoder/segmentation.c')
0 files changed, 0 insertions, 0 deletions