Home
last modified time | relevance | path

Searched refs:kFftSizeBy2Plus1 (Results 1 – 15 of 15) sorted by relevance

/external/webrtc/modules/audio_processing/ns/
Dsignal_model_estimator.cc19 constexpr float kOneByFftSizeBy2Plus1 = 1.f / kFftSizeBy2Plus1;
24 rtc::ArrayView<const float, kFftSizeBy2Plus1> conservative_noise_spectrum, in ComputeSpectralDiff()
25 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum, in ComputeSpectralDiff()
33 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in ComputeSpectralDiff()
44 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in ComputeSpectralDiff()
64 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum, in UpdateSpectralFlatness()
73 for (size_t i = 1; i < kFftSizeBy2Plus1; ++i) { in UpdateSpectralFlatness()
80 for (size_t i = 1; i < kFftSizeBy2Plus1; ++i) { in UpdateSpectralFlatness()
97 void UpdateSpectralLrt(rtc::ArrayView<const float, kFftSizeBy2Plus1> prior_snr, in UpdateSpectralLrt()
98 rtc::ArrayView<const float, kFftSizeBy2Plus1> post_snr, in UpdateSpectralLrt()
[all …]
Dnoise_estimator.h34 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum,
40 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum);
43 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_noise_spectrum() const { in get_noise_spectrum()
48 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_prev_noise_spectrum() in get_prev_noise_spectrum()
54 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_parametric_noise_spectrum() in get_parametric_noise_spectrum()
58 rtc::ArrayView<const float, kFftSizeBy2Plus1>
68 std::array<float, kFftSizeBy2Plus1> prev_noise_spectrum_;
69 std::array<float, kFftSizeBy2Plus1> conservative_noise_spectrum_;
70 std::array<float, kFftSizeBy2Plus1> parametric_noise_spectrum_;
71 std::array<float, kFftSizeBy2Plus1> noise_spectrum_;
Dwiener_filter.h32 rtc::ArrayView<const float, kFftSizeBy2Plus1> noise_spectrum,
33 rtc::ArrayView<const float, kFftSizeBy2Plus1> prev_noise_spectrum,
34 rtc::ArrayView<const float, kFftSizeBy2Plus1> parametric_noise_spectrum,
35 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum);
44 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_filter() const { in get_filter()
50 std::array<float, kFftSizeBy2Plus1> spectrum_prev_process_;
51 std::array<float, kFftSizeBy2Plus1> initial_spectral_estimate_;
52 std::array<float, kFftSizeBy2Plus1> filter_;
Dnoise_suppressor.cc150 rtc::ArrayView<float, kFftSizeBy2Plus1> signal_spectrum) { in ComputeMagnitudeSpectrum()
152 signal_spectrum[kFftSizeBy2Plus1 - 1] = in ComputeMagnitudeSpectrum()
153 fabsf(real[kFftSizeBy2Plus1 - 1]) + 1.f; in ComputeMagnitudeSpectrum()
155 for (size_t i = 1; i < kFftSizeBy2Plus1 - 1; ++i) { in ComputeMagnitudeSpectrum()
162 void ComputeSnr(rtc::ArrayView<const float, kFftSizeBy2Plus1> filter, in ComputeSnr()
169 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in ComputeSnr()
189 rtc::ArrayView<const float, kFftSizeBy2Plus1> filter, in ComputeUpperBandsGain()
191 rtc::ArrayView<const float, kFftSizeBy2Plus1> prev_analysis_signal_spectrum, in ComputeUpperBandsGain()
192 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum) { in ComputeUpperBandsGain()
199 for (size_t i = kFftSizeBy2Plus1 - kNumAvgBins - 1; i < kFftSizeBy2Plus1 - 1; in ComputeUpperBandsGain()
[all …]
Dquantile_noise_estimator.cc31 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum, in Estimate()
32 rtc::ArrayView<float, kFftSizeBy2Plus1> noise_spectrum) { in Estimate()
33 std::array<float, kFftSizeBy2Plus1> log_spectrum; in Estimate()
39 ++s, k += static_cast<int>(kFftSizeBy2Plus1)) { in Estimate()
41 for (int i = 0, j = k; i < static_cast<int>(kFftSizeBy2Plus1); ++i, ++j) { in Estimate()
74 quantile_index_to_return = kFftSizeBy2Plus1 * (kSimult - 1); in Estimate()
81 kFftSizeBy2Plus1), in Estimate()
Dnoise_estimator.cc61 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum, in PreUpdate()
72 for (size_t i = kStartBand; i < kFftSizeBy2Plus1; ++i) { in PreUpdate()
82 constexpr float kOneByFftSizeBy2Plus1 = 1.f / kFftSizeBy2Plus1; in PreUpdate()
87 float denom = sum_log_i_square * (kFftSizeBy2Plus1 - kStartBand) - in PreUpdate()
98 (kFftSizeBy2Plus1 - kStartBand) * sum_log_i_log_magn; in PreUpdate()
123 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in PreUpdate()
139 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in PreUpdate()
151 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum) { in PostUpdate()
156 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in PostUpdate()
Dquantile_noise_estimator.h32 void Estimate(rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum,
33 rtc::ArrayView<float, kFftSizeBy2Plus1> noise_spectrum);
36 std::array<float, kSimult * kFftSizeBy2Plus1> density_;
37 std::array<float, kSimult * kFftSizeBy2Plus1> log_quantile_;
38 std::array<float, kFftSizeBy2Plus1> quantile_;
Dspeech_probability_estimator.h33 rtc::ArrayView<const float, kFftSizeBy2Plus1> prior_snr,
34 rtc::ArrayView<const float, kFftSizeBy2Plus1> post_snr,
35 rtc::ArrayView<const float, kFftSizeBy2Plus1> conservative_noise_spectrum,
36 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum,
46 std::array<float, kFftSizeBy2Plus1> speech_probability_;
Dspeech_probability_estimator.cc27 rtc::ArrayView<const float, kFftSizeBy2Plus1> prior_snr, in Update()
28 rtc::ArrayView<const float, kFftSizeBy2Plus1> post_snr, in Update()
29 rtc::ArrayView<const float, kFftSizeBy2Plus1> conservative_noise_spectrum, in Update()
30 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum, in Update()
96 std::array<float, kFftSizeBy2Plus1> inv_lrt; in Update()
98 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in Update()
Dwiener_filter.cc32 rtc::ArrayView<const float, kFftSizeBy2Plus1> noise_spectrum, in Update()
33 rtc::ArrayView<const float, kFftSizeBy2Plus1> prev_noise_spectrum, in Update()
34 rtc::ArrayView<const float, kFftSizeBy2Plus1> parametric_noise_spectrum, in Update()
35 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum) { in Update()
36 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in Update()
59 for (size_t i = 0; i < kFftSizeBy2Plus1; ++i) { in Update()
Dns_fft.cc36 imag[kFftSizeBy2Plus1 - 1] = 0; in Fft()
37 real[kFftSizeBy2Plus1 - 1] = time_data[1]; in Fft()
39 for (size_t i = 1; i < kFftSizeBy2Plus1 - 1; ++i) { in Fft()
49 time_data[1] = real[kFftSizeBy2Plus1 - 1]; in Ifft()
50 for (size_t i = 1; i < kFftSizeBy2Plus1 - 1; ++i) { in Ifft()
Dsignal_model_estimator.h35 rtc::ArrayView<const float, kFftSizeBy2Plus1> prior_snr,
36 rtc::ArrayView<const float, kFftSizeBy2Plus1> post_snr,
37 rtc::ArrayView<const float, kFftSizeBy2Plus1> conservative_noise_spectrum,
38 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum,
Dnoise_suppressor.h57 std::array<float, kFftSizeBy2Plus1> prev_analysis_signal_spectrum;
78 rtc::ArrayView<float, kFftSizeBy2Plus1> filter) const;
Dsignal_model.h29 std::array<float, kFftSizeBy2Plus1> avg_log_lrt;
Dns_common.h19 constexpr size_t kFftSizeBy2Plus1 = kFftSize / 2 + 1; variable