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

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

Issue 2974613003: base->rtc_base: Update .c, .mm and .java files. (Closed)
Patch Set: Created 3 years, 5 months 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/noise_suppression_x.h" 11 #include "webrtc/modules/audio_processing/ns/noise_suppression_x.h"
12 12
13 #include <math.h> 13 #include <math.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 16
17 #include "webrtc/base/checks.h" 17 #include "webrtc/rtc_base/checks.h"
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/include/cpu_features_wrapper.h" 20 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
21 21
22 #if defined(WEBRTC_HAS_NEON) 22 #if 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
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 2098
2099 //apply gain 2099 //apply gain
2100 for (i = 0; i < num_high_bands; ++i) { 2100 for (i = 0; i < num_high_bands; ++i) {
2101 for (j = 0; j < inst->blockLen10ms; j++) { 2101 for (j = 0; j < inst->blockLen10ms; j++) {
2102 outFrameHB[i][j] = (int16_t)((gainTimeDomainHB * 2102 outFrameHB[i][j] = (int16_t)((gainTimeDomainHB *
2103 inst->dataBufHBFX[i][j]) >> 14); // Q0 2103 inst->dataBufHBFX[i][j]) >> 14); // Q0
2104 } 2104 }
2105 } 2105 }
2106 } // end of H band gain computation 2106 } // end of H band gain computation
2107 } 2107 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/ns/ns_core.c ('k') | webrtc/modules/audio_processing/ns/nsx_core_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698