Index: source/libvpx/test/fdct4x4_test.cc |
=================================================================== |
--- source/libvpx/test/fdct4x4_test.cc (revision 278778) |
+++ source/libvpx/test/fdct4x4_test.cc (working copy) |
@@ -136,12 +136,13 @@ |
input_block[j] = rnd.Rand8() - rnd.Rand8(); |
input_extreme_block[j] = rnd.Rand8() % 2 ? 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; |
+ } |
fwd_txfm_ref(input_extreme_block, output_ref_block, pitch_, tx_type_); |
REGISTER_STATE_CHECK(RunFwdTxfm(input_extreme_block, |
@@ -375,4 +376,19 @@ |
make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 3))); |
#endif |
+#if HAVE_AVX2 |
+INSTANTIATE_TEST_CASE_P( |
+ AVX2, Trans4x4DCT, |
+ ::testing::Values( |
+ make_tuple(&vp9_fdct4x4_avx2, |
+ &vp9_idct4x4_16_add_c, 0))); |
+INSTANTIATE_TEST_CASE_P( |
+ AVX2, Trans4x4HT, |
+ ::testing::Values( |
+ make_tuple(&vp9_fht4x4_avx2, &vp9_iht4x4_16_add_c, 0), |
+ make_tuple(&vp9_fht4x4_avx2, &vp9_iht4x4_16_add_c, 1), |
+ make_tuple(&vp9_fht4x4_avx2, &vp9_iht4x4_16_add_c, 2), |
+ make_tuple(&vp9_fht4x4_avx2, &vp9_iht4x4_16_add_c, 3))); |
+#endif |
+ |
} // namespace |