| 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" |
| 11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h" | 11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h" |
| 12 #include "webrtc/system_wrappers/interface/cpu_features_wrapper.h" | 12 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 13 | 13 |
| 14 static const int kSamples = FRAMESAMPLES/2; | 14 static const int kSamples = FRAMESAMPLES/2; |
| 15 static const int32_t spec2time_out_expected_1[kSamples] = { | 15 static const int32_t spec2time_out_expected_1[kSamples] = { |
| 16 -3366470, -2285227, | 16 -3366470, -2285227, |
| 17 -3415765, -2310215, -3118030, -2222470, -3030254, -2192091, -3423170, | 17 -3415765, -2310215, -3118030, -2222470, -3030254, -2192091, -3423170, |
| 18 -2216041, -3305541, -2171936, -3195767, -2095779, -3153304, -2157560, | 18 -2216041, -3305541, -2171936, -3195767, -2095779, -3153304, -2157560, |
| 19 -3071167, -2032108, -3101190, -1972016, -3103824, -2089118, -3139811, | 19 -3071167, -2032108, -3101190, -1972016, -3103824, -2089118, -3139811, |
| 20 -1898337, -3102801, -2055082, -3029665, -1854140, -2962586, -1966454, | 20 -1898337, -3102801, -2055082, -3029665, -1854140, -2962586, -1966454, |
| 21 -3071167, -1894588, -2851743, -1917315, -2848087, -1594932, -2799242, | 21 -3071167, -1894588, -2851743, -1917315, -2848087, -1594932, -2799242, |
| 22 -1462184, -2845887, -1437599, -2691776, -1329637, -2770659, -1268491, | 22 -1462184, -2845887, -1437599, -2691776, -1329637, -2770659, -1268491, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 TEST_F(TransformTest, Spec2TimeTest) { | 191 TEST_F(TransformTest, Spec2TimeTest) { |
| 192 Spec2TimeTester(WebRtcIsacfix_Spec2TimeC); | 192 Spec2TimeTester(WebRtcIsacfix_Spec2TimeC); |
| 193 #ifdef WEBRTC_DETECT_NEON | 193 #ifdef WEBRTC_DETECT_NEON |
| 194 if ((WebRtc_GetCPUFeaturesARM() & kCPUFeatureNEON) != 0) { | 194 if ((WebRtc_GetCPUFeaturesARM() & kCPUFeatureNEON) != 0) { |
| 195 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); | 195 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); |
| 196 } | 196 } |
| 197 #elif defined(WEBRTC_HAS_NEON) | 197 #elif defined(WEBRTC_HAS_NEON) |
| 198 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); | 198 Spec2TimeTester(WebRtcIsacfix_Spec2TimeNeon); |
| 199 #endif | 199 #endif |
| 200 } | 200 } |
| OLD | NEW |