Home
last modified time | relevance | path

Searched refs:noise_spectrum_ (Results 1 – 6 of 6) sorted by relevance

/external/webrtc/modules/audio_processing/agc2/
Dnoise_spectrum_estimator.cc33 std::fill(noise_spectrum_, noise_spectrum_ + arraysize(noise_spectrum_), in Initialize()
44 noise_spectrum_); in Update()
49 if (noise_spectrum_[k] < spectrum[k]) { in Update()
50 noise_spectrum_[k] = std::min( in Update()
51 1.01f * noise_spectrum_[k], in Update()
52 noise_spectrum_[k] + 0.05f * (spectrum[k] - noise_spectrum_[k])); in Update()
54 noise_spectrum_[k] = std::max( in Update()
55 0.99f * noise_spectrum_[k], in Update()
56 noise_spectrum_[k] + 0.05f * (spectrum[k] - noise_spectrum_[k])); in Update()
62 for (auto& v : noise_spectrum_) { in Update()
[all …]
Dnoise_spectrum_estimator.h28 return rtc::ArrayView<const float>(noise_spectrum_); in GetNoiseSpectrum()
33 float noise_spectrum_[65]; variable
/external/webrtc/modules/audio_processing/ns/
Dnoise_estimator.cc48 noise_spectrum_.fill(0.f); in NoiseEstimator()
55 std::copy(noise_spectrum_.begin(), noise_spectrum_.end(), in PrepareAnalysis()
63 quantile_noise_estimator_.Estimate(signal_spectrum, noise_spectrum_); in PreUpdate()
140 noise_spectrum_[i] *= num_analyzed_frames; in PreUpdate()
143 noise_spectrum_[i] += tmp * one_by_num_analyzed_frames_plus_1; in PreUpdate()
144 noise_spectrum_[i] *= kOneByShortStartupPhaseBlocks; in PreUpdate()
182 noise_spectrum_[i] = noise_update_tmp; in PostUpdate()
184 noise_spectrum_[i] = in PostUpdate()
190 noise_spectrum_[i] = std::min(noise_spectrum_[i], noise_update_tmp); in PostUpdate()
Dnoise_estimator.h44 return noise_spectrum_; in get_noise_spectrum()
71 std::array<float, kFftSizeBy2Plus1> noise_spectrum_; variable
/external/webrtc/modules/audio_processing/aec3/
Dstationarity_estimator.h93 rtc::ArrayView<const float> Spectrum() const { return noise_spectrum_; } in Spectrum()
97 RTC_DCHECK_LT(band, noise_spectrum_.size()); in Power()
98 return noise_spectrum_[band]; in Power()
109 std::array<float, kFftLengthBy2Plus1> noise_spectrum_; variable
Dstationarity_estimator.cc166 noise_spectrum_.fill(kMinNoisePower); in Reset()
200 noise_spectrum_[k] += (1.f / kNBlocksAverageInitPhase) * avg_spectrum[k]; in Update()
202 noise_spectrum_[k] = in Update()
203 UpdateBandBySmoothing(avg_spectrum[k], noise_spectrum_[k], alpha); in Update()