Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: webrtc/modules/audio_processing/ns/nsx_core.c

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 10
11 #include "webrtc/modules/audio_processing/ns/include/noise_suppression_x.h" 11 #include "webrtc/modules/audio_processing/ns/include/noise_suppression_x.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <math.h> 14 #include <math.h>
15 #include <stdlib.h> 15 #include <stdlib.h>
16 #include <string.h> 16 #include <string.h>
17 17
18 #include "webrtc/common_audio/signal_processing/include/real_fft.h" 18 #include "webrtc/common_audio/signal_processing/include/real_fft.h"
19 #include "webrtc/modules/audio_processing/ns/nsx_core.h" 19 #include "webrtc/modules/audio_processing/ns/nsx_core.h"
20 #include "webrtc/system_wrappers/interface/cpu_features_wrapper.h" 20 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
21 21
22 #if (defined WEBRTC_DETECT_NEON || defined WEBRTC_HAS_NEON) 22 #if (defined WEBRTC_DETECT_NEON || defined WEBRTC_HAS_NEON)
23 /* Tables are defined in ARM assembly files. */ 23 /* Tables are defined in ARM assembly files. */
24 extern const int16_t WebRtcNsx_kLogTable[9]; 24 extern const int16_t WebRtcNsx_kLogTable[9];
25 extern const int16_t WebRtcNsx_kCounterDiv[201]; 25 extern const int16_t WebRtcNsx_kCounterDiv[201];
26 extern const int16_t WebRtcNsx_kLogTableFrac[256]; 26 extern const int16_t WebRtcNsx_kLogTableFrac[256];
27 #else 27 #else
28 static const int16_t WebRtcNsx_kLogTable[9] = { 28 static const int16_t WebRtcNsx_kLogTable[9] = {
29 0, 177, 355, 532, 710, 887, 1065, 1242, 1420 29 0, 177, 355, 532, 710, 887, 1065, 1242, 1420
30 }; 30 };
(...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 2103
2104 //apply gain 2104 //apply gain
2105 for (i = 0; i < num_high_bands; ++i) { 2105 for (i = 0; i < num_high_bands; ++i) {
2106 for (j = 0; j < inst->blockLen10ms; j++) { 2106 for (j = 0; j < inst->blockLen10ms; j++) {
2107 outFrameHB[i][j] = (int16_t)((gainTimeDomainHB * 2107 outFrameHB[i][j] = (int16_t)((gainTimeDomainHB *
2108 inst->dataBufHBFX[i][j]) >> 14); // Q0 2108 inst->dataBufHBFX[i][j]) >> 14); // Q0
2109 } 2109 }
2110 } 2110 }
2111 } // end of H band gain computation 2111 } // end of H band gain computation
2112 } 2112 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/noise_suppression_impl.cc ('k') | webrtc/modules/audio_processing/splitting_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698