OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 | 11 |
12 extern "C" { | 12 extern "C" { |
13 #include "vpx_config.h" | 13 #include "vpx_config.h" |
14 #include "vpx_rtcd.h" | 14 #include "vp8_rtcd.h" |
15 } | 15 } |
16 #include "third_party/googletest/src/include/gtest/gtest.h" | 16 #include "third_party/googletest/src/include/gtest/gtest.h" |
17 | 17 |
18 typedef void (*idct_fn_t)(short *input, unsigned char *pred_ptr, | 18 typedef void (*idct_fn_t)(short *input, unsigned char *pred_ptr, |
19 int pred_stride, unsigned char *dst_ptr, | 19 int pred_stride, unsigned char *dst_ptr, |
20 int dst_stride); | 20 int dst_stride); |
21 namespace { | 21 namespace { |
22 class IDCTTest : public ::testing::TestWithParam<idct_fn_t> | 22 class IDCTTest : public ::testing::TestWithParam<idct_fn_t> |
23 { | 23 { |
24 protected: | 24 protected: |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 EXPECT_EQ(0, output[i]) << "i==" << i; | 116 EXPECT_EQ(0, output[i]) << "i==" << i; |
117 } | 117 } |
118 | 118 |
119 INSTANTIATE_TEST_CASE_P(C, IDCTTest, | 119 INSTANTIATE_TEST_CASE_P(C, IDCTTest, |
120 ::testing::Values(vp8_short_idct4x4llm_c)); | 120 ::testing::Values(vp8_short_idct4x4llm_c)); |
121 #if HAVE_MMX | 121 #if HAVE_MMX |
122 INSTANTIATE_TEST_CASE_P(MMX, IDCTTest, | 122 INSTANTIATE_TEST_CASE_P(MMX, IDCTTest, |
123 ::testing::Values(vp8_short_idct4x4llm_mmx)); | 123 ::testing::Values(vp8_short_idct4x4llm_mmx)); |
124 #endif | 124 #endif |
125 } | 125 } |
OLD | NEW |