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 |
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 #include "test/acm_random.h" | 16 #include "test/acm_random.h" |
17 #include "test/clear_system_state.h" | 17 #include "test/clear_system_state.h" |
18 #include "test/register_state_check.h" | 18 #include "test/register_state_check.h" |
19 #include "test/util.h" | 19 #include "test/util.h" |
20 | 20 |
21 #include "./vp9_rtcd.h" | 21 #include "./vp9_rtcd.h" |
22 #include "vp9/common/vp9_entropy.h" | 22 #include "vp9/common/vp9_entropy.h" |
| 23 #include "vp9/common/vp9_scan.h" |
23 #include "vpx/vpx_codec.h" | 24 #include "vpx/vpx_codec.h" |
24 #include "vpx/vpx_integer.h" | 25 #include "vpx/vpx_integer.h" |
| 26 #include "vpx_ports/mem.h" |
25 | 27 |
26 using libvpx_test::ACMRandom; | 28 using libvpx_test::ACMRandom; |
27 | 29 |
28 namespace { | 30 namespace { |
29 | 31 |
30 #ifdef _MSC_VER | 32 #ifdef _MSC_VER |
31 static int round(double x) { | 33 static int round(double x) { |
32 if (x < 0) | 34 if (x < 0) |
33 return static_cast<int>(ceil(x - 0.5)); | 35 return static_cast<int>(ceil(x - 0.5)); |
34 else | 36 else |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 &vp9_idct16x16_256_add_msa, 0, VPX_BITS_8))); | 937 &vp9_idct16x16_256_add_msa, 0, VPX_BITS_8))); |
936 INSTANTIATE_TEST_CASE_P( | 938 INSTANTIATE_TEST_CASE_P( |
937 MSA, Trans16x16HT, | 939 MSA, Trans16x16HT, |
938 ::testing::Values( | 940 ::testing::Values( |
939 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 0, VPX_BITS_8), | 941 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 0, VPX_BITS_8), |
940 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 1, VPX_BITS_8), | 942 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 1, VPX_BITS_8), |
941 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 2, VPX_BITS_8), | 943 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 2, VPX_BITS_8), |
942 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 3, VPX_BITS_8))); | 944 make_tuple(&vp9_fht16x16_c, &vp9_iht16x16_256_add_msa, 3, VPX_BITS_8))); |
943 #endif // HAVE_MSA && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE | 945 #endif // HAVE_MSA && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE |
944 } // namespace | 946 } // namespace |
OLD | NEW |