[x265] [PATCH 5 of 8] testbench: reduce check precision to avoid ssim_end_4 check failure in seed 0x5604F859 that report by Rajesh

Min Chen chenm003 at 163.com
Thu Oct 1 02:48:45 CEST 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1443652345 18000
# Node ID a9b46cf76b212f696662053eb86d8acbfc045c0a
# Parent  ca0c1df5e0f2452301473fd89fda6871985cc955
testbench: reduce check precision to avoid ssim_end_4 check failure in seed 0x5604F859 that report by Rajesh
---
 source/test/pixelharness.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff -r ca0c1df5e0f2 -r a9b46cf76b21 source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp	Wed Sep 30 17:32:22 2015 -0500
+++ b/source/test/pixelharness.cpp	Wed Sep 30 17:32:25 2015 -0500
@@ -855,7 +855,7 @@
         int width = (rand() % 4) + 1; // range[1-4]
         float cres = ref(sum0, sum1, width);
         float vres = checked_float(opt, sum0, sum1, width);
-        if (fabs(vres - cres) > 0.00001)
+        if (fabs(vres - cres) > 0.0001)
             return false;
 
         reportfail();



More information about the x265-devel mailing list