| 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 "./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_codec.h" |
| 25 #include "vpx/vpx_integer.h" | 25 #include "vpx/vpx_integer.h" |
| 26 #include "vpx_ports/mem.h" |
| 26 | 27 |
| 27 using libvpx_test::ACMRandom; | 28 using libvpx_test::ACMRandom; |
| 28 | 29 |
| 29 namespace { | 30 namespace { |
| 30 #ifdef _MSC_VER | 31 #ifdef _MSC_VER |
| 31 static int round(double x) { | 32 static int round(double x) { |
| 32 if (x < 0) | 33 if (x < 0) |
| 33 return static_cast<int>(ceil(x - 0.5)); | 34 return static_cast<int>(ceil(x - 0.5)); |
| 34 else | 35 else |
| 35 return static_cast<int>(floor(x + 0.5)); | 36 return static_cast<int>(floor(x + 0.5)); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 #endif // HAVE_AVX2 && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE | 383 #endif // HAVE_AVX2 && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE |
| 383 | 384 |
| 384 #if HAVE_MSA && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE | 385 #if HAVE_MSA && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE |
| 385 INSTANTIATE_TEST_CASE_P( | 386 INSTANTIATE_TEST_CASE_P( |
| 386 MSA, Trans32x32Test, | 387 MSA, Trans32x32Test, |
| 387 ::testing::Values( | 388 ::testing::Values( |
| 388 make_tuple(&vp9_fdct32x32_c, | 389 make_tuple(&vp9_fdct32x32_c, |
| 389 &vp9_idct32x32_1024_add_msa, 0, VPX_BITS_8))); | 390 &vp9_idct32x32_1024_add_msa, 0, VPX_BITS_8))); |
| 390 #endif // HAVE_MSA && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE | 391 #endif // HAVE_MSA && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE |
| 391 } // namespace | 392 } // namespace |
| OLD | NEW |