]> granicus.if.org Git - libvpx/commit
Optimize bilateral filter to improve speed
authorShunyao Li <shunyaoli@google.com>
Mon, 29 Jun 2015 18:54:17 +0000 (11:54 -0700)
committerDebargha Mukherjee <debargha@google.com>
Mon, 29 Jun 2015 21:48:59 +0000 (14:48 -0700)
commitdac589d6d47f3107a14d38d126dbdfac1139a1ed
treeb4eb6d4e17486e1d53711ad8772789c9eb560907
parenta4f4ed60cf63b6169b9db1452b5f2d6ac5323f2b
Optimize bilateral filter to improve speed

Optimization of bilateral filter:
1) Pre-calculate the bilateral filters at all the
levels at the initialization.
2) Convert 1D matrix to 2D matrix, avoid too many
multiplications in the bilateral filter loop.
3) Fix a bug in "loop_bilateral_filter_highbd".
The right-shifted range index can be larger than 255.

Change-Id: I42f6177e896706948e2403bd9edce46e3eb5cbf8
vp9/common/vp9_loopfilter.c
vp9/common/vp9_loopfilter.h