diff options
author | Yaowu Xu <yaowu@google.com> | 2016-06-22 10:41:52 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2016-06-22 17:55:14 +0000 |
commit | ef665996ae59a43575272449d0120a67457a7856 (patch) | |
tree | f5e540eeae59e7b2643a92d0df46635d0a20e254 /vpx_ports/x86.h | |
parent | b3933e2d3ccf0de83441eac9d22a145c20ac6803 (diff) | |
download | libvpx-ef665996ae59a43575272449d0120a67457a7856.tar libvpx-ef665996ae59a43575272449d0120a67457a7856.tar.gz libvpx-ef665996ae59a43575272449d0120a67457a7856.tar.bz2 libvpx-ef665996ae59a43575272449d0120a67457a7856.zip |
Prevent negative variance
Due to rounding used computation, HDB variance computation may produce
slightly negative values. This commit adds clamping to make sure
output variance values for 10 and 12 to be non-negative.
Change-Id: Id679aa55a4c201958c4c7d28cd8733b9246a71c8
Diffstat (limited to 'vpx_ports/x86.h')
0 files changed, 0 insertions, 0 deletions