diff options
author | Linfeng Zhang <linfengz@google.com> | 2018-02-26 17:22:36 -0800 |
---|---|---|
committer | Linfeng Zhang <linfengz@google.com> | 2018-02-27 10:13:20 -0800 |
commit | 88c23864474a9d357a77317a8c4c2dce709ceee2 (patch) | |
tree | d3885897617591ca19c352f67831ccff187f129f /test | |
parent | 3c6dc743aab5900d8436875f77b2cfd3b0ea893d (diff) | |
download | libvpx-88c23864474a9d357a77317a8c4c2dce709ceee2.tar libvpx-88c23864474a9d357a77317a8c4c2dce709ceee2.tar.gz libvpx-88c23864474a9d357a77317a8c4c2dce709ceee2.tar.bz2 libvpx-88c23864474a9d357a77317a8c4c2dce709ceee2.zip |
Add vp9_iht16x16_256_add_neon()
BUG=webm:1403
Change-Id: I1413cc3dfcb62143ba04fe9b0f8d8b010fdf69b6
Diffstat (limited to 'test')
-rw-r--r-- | test/dct_test.cc | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/test/dct_test.cc b/test/dct_test.cc index 812a904db..66b2add03 100644 --- a/test/dct_test.cc +++ b/test/dct_test.cc @@ -255,11 +255,14 @@ class TransTestBase : public ::testing::TestWithParam<DctParam> { } EXPECT_GE(static_cast<uint32_t>(limit), max_error) - << "Error: 4x4 FHT/IHT has an individual round trip error > " << limit; + << "Error: " << size_ << "x" << size_ + << " transform/inverse transform has an individual round trip error > " + << limit; EXPECT_GE(count_test_block * limit, total_error) - << "Error: 4x4 FHT/IHT has average round trip error > " << limit - << " per block"; + << "Error: " << size_ << "x" << size_ + << " transform/inverse transform has average round trip error > " + << limit << " per block"; } void RunCoeffCheck() { @@ -330,8 +333,8 @@ class TransTestBase : public ::testing::TestWithParam<DctParam> { EXPECT_GE( 4 * DCT_MAX_VALUE << (bit_depth_ - 8), abs(output_block.TopLeftPixel()[h * output_block.stride() + w])) - << "Error: 4x4 FDCT has coefficient larger than " - "4*DCT_MAX_VALUE" + << "Error: " << size_ << "x" << size_ + << " transform has coefficient larger than 4*DCT_MAX_VALUE" << " at " << w << "," << h; if (::testing::Test::HasFailure()) { printf("Size: %d Transform type: %d\n", size_, tx_type_); @@ -396,8 +399,14 @@ class TransTestBase : public ::testing::TestWithParam<DctParam> { } const uint32_t error = diff * diff; EXPECT_GE(static_cast<uint32_t>(limit), error) - << "Error: " << size_ << "x" << size_ << " IDCT has error " - << error << " at " << w << "," << h; + << "Error: " << size_ << "x" << size_ + << " inverse transform has error " << error << " at " << w << "," + << h << " org:" << (int)src_[h * stride_ + w] + << " opt:" << (int)dst_[h * stride_ + w]; + if (::testing::Test::HasFailure()) { + printf("Size: %d Transform type: %d\n", size_, tx_type_); + return; + } } } } @@ -626,7 +635,8 @@ static const FuncInfo ht_neon_func_info[] = { 2 }, #endif { &vp9_fht4x4_c, &iht_wrapper<vp9_iht4x4_16_add_neon>, 4, 1 }, - { &vp9_fht8x8_c, &iht_wrapper<vp9_iht8x8_64_add_neon>, 8, 1 } + { &vp9_fht8x8_c, &iht_wrapper<vp9_iht8x8_64_add_neon>, 8, 1 }, + { &vp9_fht16x16_c, &iht_wrapper<vp9_iht16x16_256_add_neon>, 16, 1 } }; INSTANTIATE_TEST_CASE_P( |