[x264-devel] commit: Fix checkasm's generation of deblock inputs (regression in r1517) ( Loren Merritt )

git at videolan.org git at videolan.org
Sat Apr 24 00:40:09 CEST 2010


x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Tue Apr 20 09:40:49 2010 +0000| [f48356d47ae3ecc65a72486604e3ce36dd2d3518] | committer: Jason Garrett-Glaser 

Fix checkasm's generation of deblock inputs (regression in r1517)

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f48356d47ae3ecc65a72486604e3ce36dd2d3518
---

 tools/checkasm.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/checkasm.c b/tools/checkasm.c
index 5d0e98d..228b75f 100644
--- a/tools/checkasm.c
+++ b/tools/checkasm.c
@@ -1101,13 +1101,13 @@ static int check_deblock( int cpu_ref, int cpu_new )
     x264_deblock_init( cpu_new, &db_a );
 
     /* not exactly the real values of a,b,tc but close enough */
-    for( int i = 35; i >= 0; i-- )
+    for( int i = 35, a = 255, c = 250; i >= 0; i-- )
     {
-        int a = 255, c = 250;
         alphas[i] = a;
         betas[i] = (i+1)/2;
-        tcs[i][0] = tcs[i][2] = (c+6)/10;
-        tcs[i][1] = tcs[i][3] = (c+9)/20;
+        tcs[i][0] = tcs[i][3] = (c+6)/10;
+        tcs[i][1] = (c+7)/15;
+        tcs[i][2] = (c+9)/20;
         a = a*9/10;
         c = c*9/10;
     }



More information about the x264-devel mailing list