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

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: Combine in a function 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..9f7df197fb838abd74c005d5dcb710d6bffea868 100644
--- a/webrtc/modules/audio_processing/ns/noise_suppression_x.h
+++ b/webrtc/modules/audio_processing/ns/noise_suppression_x.h
@@ -88,12 +88,15 @@ void WebRtcNsx_Process(NsxHandle* nsxInst,
*
* Input
* - nsxInst : NSx instance. Needs to be initiated before call.
+ * - domain : Domain of the noise estimate, which is the number of
peah-webrtc 2016/03/31 20:50:57 Why is this called domain? It is the Q-value, righ
aluebs-webrtc 2016/04/01 01:52:42 I couldn't come up with a better naming, but I agr
+ * 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* domain);
peah-webrtc 2016/03/31 20:50:57 I think it is great to both get the spectrum and t
aluebs-webrtc 2016/04/01 01:52:42 As I said in turaj's comment, I also find this way
/* 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