From 357adb68b21c825475e8f8142d66797bd8a8c5b4 Mon Sep 17 00:00:00 2001 From: Johann Date: Tue, 8 Aug 2017 14:21:58 -0700 Subject: [PATCH] quantize test: check skip_block Not all sizes were tested previously. Only 4x4 and 32x32 Change-Id: I4b4beab1b92a810a097a7306de04cc9e0e260315 --- test/vp9_quantize_test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc index ea45613..e929699 100644 --- a/test/vp9_quantize_test.cc +++ b/test/vp9_quantize_test.cc @@ -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 -- 2.7.4