Home
last modified time | relevance | path

Searched refs:spectral_mean (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/modules/audio_processing/transient/
Dtransient_suppressor.cc233 float* spectral_mean, in Suppress() argument
256 HardRestoration(spectral_mean); in Suppress()
258 SoftRestoration(spectral_mean); in Suppress()
264 spectral_mean[i] = (1 - kMeanIIRCoefficient) * spectral_mean[i] + in Suppress()
369 void TransientSuppressor::HardRestoration(float* spectral_mean) { in HardRestoration() argument
375 if (magnitudes_[i] > spectral_mean[i] && magnitudes_[i] > 0) { in HardRestoration()
379 const float scaled_mean = detector_result * spectral_mean[i]; in HardRestoration()
386 detector_result * (magnitudes_[i] - spectral_mean[i]); in HardRestoration()
396 void TransientSuppressor::SoftRestoration(float* spectral_mean) { in SoftRestoration() argument
409 if (magnitudes_[i] > spectral_mean[i] && magnitudes_[i] > 0 && in SoftRestoration()
[all …]
Dtransient_suppressor.h64 void Suppress(float* in_ptr, float* spectral_mean, float* out_ptr);
71 void HardRestoration(float* spectral_mean);
72 void SoftRestoration(float* spectral_mean);