/external/webrtc/modules/audio_processing/ns/ |
D | signal_model_estimator.cc | 19 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 …]
|
D | noise_estimator.h | 34 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_;
|
D | wiener_filter.h | 32 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_;
|
D | noise_suppressor.cc | 150 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 …]
|
D | quantile_noise_estimator.cc | 31 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()
|
D | noise_estimator.cc | 61 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()
|
D | quantile_noise_estimator.h | 32 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_;
|
D | speech_probability_estimator.h | 33 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_;
|
D | speech_probability_estimator.cc | 27 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()
|
D | wiener_filter.cc | 32 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()
|
D | ns_fft.cc | 36 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()
|
D | signal_model_estimator.h | 35 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,
|
D | noise_suppressor.h | 57 std::array<float, kFftSizeBy2Plus1> prev_analysis_signal_spectrum; 78 rtc::ArrayView<float, kFftSizeBy2Plus1> filter) const;
|
D | signal_model.h | 29 std::array<float, kFftSizeBy2Plus1> avg_log_lrt;
|
D | ns_common.h | 19 constexpr size_t kFftSizeBy2Plus1 = kFftSize / 2 + 1; variable
|