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

Unified Diff: webrtc/modules/audio_processing/ns/noise_suppression_x.h

Issue 1821443003: Fix normalization of noise estimate in NoiseSuppressor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Disable noise suppressor bit-exactness unittests Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/ns/noise_suppression_x.h
diff --git a/webrtc/modules/audio_processing/ns/noise_suppression_x.h b/webrtc/modules/audio_processing/ns/noise_suppression_x.h
index 7a5fc428c16cd34a8beef4967558b3b99da69838..79a5fc626f3c13e8ecdeafaafeefbc367186a304 100644
--- a/webrtc/modules/audio_processing/ns/noise_suppression_x.h
+++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.h
@@ -88,12 +88,16 @@ void WebRtcNsx_Process(NsxHandle* nsxInst,
*
* Input
* - nsxInst : NSx instance. Needs to be initiated before call.
+ * - q_noise : Q value of the noise estimate, which is the number of
+ * bits that it needs to be right-shifted to be
+ * normalized.
*
* Return value : Pointer to the noise estimate per frequency bin.
* Returns NULL if the input is a NULL pointer or an
* uninitialized instance.
*/
-const uint32_t* WebRtcNsx_noise_estimate(const NsxHandle* nsxInst);
+const uint32_t* WebRtcNsx_noise_estimate(const NsxHandle* nsxInst,
+ int* q_noise);
/* Returns the number of frequency bins, which is the length of the noise
* estimate for example.

Powered by Google App Engine
This is Rietveld 408576698