quantize test: check skip_block
authorJohann <johannkoenig@google.com>
Tue, 8 Aug 2017 21:21:58 +0000 (14:21 -0700)
committerJohann <johannkoenig@google.com>
Tue, 8 Aug 2017 21:21:58 +0000 (14:21 -0700)
Not all sizes were tested previously. Only 4x4 and 32x32

Change-Id: I4b4beab1b92a810a097a7306de04cc9e0e260315

test/vp9_quantize_test.cc

index ea45613..e929699 100644 (file)
@@ -141,7 +141,9 @@ TEST_P(VP9QuantizeTest, OperationCheck) {
   uint16_t eob, ref_eob;
 
   for (int i = 0; i < number_of_iterations; ++i) {
-    const int skip_block = i == 0;
+    // Test skip block for the first three iterations to catch all the different
+    // sizes.
+    const int skip_block = i < 3;
     TX_SIZE sz;
     if (max_size_ == 16) {
       sz = (TX_SIZE)(i % 3);  // TX_4X4, TX_8X8 TX_16X16
@@ -195,7 +197,7 @@ TEST_P(VP9QuantizeTest, EOBCheck) {
   uint16_t eob, ref_eob;
 
   for (int i = 0; i < number_of_iterations; ++i) {
-    int skip_block = i == 0;
+    int skip_block = i < 3;
     TX_SIZE sz;
     if (max_size_ == 16) {
       sz = (TX_SIZE)(i % 3);  // TX_4X4, TX_8X8 TX_16X16