test_intra_pred_speed: match above ext w/reconintra
authorJames Zern <jzern@google.com>
Thu, 9 Dec 2021 05:35:26 +0000 (21:35 -0800)
committerJames Zern <jzern@google.com>
Thu, 9 Dec 2021 05:35:26 +0000 (21:35 -0800)
only 2 x block_size is needed

+ remove a related TODO; C & assembly rely on this extension

Change-Id: Iea430267624251cccbbdaec8045eb81d01ae1db1

test/test_intra_pred_speed.cc

index 08100a1..28b3484 100644 (file)
@@ -48,11 +48,9 @@ struct IntraPredTestMem {
     for (int i = 0; i < kBPS; ++i) left[i] = rnd.Rand16() & mask;
     for (int i = -1; i < kBPS; ++i) above[i] = rnd.Rand16() & mask;
 
-    // some code assumes the top row has been extended:
-    // d45/d63 C-code, for instance, but not the assembly.
-    // TODO(jzern): this style of extension isn't strictly necessary.
+    // d45/d63 require the top row to be extended.
     ASSERT_LE(block_size, kBPS);
-    for (int i = block_size; i < 2 * kBPS; ++i) {
+    for (int i = block_size; i < 2 * block_size; ++i) {
       above[i] = above[block_size - 1];
     }
   }