]> granicus.if.org Git - libvpx/commit
Prevent negative variance
authorYaowu Xu <yaowu@google.com>
Wed, 29 Jun 2016 18:08:17 +0000 (11:08 -0700)
committerYaowu Xu <yaowu@google.com>
Wed, 29 Jun 2016 18:08:17 +0000 (11:08 -0700)
commit63a37d16f332350ae79620543dcb6bf5cd6d19ec
tree888085a57a655f7dfb8e4dcc2880c5f3d1400f72
parent74bb78df827ba2f78b5be2b2cd601351f861c3da
Prevent negative variance

Due to rounding, hbd variance may become negative. This commit put in
check and clamp of negative values to 0.

Change-Id: I610d9c8aa2d4eebe7bc5f2c5624a9e3cadad4c94
vpx_dsp/x86/highbd_variance_sse2.c