| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 int tx_type); | 38 int tx_type); |
| 39 | 39 |
| 40 typedef std::tr1::tuple<fdct_t, idct_t, int> dct_4x4_param_t; | 40 typedef std::tr1::tuple<fdct_t, idct_t, int> dct_4x4_param_t; |
| 41 typedef std::tr1::tuple<fht_t, iht_t, int> ht_4x4_param_t; | 41 typedef std::tr1::tuple<fht_t, iht_t, int> ht_4x4_param_t; |
| 42 | 42 |
| 43 void fdct4x4_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { | 43 void fdct4x4_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { |
| 44 vp9_fdct4x4_c(in, out, stride); | 44 vp9_fdct4x4_c(in, out, stride); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void fht4x4_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { | 47 void fht4x4_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { |
| 48 vp9_short_fht4x4_c(in, out, stride, tx_type); | 48 vp9_fht4x4_c(in, out, stride, tx_type); |
| 49 } | 49 } |
| 50 | 50 |
| 51 class Trans4x4TestBase { | 51 class Trans4x4TestBase { |
| 52 public: | 52 public: |
| 53 virtual ~Trans4x4TestBase() {} | 53 virtual ~Trans4x4TestBase() {} |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 virtual void RunFwdTxfm(const int16_t *in, int16_t *out, int stride) = 0; | 56 virtual void RunFwdTxfm(const int16_t *in, int16_t *out, int stride) = 0; |
| 57 | 57 |
| 58 virtual void RunInvTxfm(const int16_t *out, uint8_t *dst, int stride) = 0; | 58 virtual void RunInvTxfm(const int16_t *out, uint8_t *dst, int stride) = 0; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 274 |
| 275 using std::tr1::make_tuple; | 275 using std::tr1::make_tuple; |
| 276 | 276 |
| 277 INSTANTIATE_TEST_CASE_P( | 277 INSTANTIATE_TEST_CASE_P( |
| 278 C, Trans4x4DCT, | 278 C, Trans4x4DCT, |
| 279 ::testing::Values( | 279 ::testing::Values( |
| 280 make_tuple(&vp9_fdct4x4_c, &vp9_idct4x4_16_add_c, 0))); | 280 make_tuple(&vp9_fdct4x4_c, &vp9_idct4x4_16_add_c, 0))); |
| 281 INSTANTIATE_TEST_CASE_P( | 281 INSTANTIATE_TEST_CASE_P( |
| 282 C, Trans4x4HT, | 282 C, Trans4x4HT, |
| 283 ::testing::Values( | 283 ::testing::Values( |
| 284 make_tuple(&vp9_short_fht4x4_c, &vp9_iht4x4_16_add_c, 0), | 284 make_tuple(&vp9_fht4x4_c, &vp9_iht4x4_16_add_c, 0), |
| 285 make_tuple(&vp9_short_fht4x4_c, &vp9_iht4x4_16_add_c, 1), | 285 make_tuple(&vp9_fht4x4_c, &vp9_iht4x4_16_add_c, 1), |
| 286 make_tuple(&vp9_short_fht4x4_c, &vp9_iht4x4_16_add_c, 2), | 286 make_tuple(&vp9_fht4x4_c, &vp9_iht4x4_16_add_c, 2), |
| 287 make_tuple(&vp9_short_fht4x4_c, &vp9_iht4x4_16_add_c, 3))); | 287 make_tuple(&vp9_fht4x4_c, &vp9_iht4x4_16_add_c, 3))); |
| 288 | 288 |
| 289 #if HAVE_SSE2 | 289 #if HAVE_SSE2 |
| 290 INSTANTIATE_TEST_CASE_P( | 290 INSTANTIATE_TEST_CASE_P( |
| 291 SSE2, Trans4x4DCT, | 291 SSE2, Trans4x4DCT, |
| 292 ::testing::Values( | 292 ::testing::Values( |
| 293 make_tuple(&vp9_fdct4x4_sse2, | 293 make_tuple(&vp9_fdct4x4_sse2, |
| 294 &vp9_idct4x4_16_add_sse2, 0))); | 294 &vp9_idct4x4_16_add_sse2, 0))); |
| 295 INSTANTIATE_TEST_CASE_P( | 295 INSTANTIATE_TEST_CASE_P( |
| 296 SSE2, Trans4x4HT, | 296 SSE2, Trans4x4HT, |
| 297 ::testing::Values( | 297 ::testing::Values( |
| 298 make_tuple(&vp9_short_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 0), | 298 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 0), |
| 299 make_tuple(&vp9_short_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 1), | 299 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 1), |
| 300 make_tuple(&vp9_short_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 2), | 300 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 2), |
| 301 make_tuple(&vp9_short_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 3))); | 301 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 3))); |
| 302 #endif | 302 #endif |
| 303 | 303 |
| 304 } // namespace | 304 } // namespace |
| OLD | NEW |