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

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

Issue 1654443004: Surface the noise estimate of the NS to be used by other components (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Make pointers const Created 4 years, 10 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
(...skipping 26 matching lines...) Expand all
37 return WebRtcNsx_set_policy_core((NoiseSuppressionFixedC*)nsxInst, mode); 37 return WebRtcNsx_set_policy_core((NoiseSuppressionFixedC*)nsxInst, mode);
38 } 38 }
39 39
40 void WebRtcNsx_Process(NsxHandle* nsxInst, 40 void WebRtcNsx_Process(NsxHandle* nsxInst,
41 const short* const* speechFrame, 41 const short* const* speechFrame,
42 int num_bands, 42 int num_bands,
43 short* const* outFrame) { 43 short* const* outFrame) {
44 WebRtcNsx_ProcessCore((NoiseSuppressionFixedC*)nsxInst, speechFrame, 44 WebRtcNsx_ProcessCore((NoiseSuppressionFixedC*)nsxInst, speechFrame,
45 num_bands, outFrame); 45 num_bands, outFrame);
46 } 46 }
47
48 const uint32_t* WebRtcNsx_noise_estimate(NsxHandle* nsxInst) {
hlundin-webrtc 2016/02/08 10:12:32 const input.
aluebs-webrtc 2016/02/09 00:01:43 Done.
49 NoiseSuppressionFixedC* self = (NoiseSuppressionFixedC*)nsxInst;
hlundin-webrtc 2016/02/08 10:12:32 const
aluebs-webrtc 2016/02/09 00:01:43 Done.
50 if (nsxInst == NULL || self->initFlag == 0) {
51 return NULL;
52 }
53 return self->prevNoiseU32;
54 }
55
56 size_t WebRtcNsx_num_freq() {
57 return HALF_ANAL_BLOCKL;
58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698