From: Loren Merritt Date: Sat, 1 Mar 2008 04:13:55 +0000 (+0000) Subject: checkasm: relax the threshold for floating-point ssim X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6d6d2324acc160ac00267da14b21166d89cff92;p=libx264 checkasm: relax the threshold for floating-point ssim git-svn-id: svn://svn.videolan.org/x264/trunk@738 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/tools/checkasm.c b/tools/checkasm.c index e6dda5c7..102f2bfa 100644 --- a/tools/checkasm.c +++ b/tools/checkasm.c @@ -145,7 +145,7 @@ static int check_pixel( int cpu_ref, int cpu_new ) x264_cpu_restore( cpu_new ); res_c = x264_pixel_ssim_wxh( &pixel_c, buf1+2, 32, buf2+2, 32, 32, 28 ); res_a = x264_pixel_ssim_wxh( &pixel_asm, buf1+2, 32, buf2+2, 32, 32, 28 ); - if( fabs(res_c - res_a) > 1e-8 ) + if( fabs(res_c - res_a) > 1e-7 ) { ok = 0; fprintf( stderr, "ssim: %.7f != %.7f [FAILED]\n", res_c, res_a );