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

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

Issue 1440523002: Remove webrtc/modules/audio_processing/{aec,aecm,ns}/include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased 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 <assert.h> 11 #include <assert.h>
12 #include <math.h> 12 #include <math.h>
13 #include <string.h> 13 #include <string.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 15
16 #include "webrtc/common_audio/fft4g.h" 16 #include "webrtc/common_audio/fft4g.h"
17 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 17 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
18 #include "webrtc/modules/audio_processing/ns/include/noise_suppression.h" 18 #include "webrtc/modules/audio_processing/ns/noise_suppression.h"
19 #include "webrtc/modules/audio_processing/ns/ns_core.h" 19 #include "webrtc/modules/audio_processing/ns/ns_core.h"
20 #include "webrtc/modules/audio_processing/ns/windows_private.h" 20 #include "webrtc/modules/audio_processing/ns/windows_private.h"
21 21
22 // Set Feature Extraction Parameters. 22 // Set Feature Extraction Parameters.
23 static void set_feature_extraction_parameters(NoiseSuppressionC* self) { 23 static void set_feature_extraction_parameters(NoiseSuppressionC* self) {
24 // Bin size of histogram. 24 // Bin size of histogram.
25 self->featureExtractionParams.binSizeLrt = 0.1f; 25 self->featureExtractionParams.binSizeLrt = 0.1f;
26 self->featureExtractionParams.binSizeSpecFlat = 0.05f; 26 self->featureExtractionParams.binSizeSpecFlat = 0.05f;
27 self->featureExtractionParams.binSizeSpecDiff = 0.1f; 27 self->featureExtractionParams.binSizeSpecDiff = 0.1f;
28 28
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 for (i = 0; i < num_high_bands; ++i) { 1407 for (i = 0; i < num_high_bands; ++i) {
1408 for (j = 0; j < self->blockLen; j++) { 1408 for (j = 0; j < self->blockLen; j++) {
1409 outFrameHB[i][j] = 1409 outFrameHB[i][j] =
1410 WEBRTC_SPL_SAT(WEBRTC_SPL_WORD16_MAX, 1410 WEBRTC_SPL_SAT(WEBRTC_SPL_WORD16_MAX,
1411 gainTimeDomainHB * self->dataBufHB[i][j], 1411 gainTimeDomainHB * self->dataBufHB[i][j],
1412 WEBRTC_SPL_WORD16_MIN); 1412 WEBRTC_SPL_WORD16_MIN);
1413 } 1413 }
1414 } 1414 }
1415 } // End of H band gain computation. 1415 } // End of H band gain computation.
1416 } 1416 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/ns/noise_suppression_x.c ('k') | webrtc/modules/audio_processing/ns/nsx_core.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698