OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #include <cmath> | 11 #include <cmath> |
12 #include <cstdlib> | 12 #include <cstdlib> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "third_party/googletest/src/include/gtest/gtest.h" | 15 #include "third_party/googletest/src/include/gtest/gtest.h" |
16 | 16 |
17 #include "test/acm_random.h" | 17 #include "test/acm_random.h" |
18 #include "test/clear_system_state.h" | 18 #include "test/clear_system_state.h" |
19 #include "test/register_state_check.h" | 19 #include "test/register_state_check.h" |
20 #include "test/util.h" | 20 #include "test/util.h" |
21 #include "./vpx_config.h" | 21 #include "./vpx_config.h" |
22 #include "./vp9_rtcd.h" | 22 #include "./vp9_rtcd.h" |
23 #include "vp9/common/vp9_entropy.h" | 23 #include "vp9/common/vp9_entropy.h" |
| 24 #include "vpx/vpx_codec.h" |
24 #include "vpx/vpx_integer.h" | 25 #include "vpx/vpx_integer.h" |
25 | 26 |
26 using libvpx_test::ACMRandom; | 27 using libvpx_test::ACMRandom; |
27 | 28 |
28 namespace { | 29 namespace { |
29 #if CONFIG_VP9_HIGHBITDEPTH | 30 #if CONFIG_VP9_HIGHBITDEPTH |
30 const int kNumIterations = 1000; | 31 const int kNumIterations = 1000; |
31 | 32 |
32 typedef int64_t (*ErrorBlockFunc)(const tran_low_t *coeff, | 33 typedef int64_t (*ErrorBlockFunc)(const tran_low_t *coeff, |
33 const tran_low_t *dqcoeff, | 34 const tran_low_t *dqcoeff, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 ::testing::Values( | 142 ::testing::Values( |
142 make_tuple(&vp9_highbd_block_error_sse2, | 143 make_tuple(&vp9_highbd_block_error_sse2, |
143 &vp9_highbd_block_error_c, VPX_BITS_10), | 144 &vp9_highbd_block_error_c, VPX_BITS_10), |
144 make_tuple(&vp9_highbd_block_error_sse2, | 145 make_tuple(&vp9_highbd_block_error_sse2, |
145 &vp9_highbd_block_error_c, VPX_BITS_12), | 146 &vp9_highbd_block_error_c, VPX_BITS_12), |
146 make_tuple(&vp9_highbd_block_error_sse2, | 147 make_tuple(&vp9_highbd_block_error_sse2, |
147 &vp9_highbd_block_error_c, VPX_BITS_8))); | 148 &vp9_highbd_block_error_c, VPX_BITS_8))); |
148 #endif // HAVE_SSE2 | 149 #endif // HAVE_SSE2 |
149 #endif // CONFIG_VP9_HIGHBITDEPTH | 150 #endif // CONFIG_VP9_HIGHBITDEPTH |
150 } // namespace | 151 } // namespace |
OLD | NEW |