summaryrefslogtreecommitdiff
path: root/test/dct32x32_test.cc
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2014-06-02 16:40:01 -0700
committerJingning Han <jingning@google.com>2014-06-03 14:20:47 -0700
commit5c2696c378fbbfe8ab894506e23fb79d596d0c43 (patch)
tree4bc28ae7923dc23a29dd097aff0f3d681b48c5ed /test/dct32x32_test.cc
parentf13c99562ca6a6a8a543a911cdf1d89a526d30eb (diff)
downloadlibvpx-5c2696c378fbbfe8ab894506e23fb79d596d0c43.tar.gz
Rework unit test for 8x8 transformation
This commit reworks the unit test for 8x8 forward/inverse transformation. It adds extreme input value test to detect overflow issues in the intermediate steps. It temporarily disables unit test for the SSSE3 version, which showed overflow failure in the new test conditions. Change-Id: I7caf10bba4b6db031add65d8c0eb99426b38aa42
Diffstat (limited to 'test/dct32x32_test.cc')
-rw-r--r--test/dct32x32_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dct32x32_test.cc b/test/dct32x32_test.cc
index 72c0bd69d..501c69621 100644
--- a/test/dct32x32_test.cc
+++ b/test/dct32x32_test.cc
@@ -179,12 +179,13 @@ TEST_P(Trans32x32Test, MemCheck) {
input_block[j] = rnd.Rand8() - rnd.Rand8();
input_extreme_block[j] = rnd.Rand8() & 1 ? 255 : -255;
}
- if (i == 0)
+ if (i == 0) {
for (int j = 0; j < kNumCoeffs; ++j)
input_extreme_block[j] = 255;
- if (i == 1)
+ } else if (i == 1) {
for (int j = 0; j < kNumCoeffs; ++j)
input_extreme_block[j] = -255;
+ }
const int stride = 32;
vp9_fdct32x32_c(input_extreme_block, output_ref_block, stride);