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 <math.h> | 11 #include <math.h> |
12 #include <stdlib.h> | 12 #include <stdlib.h> |
13 #include <string.h> | 13 #include <string.h> |
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 "vp9/common/vp9_scan.h" |
| 25 #include "vpx/vpx_codec.h" |
24 #include "vpx/vpx_integer.h" | 26 #include "vpx/vpx_integer.h" |
25 | 27 |
26 using libvpx_test::ACMRandom; | 28 using libvpx_test::ACMRandom; |
27 | 29 |
28 namespace { | 30 namespace { |
29 #if CONFIG_VP9_HIGHBITDEPTH | 31 #if CONFIG_VP9_HIGHBITDEPTH |
30 const int number_of_iterations = 100; | 32 const int number_of_iterations = 100; |
31 | 33 |
32 typedef void (*QuantizeFunc)(const tran_low_t *coeff, intptr_t count, | 34 typedef void (*QuantizeFunc)(const tran_low_t *coeff, intptr_t count, |
33 int skip_block, const int16_t *zbin, | 35 int skip_block, const int16_t *zbin, |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 ::testing::Values( | 342 ::testing::Values( |
341 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, | 343 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, |
342 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_8), | 344 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_8), |
343 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, | 345 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, |
344 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_10), | 346 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_10), |
345 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, | 347 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, |
346 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_12))); | 348 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_12))); |
347 #endif // HAVE_SSE2 | 349 #endif // HAVE_SSE2 |
348 #endif // CONFIG_VP9_HIGHBITDEPTH | 350 #endif // CONFIG_VP9_HIGHBITDEPTH |
349 } // namespace | 351 } // namespace |
OLD | NEW |