]> granicus.if.org Git - libvpx/commit
Fix rounding in ARNR calculation
authorAdrian Grange <agrange@google.com>
Mon, 5 May 2014 16:39:24 +0000 (09:39 -0700)
committerAdrian Grange <agrange@google.com>
Mon, 5 May 2014 18:00:43 +0000 (11:00 -0700)
commit928b34e89561e8d752027693ef9b26882f607523
treea8f05a78055fbb6fa78ad2ac3b2cacaa5f467e0b
parent1b7291d52c8f8c5b8dca0faef6c61c5e0c84bec7
Fix rounding in ARNR calculation

The rounding of the ARNR filter output prior to
normalization by the filter strength was incorrect
when strength = 0.

In this case 1 << (strength - 1) would not create the
required rounding of 0, rather it would outrange. This
patch fixes this issue.

Change-Id: I771809ba34d6052b17d34c870ea11ff67b418dab
vp8/encoder/temporal_filter.c
vp9/encoder/vp9_temporal_filter.c