summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2017-08-08 14:21:58 -0700
committerJohann <johannkoenig@google.com>2017-08-08 14:21:58 -0700
commit357adb68b21c825475e8f8142d66797bd8a8c5b4 (patch)
tree0340581a4d4e8645a2ebe5a8a80ac05c7ca02375 /test
parent1092cc7f1a0c08b6a19a8e4cc0cc04dd990e4601 (diff)
downloadlibvpx-357adb68b21c825475e8f8142d66797bd8a8c5b4.tar
libvpx-357adb68b21c825475e8f8142d66797bd8a8c5b4.tar.gz
libvpx-357adb68b21c825475e8f8142d66797bd8a8c5b4.tar.bz2
libvpx-357adb68b21c825475e8f8142d66797bd8a8c5b4.zip
quantize test: check skip_block
Not all sizes were tested previously. Only 4x4 and 32x32 Change-Id: I4b4beab1b92a810a097a7306de04cc9e0e260315
Diffstat (limited to 'test')
-rw-r--r--test/vp9_quantize_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc
index ea4561353..e929699df 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