OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC 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 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 kBuffer, kOrder + 1, &scale); | 52 kBuffer, kOrder + 1, &scale); |
53 for (int i = 0; i < kOrder + 2; i++) { | 53 for (int i = 0; i < kOrder + 2; i++) { |
54 EXPECT_EQ(r_expected_1[i], r_buffer[i]); | 54 EXPECT_EQ(r_expected_1[i], r_buffer[i]); |
55 } | 55 } |
56 EXPECT_EQ(0, scale); | 56 EXPECT_EQ(0, scale); |
57 } | 57 } |
58 }; | 58 }; |
59 | 59 |
60 TEST_F(FiltersTest, AutocorrFixTest) { | 60 TEST_F(FiltersTest, AutocorrFixTest) { |
61 FiltersTester(WebRtcIsacfix_AutocorrC); | 61 FiltersTester(WebRtcIsacfix_AutocorrC); |
62 #ifdef WEBRTC_DETECT_NEON | 62 #if defined(WEBRTC_HAS_NEON) |
63 if ((WebRtc_GetCPUFeaturesARM() & kCPUFeatureNEON) != 0) { | |
64 FiltersTester(WebRtcIsacfix_AutocorrNeon); | |
65 } | |
66 #elif defined(WEBRTC_HAS_NEON) | |
67 FiltersTester(WebRtcIsacfix_AutocorrNeon); | 63 FiltersTester(WebRtcIsacfix_AutocorrNeon); |
68 #endif | 64 #endif |
69 } | 65 } |
OLD | NEW |