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 22 matching lines...) Expand all Loading... |
33 typedef void (*FdctFunc)(const int16_t *in, int16_t *out, int stride); | 33 typedef void (*FdctFunc)(const int16_t *in, int16_t *out, int stride); |
34 typedef void (*IdctFunc)(const int16_t *in, uint8_t *out, int stride); | 34 typedef void (*IdctFunc)(const int16_t *in, uint8_t *out, int stride); |
35 typedef void (*FhtFunc)(const int16_t *in, int16_t *out, int stride, | 35 typedef void (*FhtFunc)(const int16_t *in, int16_t *out, int stride, |
36 int tx_type); | 36 int tx_type); |
37 typedef void (*IhtFunc)(const int16_t *in, uint8_t *out, int stride, | 37 typedef void (*IhtFunc)(const int16_t *in, uint8_t *out, int stride, |
38 int tx_type); | 38 int tx_type); |
39 | 39 |
40 typedef std::tr1::tuple<FdctFunc, IdctFunc, int> Dct4x4Param; | 40 typedef std::tr1::tuple<FdctFunc, IdctFunc, int> Dct4x4Param; |
41 typedef std::tr1::tuple<FhtFunc, IhtFunc, int> Ht4x4Param; | 41 typedef std::tr1::tuple<FhtFunc, IhtFunc, int> Ht4x4Param; |
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_fht4x4_c(in, out, stride, tx_type); | 48 vp9_fht4x4_c(in, out, stride, tx_type); |
49 } | 49 } |
50 | 50 |
51 void fwht4x4_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { | 51 void fwht4x4_ref(const int16_t *in, int16_t *out, int stride, int /*tx_type*/) { |
52 vp9_fwht4x4_c(in, out, stride); | 52 vp9_fwht4x4_c(in, out, stride); |
53 } | 53 } |
54 | 54 |
55 class Trans4x4TestBase { | 55 class Trans4x4TestBase { |
56 public: | 56 public: |
57 virtual ~Trans4x4TestBase() {} | 57 virtual ~Trans4x4TestBase() {} |
58 | 58 |
59 protected: | 59 protected: |
60 virtual void RunFwdTxfm(const int16_t *in, int16_t *out, int stride) = 0; | 60 virtual void RunFwdTxfm(const int16_t *in, int16_t *out, int stride) = 0; |
61 | 61 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 INSTANTIATE_TEST_CASE_P( | 370 INSTANTIATE_TEST_CASE_P( |
371 SSE2, Trans4x4HT, | 371 SSE2, Trans4x4HT, |
372 ::testing::Values( | 372 ::testing::Values( |
373 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 0), | 373 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 0), |
374 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 1), | 374 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 1), |
375 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 2), | 375 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 2), |
376 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 3))); | 376 make_tuple(&vp9_fht4x4_sse2, &vp9_iht4x4_16_add_sse2, 3))); |
377 #endif | 377 #endif |
378 | 378 |
379 } // namespace | 379 } // namespace |
OLD | NEW |