diff options
author | James Zern <jzern@google.com> | 2012-08-15 11:54:41 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2012-08-21 08:30:26 -0700 |
commit | e57394aa1d201ea2c02f5c6c0dce613b5d26ab88 (patch) | |
tree | 074d9a79adaa25c2304a9f1aae32c09d8a8214a5 | |
parent | 6cb50ce5274d9a992351971b8eba1f5c41ee1adb (diff) | |
download | libvpx-e57394aa1d201ea2c02f5c6c0dce613b5d26ab88.tar libvpx-e57394aa1d201ea2c02f5c6c0dce613b5d26ab88.tar.gz libvpx-e57394aa1d201ea2c02f5c6c0dce613b5d26ab88.tar.bz2 libvpx-e57394aa1d201ea2c02f5c6c0dce613b5d26ab88.zip |
sixtap_predict_test: fix msvc build
pass a variable to make_tuple() rather than a function, fixes type
errors
Change-Id: I5e04b61b5ab58cc0090ef21119486ca04853af61
-rw-r--r-- | test/sixtap_predict_test.cc | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/test/sixtap_predict_test.cc b/test/sixtap_predict_test.cc index f29414e23..84b89881f 100644 --- a/test/sixtap_predict_test.cc +++ b/test/sixtap_predict_test.cc @@ -156,33 +156,49 @@ TEST_P(SixtapPredictTest, TestWithRandomData) { } using std::tr1::make_tuple; + +const sixtap_predict_fn_t sixtap_16x16_c = vp8_sixtap_predict16x16_c; +const sixtap_predict_fn_t sixtap_8x8_c = vp8_sixtap_predict8x8_c; +const sixtap_predict_fn_t sixtap_8x4_c = vp8_sixtap_predict8x4_c; +const sixtap_predict_fn_t sixtap_4x4_c = vp8_sixtap_predict4x4_c; INSTANTIATE_TEST_CASE_P( C, SixtapPredictTest, ::testing::Values( - make_tuple(16, 16, vp8_sixtap_predict16x16_c), - make_tuple(8, 8, vp8_sixtap_predict8x8_c), - make_tuple(8, 4, vp8_sixtap_predict8x4_c), - make_tuple(4, 4, vp8_sixtap_predict4x4_c))); + make_tuple(16, 16, sixtap_16x16_c), + make_tuple(8, 8, sixtap_8x8_c), + make_tuple(8, 4, sixtap_8x4_c), + make_tuple(4, 4, sixtap_4x4_c))); #if HAVE_MMX +const sixtap_predict_fn_t sixtap_16x16_mmx = vp8_sixtap_predict16x16_mmx; +const sixtap_predict_fn_t sixtap_8x8_mmx = vp8_sixtap_predict8x8_mmx; +const sixtap_predict_fn_t sixtap_8x4_mmx = vp8_sixtap_predict8x4_mmx; +const sixtap_predict_fn_t sixtap_4x4_mmx = vp8_sixtap_predict4x4_mmx; INSTANTIATE_TEST_CASE_P( MMX, SixtapPredictTest, ::testing::Values( - make_tuple(16, 16, vp8_sixtap_predict16x16_mmx), - make_tuple(8, 8, vp8_sixtap_predict8x8_mmx), - make_tuple(8, 4, vp8_sixtap_predict8x4_mmx), - make_tuple(4, 4, vp8_sixtap_predict4x4_mmx))); + make_tuple(16, 16, sixtap_16x16_mmx), + make_tuple(8, 8, sixtap_8x8_mmx), + make_tuple(8, 4, sixtap_8x4_mmx), + make_tuple(4, 4, sixtap_4x4_mmx))); #endif #if HAVE_SSE2 +const sixtap_predict_fn_t sixtap_16x16_sse2 = vp8_sixtap_predict16x16_sse2; +const sixtap_predict_fn_t sixtap_8x8_sse2 = vp8_sixtap_predict8x8_sse2; +const sixtap_predict_fn_t sixtap_8x4_sse2 = vp8_sixtap_predict8x4_sse2; INSTANTIATE_TEST_CASE_P( SSE2, SixtapPredictTest, ::testing::Values( - make_tuple(16, 16, vp8_sixtap_predict16x16_sse2), - make_tuple(8, 8, vp8_sixtap_predict8x8_sse2), - make_tuple(8, 4, vp8_sixtap_predict8x4_sse2))); + make_tuple(16, 16, sixtap_16x16_sse2), + make_tuple(8, 8, sixtap_8x8_sse2), + make_tuple(8, 4, sixtap_8x4_sse2))); #endif #if HAVE_SSSE3 +const sixtap_predict_fn_t sixtap_16x16_ssse3 = vp8_sixtap_predict16x16_ssse3; +const sixtap_predict_fn_t sixtap_8x8_ssse3 = vp8_sixtap_predict8x8_ssse3; +const sixtap_predict_fn_t sixtap_8x4_ssse3 = vp8_sixtap_predict8x4_ssse3; +const sixtap_predict_fn_t sixtap_4x4_ssse3 = vp8_sixtap_predict4x4_ssse3; INSTANTIATE_TEST_CASE_P( SSSE3, SixtapPredictTest, ::testing::Values( - make_tuple(16, 16, vp8_sixtap_predict16x16_ssse3), - make_tuple(8, 8, vp8_sixtap_predict8x8_ssse3), - make_tuple(8, 4, vp8_sixtap_predict8x4_ssse3), - make_tuple(4, 4, vp8_sixtap_predict4x4_ssse3))); + make_tuple(16, 16, sixtap_16x16_ssse3), + make_tuple(8, 8, sixtap_8x8_ssse3), + make_tuple(8, 4, sixtap_8x4_ssse3), + make_tuple(4, 4, sixtap_4x4_ssse3))); #endif } // namespace |