shithub: dav1d

Download patch

ref: 84b7a8615354b32e4e9bd75f8585c929420eca5e
parent: d9470160313e6ccccce968b62e0de43ce5b638a2
author: Martin Storsjö <[email protected]>
date: Tue Nov 6 09:08:38 EST 2018

checkasm: Extend mc testing for any combination of 2-32 x 2-32, for OBMC

av1-1-b8-00-quantizer-55, -56 and -59 actually invokes the mc function
with e.g. 2x16.

--- a/tests/checkasm/mc.c
+++ b/tests/checkasm/mc.c
@@ -55,8 +55,10 @@
             for (int mxy = 0; mxy < 4; mxy++)
                 if (check_func(c->mc[filter], "mc_%s_w%d_%s_%dbpc",
                     filter_names[filter], w, mxy_names[mxy], BITDEPTH))
-                    for (int h = imax(w / 4, 2); h <= imin(w * 4, 128); h <<= 1)
-                    {
+                {
+                    const int min = w <= 32 ? 2 : w / 4;
+                    const int max = imax(imin(w * 4, 128), 32);
+                    for (int h = min; h <= max; h <<= 1) {
                         const int mx = (mxy & 1) ? rand() % 15 + 1 : 0;
                         const int my = (mxy & 2) ? rand() % 15 + 1 : 0;
 
@@ -67,6 +69,7 @@
 
                         bench_new(a_dst, w, src, w, w, h, mx, my);
                     }
+                }
     report("mc");
 }