| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 int tx_type); | 266 int tx_type); |
| 267 | 267 |
| 268 typedef std::tr1::tuple<fdct_t, idct_t, int> dct_16x16_param_t; | 268 typedef std::tr1::tuple<fdct_t, idct_t, int> dct_16x16_param_t; |
| 269 typedef std::tr1::tuple<fht_t, iht_t, int> ht_16x16_param_t; | 269 typedef std::tr1::tuple<fht_t, iht_t, int> ht_16x16_param_t; |
| 270 | 270 |
| 271 void fdct16x16_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { | 271 void fdct16x16_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { |
| 272 vp9_fdct16x16_c(in, out, stride); | 272 vp9_fdct16x16_c(in, out, stride); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void fht16x16_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { | 275 void fht16x16_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { |
| 276 vp9_short_fht16x16_c(in, out, stride, tx_type); | 276 vp9_fht16x16_c(in, out, stride, tx_type); |
| 277 } | 277 } |
| 278 | 278 |
| 279 class Trans16x16TestBase { | 279 class Trans16x16TestBase { |
| 280 public: | 280 public: |
| 281 virtual ~Trans16x16TestBase() {} | 281 virtual ~Trans16x16TestBase() {} |
| 282 | 282 |
| 283 protected: | 283 protected: |
| 284 virtual void RunFwdTxfm(int16_t *in, int16_t *out, int stride) = 0; | 284 virtual void RunFwdTxfm(int16_t *in, int16_t *out, int stride) = 0; |
| 285 | 285 |
| 286 virtual void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) = 0; | 286 virtual void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) = 0; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 500 |
| 501 using std::tr1::make_tuple; | 501 using std::tr1::make_tuple; |
| 502 | 502 |
| 503 INSTANTIATE_TEST_CASE_P( | 503 INSTANTIATE_TEST_CASE_P( |
| 504 C, Trans16x16DCT, | 504 C, Trans16x16DCT, |
| 505 ::testing::Values( | 505 ::testing::Values( |
| 506 make_tuple(&vp9_fdct16x16_c, &vp9_idct16x16_256_add_c, 0))); | 506 make_tuple(&vp9_fdct16x16_c, &vp9_idct16x16_256_add_c, 0))); |
| 507 INSTANTIATE_TEST_CASE_P( | 507 INSTANTIATE_TEST_CASE_P( |
| 508 C, Trans16x16HT, | 508 C, Trans16x16HT, |
| 509 ::testing::Values( | 509 ::testing::Values( |
| 510 make_tuple(&vp9_short_fht16x16_c, &vp9_iht16x16_256_add_c, 0), | 510 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_c, 0), |
| 511 make_tuple(&vp9_short_fht16x16_c, &vp9_iht16x16_256_add_c, 1), | 511 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_c, 1), |
| 512 make_tuple(&vp9_short_fht16x16_c, &vp9_iht16x16_256_add_c, 2), | 512 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_c, 2), |
| 513 make_tuple(&vp9_short_fht16x16_c, &vp9_iht16x16_256_add_c, 3))); | 513 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_c, 3))); |
| 514 | 514 |
| 515 #if HAVE_SSE2 | 515 #if HAVE_SSE2 |
| 516 INSTANTIATE_TEST_CASE_P( | 516 INSTANTIATE_TEST_CASE_P( |
| 517 SSE2, Trans16x16DCT, | 517 SSE2, Trans16x16DCT, |
| 518 ::testing::Values( | 518 ::testing::Values( |
| 519 make_tuple(&vp9_fdct16x16_sse2, | 519 make_tuple(&vp9_fdct16x16_sse2, |
| 520 &vp9_idct16x16_256_add_sse2, 0))); | 520 &vp9_idct16x16_256_add_sse2, 0))); |
| 521 INSTANTIATE_TEST_CASE_P( | 521 INSTANTIATE_TEST_CASE_P( |
| 522 SSE2, Trans16x16HT, | 522 SSE2, Trans16x16HT, |
| 523 ::testing::Values( | 523 ::testing::Values( |
| 524 make_tuple(&vp9_short_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 0), | 524 make_tuple(&vp9_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 0), |
| 525 make_tuple(&vp9_short_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 1), | 525 make_tuple(&vp9_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 1), |
| 526 make_tuple(&vp9_short_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 2), | 526 make_tuple(&vp9_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 2), |
| 527 make_tuple(&vp9_short_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 3))); | 527 make_tuple(&vp9_fht16x16_sse2, &vp9_iht16x16_256_add_sse2, 3))); |
| 528 #endif | 528 #endif |
| 529 } // namespace | 529 } // namespace |
| OLD | NEW |