| 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 "./vpx_config.h" |
| 18 #include "./vpx_dsp_rtcd.h" |
| 17 #include "test/acm_random.h" | 19 #include "test/acm_random.h" |
| 18 #include "test/clear_system_state.h" | 20 #include "test/clear_system_state.h" |
| 19 #include "test/register_state_check.h" | 21 #include "test/register_state_check.h" |
| 20 #include "test/util.h" | 22 #include "test/util.h" |
| 21 #include "./vpx_config.h" | |
| 22 #include "./vpx_dsp_rtcd.h" | |
| 23 #include "vp9/common/vp9_entropy.h" | 23 #include "vp9/common/vp9_entropy.h" |
| 24 #include "vp9/common/vp9_scan.h" | 24 #include "vp9/common/vp9_scan.h" |
| 25 #include "vpx/vpx_codec.h" | 25 #include "vpx/vpx_codec.h" |
| 26 #include "vpx/vpx_integer.h" | 26 #include "vpx/vpx_integer.h" |
| 27 | 27 |
| 28 using libvpx_test::ACMRandom; | 28 using libvpx_test::ACMRandom; |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 #if CONFIG_VP9_HIGHBITDEPTH | 31 #if CONFIG_VP9_HIGHBITDEPTH |
| 32 const int number_of_iterations = 100; | 32 const int number_of_iterations = 100; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 EXPECT_EQ(0, err_count_total) | 324 EXPECT_EQ(0, err_count_total) |
| 325 << "Error: Quantization Test, C output doesn't match SSE2 output. " | 325 << "Error: Quantization Test, C output doesn't match SSE2 output. " |
| 326 << "First failed at test case " << first_failure; | 326 << "First failed at test case " << first_failure; |
| 327 } | 327 } |
| 328 using std::tr1::make_tuple; | 328 using std::tr1::make_tuple; |
| 329 | 329 |
| 330 #if HAVE_SSE2 | 330 #if HAVE_SSE2 |
| 331 INSTANTIATE_TEST_CASE_P( | 331 INSTANTIATE_TEST_CASE_P( |
| 332 SSE2, VP9QuantizeTest, | 332 SSE2, VP9QuantizeTest, |
| 333 ::testing::Values( | 333 ::testing::Values( |
| 334 make_tuple(&vp9_highbd_quantize_b_sse2, | 334 make_tuple(&vpx_highbd_quantize_b_sse2, |
| 335 &vp9_highbd_quantize_b_c, VPX_BITS_8), | 335 &vpx_highbd_quantize_b_c, VPX_BITS_8), |
| 336 make_tuple(&vp9_highbd_quantize_b_sse2, | 336 make_tuple(&vpx_highbd_quantize_b_sse2, |
| 337 &vp9_highbd_quantize_b_c, VPX_BITS_10), | 337 &vpx_highbd_quantize_b_c, VPX_BITS_10), |
| 338 make_tuple(&vp9_highbd_quantize_b_sse2, | 338 make_tuple(&vpx_highbd_quantize_b_sse2, |
| 339 &vp9_highbd_quantize_b_c, VPX_BITS_12))); | 339 &vpx_highbd_quantize_b_c, VPX_BITS_12))); |
| 340 INSTANTIATE_TEST_CASE_P( | 340 INSTANTIATE_TEST_CASE_P( |
| 341 SSE2, VP9Quantize32Test, | 341 SSE2, VP9Quantize32Test, |
| 342 ::testing::Values( | 342 ::testing::Values( |
| 343 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, | 343 make_tuple(&vpx_highbd_quantize_b_32x32_sse2, |
| 344 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_8), | 344 &vpx_highbd_quantize_b_32x32_c, VPX_BITS_8), |
| 345 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, | 345 make_tuple(&vpx_highbd_quantize_b_32x32_sse2, |
| 346 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_10), | 346 &vpx_highbd_quantize_b_32x32_c, VPX_BITS_10), |
| 347 make_tuple(&vp9_highbd_quantize_b_32x32_sse2, | 347 make_tuple(&vpx_highbd_quantize_b_32x32_sse2, |
| 348 &vp9_highbd_quantize_b_32x32_c, VPX_BITS_12))); | 348 &vpx_highbd_quantize_b_32x32_c, VPX_BITS_12))); |
| 349 #endif // HAVE_SSE2 | 349 #endif // HAVE_SSE2 |
| 350 #endif // CONFIG_VP9_HIGHBITDEPTH | 350 #endif // CONFIG_VP9_HIGHBITDEPTH |
| 351 } // namespace | 351 } // namespace |
| OLD | NEW |