From 8f32196651ee0c8fa3659c84e78407602079e0f1 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Sat, 1 Mar 2008 04:13:55 +0000 Subject: [PATCH] checkasm: relax the threshold for floating-point ssim git-svn-id: svn://svn.videolan.org/x264/trunk@738 df754926-b1dd-0310-bc7b-ec298dee348c --- tools/checkasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.47.3