/external/webrtc/modules/audio_processing/aec3/ |
D | adaptive_fir_filter_avx2.cc | 37 for (size_t j = 0; j < kFftLengthBy2; j += 8) { in ComputeFrequencyResponse_Avx2() 46 float H2_new = H_p_ch.re[kFftLengthBy2] * H_p_ch.re[kFftLengthBy2] + in ComputeFrequencyResponse_Avx2() 47 H_p_ch.im[kFftLengthBy2] * H_p_ch.im[kFftLengthBy2]; in ComputeFrequencyResponse_Avx2() 48 H2_p[kFftLengthBy2] = std::max(H2_p[kFftLengthBy2], H2_new); in ComputeFrequencyResponse_Avx2() 64 constexpr size_t kNumEightBinBands = kFftLengthBy2 / 8; in AdaptPartitions_Avx2() 108 H_p_ch.re[kFftLengthBy2] += X.re[kFftLengthBy2] * G.re[kFftLengthBy2] + in AdaptPartitions_Avx2() 109 X.im[kFftLengthBy2] * G.im[kFftLengthBy2]; in AdaptPartitions_Avx2() 110 H_p_ch.im[kFftLengthBy2] += X.re[kFftLengthBy2] * G.im[kFftLengthBy2] - in AdaptPartitions_Avx2() 111 X.im[kFftLengthBy2] * G.re[kFftLengthBy2]; in AdaptPartitions_Avx2() 135 constexpr size_t kNumEightBinBands = kFftLengthBy2 / 8; in ApplyFilter_Avx2() [all …]
|
D | adaptive_fir_filter.cc | 74 for (size_t j = 0; j < kFftLengthBy2; j += 4) { in ComputeFrequencyResponse_Neon() 83 float H2_new = H_p_ch.re[kFftLengthBy2] * H_p_ch.re[kFftLengthBy2] + in ComputeFrequencyResponse_Neon() 84 H_p_ch.im[kFftLengthBy2] * H_p_ch.im[kFftLengthBy2]; in ComputeFrequencyResponse_Neon() 85 H2_p[kFftLengthBy2] = std::max(H2_p[kFftLengthBy2], H2_new); in ComputeFrequencyResponse_Neon() 109 for (size_t j = 0; j < kFftLengthBy2; j += 4) { in ComputeFrequencyResponse_Sse2() 119 float H2_new = H_p_ch.re[kFftLengthBy2] * H_p_ch.re[kFftLengthBy2] + in ComputeFrequencyResponse_Sse2() 120 H_p_ch.im[kFftLengthBy2] * H_p_ch.im[kFftLengthBy2]; in ComputeFrequencyResponse_Sse2() 121 H2_p[kFftLengthBy2] = std::max(H2_p[kFftLengthBy2], H2_new); in ComputeFrequencyResponse_Sse2() 161 constexpr size_t kNumFourBinBands = kFftLengthBy2 / 4; in AdaptPartitions_Neon() 203 H_p_ch.re[kFftLengthBy2] += X.re[kFftLengthBy2] * G.re[kFftLengthBy2] + in AdaptPartitions_Neon() [all …]
|
D | reverb_decay_estimator.cc | 32 -0.5f * kBlocksPerSection * kFftLengthBy2 + 0.5f; 36 constexpr float kOneByFftLengthBy2 = 1.f / kFftLengthBy2; in BlockAverage() 37 const int i = block_index * kFftLengthBy2; in BlockAverage() 38 RTC_DCHECK_GE(v.size(), i + kFftLengthBy2); in BlockAverage() 40 std::accumulate(v.begin() + i, v.begin() + i + kFftLengthBy2, 0.f); in BlockAverage() 45 void AnalyzeBlockGain(const std::array<float, kFftLengthBy2>& h2, in AnalyzeBlockGain() 64 RTC_DCHECK_LE((peak_block + 1) * kFftLengthBy2, h.size()); in BlockEnergyPeak() 67 *std::max_element(h.begin() + peak_block * kFftLengthBy2, in BlockEnergyPeak() 68 h.begin() + (peak_block + 1) * kFftLengthBy2, in BlockEnergyPeak() 75 RTC_DCHECK_LE((block_index + 1) * kFftLengthBy2, h.size()); in BlockEnergyAverage() [all …]
|
D | fft_data.h | 34 im[0] = im[kFftLengthBy2] = 0; in Assign() 53 constexpr int kNumFourBinBands = kFftLengthBy2 / 4; in Spectrum() 63 power_spectrum[kFftLengthBy2] = re[kFftLengthBy2] * re[kFftLengthBy2] + in Spectrum() 64 im[kFftLengthBy2] * im[kFftLengthBy2]; in Spectrum() 79 re[kFftLengthBy2] = v[1]; in CopyFromPackedArray() 80 im[0] = im[kFftLengthBy2] = 0; in CopyFromPackedArray() 81 for (size_t k = 1, j = 2; k < kFftLengthBy2; ++k) { in CopyFromPackedArray() 91 (*v)[1] = re[kFftLengthBy2]; in CopyToPackedArray() 92 for (size_t k = 1, j = 2; k < kFftLengthBy2; ++k) { in CopyToPackedArray()
|
D | aec3_common.h | 35 constexpr size_t kFftLengthBy2 = 64; variable 36 constexpr size_t kFftLengthBy2Plus1 = kFftLengthBy2 + 1; 37 constexpr size_t kFftLengthBy2Minus1 = kFftLengthBy2 - 1; 38 constexpr size_t kFftLength = 2 * kFftLengthBy2; 47 constexpr size_t kBlockSize = kFftLengthBy2; 50 constexpr size_t kExtendedBlockSize = 2 * kFftLengthBy2; 66 return filter_length_blocks * kFftLengthBy2; in GetTimeDomainLength() 96 static_assert(1 << kFftLengthBy2Log2 == kFftLengthBy2,
|
D | fft_data_avx2.cc | 22 for (size_t k = 0; k < kFftLengthBy2; k += 8) { in SpectrumAVX2() 29 power_spectrum[kFftLengthBy2] = re[kFftLengthBy2] * re[kFftLengthBy2] + in SpectrumAVX2() 30 im[kFftLengthBy2] * im[kFftLengthBy2]; in SpectrumAVX2()
|
D | aec3_fft_unittest.cc | 46 std::array<float, kFftLengthBy2> x; in TEST() 55 std::array<float, kFftLengthBy2 - 1> x; in TEST() 62 std::array<float, kFftLengthBy2> x; in TEST() 63 std::array<float, kFftLengthBy2> x_old; in TEST() 71 std::array<float, kFftLengthBy2 - 1> x; in TEST() 72 std::array<float, kFftLengthBy2> x_old; in TEST() 80 std::array<float, kFftLengthBy2> x; in TEST() 81 std::array<float, kFftLengthBy2 - 1> x_old; in TEST() 160 std::array<float, kFftLengthBy2> x_in; in TEST() 169 x_ref[j + kFftLengthBy2] = x_in[j] * 64.f; in TEST() [all …]
|
D | subband_erle_estimator.cc | 32 std::fill(max_erle.begin(), max_erle.begin() + kFftLengthBy2 / 2, max_erle_l); in SetMaxErleBands() 33 std::fill(max_erle.begin() + kFftLengthBy2 / 2, max_erle.end(), max_erle_h); in SetMaxErleBands() 90 erle[kFftLengthBy2] = erle[kFftLengthBy2 - 1]; in Update() 94 erle_oc[kFftLengthBy2] = erle_oc[kFftLengthBy2 - 1]; in Update() 98 erle_u[kFftLengthBy2] = erle_u[kFftLengthBy2 - 1]; in Update() 122 std::array<float, kFftLengthBy2> new_erle; in UpdateBands() 123 std::array<bool, kFftLengthBy2> is_erle_updated; in UpdateBands() 126 for (size_t k = 1; k < kFftLengthBy2; ++k) { in UpdateBands() 134 for (size_t k = 1; k < kFftLengthBy2; ++k) { in UpdateBands() 163 for (size_t k = 1; k < kFftLengthBy2; ++k) { in UpdateBands() [all …]
|
D | aec3_fft.cc | 24 const float kHanning64[kFftLengthBy2] = { 91 RTC_DCHECK_EQ(kFftLengthBy2, x.size()); in ZeroPaddedFft() 93 std::fill(fft.begin(), fft.begin() + kFftLengthBy2, 0.f); in ZeroPaddedFft() 96 std::copy(x.begin(), x.end(), fft.begin() + kFftLengthBy2); in ZeroPaddedFft() 100 fft.begin() + kFftLengthBy2, in ZeroPaddedFft() 118 RTC_DCHECK_EQ(kFftLengthBy2, x.size()); in PaddedFft() 119 RTC_DCHECK_EQ(kFftLengthBy2, x_old.size()); in PaddedFft()
|
D | render_signal_analyzer.cc | 31 std::array<size_t, kFftLengthBy2 - 1>* narrow_band_counters) { in IdentifySmallNarrowBandRegions() 39 std::array<size_t, kFftLengthBy2 - 1> channel_counters; in IdentifySmallNarrowBandRegions() 44 for (size_t k = 1; k < kFftLengthBy2; ++k) { in IdentifySmallNarrowBandRegions() 50 for (size_t k = 1; k < kFftLengthBy2; ++k) { in IdentifySmallNarrowBandRegions() 146 for (size_t k = 2; k < kFftLengthBy2 - 1; ++k) { in MaskRegionsAroundNarrowBands() 151 if (narrow_band_counters_[kFftLengthBy2 - 2] > kCounterThreshold) { in MaskRegionsAroundNarrowBands() 152 (*v)[kFftLengthBy2] = (*v)[kFftLengthBy2 - 1] = 0.f; in MaskRegionsAroundNarrowBands()
|
D | suppression_filter.cc | 71 std::vector<std::array<float, kFftLengthBy2>>( in SuppressionFilter() 129 for (size_t i = 0; i < kFftLengthBy2; ++i) { in ApplyGain() 130 float e0_i = e0_old[i] * kSqrtHanning[kFftLengthBy2 + i]; in ApplyGain() 136 std::copy(e_extended.begin() + kFftLengthBy2, in ApplyGain() 143 for (size_t i = 0; i < kFftLengthBy2; ++i) { in ApplyGain() 156 for (size_t i = 0; i < kFftLengthBy2; ++i) { in ApplyGain() 165 for (size_t i = 0; i < kFftLengthBy2; ++i) { in ApplyGain() 173 for (size_t i = 0; i < kFftLengthBy2; ++i) { in ApplyGain()
|
D | adaptive_fir_filter_erl.cc | 46 for (size_t k = 0; k < kFftLengthBy2; k += 4) { in ErlComputer_NEON() 52 erl[kFftLengthBy2] += H2_j[kFftLengthBy2]; in ErlComputer_NEON() 65 for (size_t k = 0; k < kFftLengthBy2; k += 4) { in ErlComputer_SSE2() 71 erl[kFftLengthBy2] += H2_j[kFftLengthBy2]; in ErlComputer_SSE2()
|
D | adaptive_fir_filter_erl_avx2.cc | 26 for (size_t k = 0; k < kFftLengthBy2; k += 8) { in ErlComputer_AVX2() 32 erl[kFftLengthBy2] += H2_j[kFftLengthBy2]; in ErlComputer_AVX2()
|
D | suppression_filter_unittest.cc | 77 std::array<float, kFftLengthBy2> e_old_; in TEST() 118 std::array<float, kFftLengthBy2> e_old_; in TEST() 137 ProduceSinusoid(16000, 16000 * 40 / kFftLengthBy2 / 2, &sample_counter, &e); in TEST() 166 std::array<float, kFftLengthBy2> e_old_; in TEST() 185 ProduceSinusoid(16000, 16000 * 10 / kFftLengthBy2 / 2, &sample_counter, &e); in TEST() 214 std::array<float, kFftLengthBy2> e_old_; in TEST()
|
D | erl_estimator.cc | 106 for (size_t k = 1; k < kFftLengthBy2; ++k) { in Update() 125 erl_[kFftLengthBy2] = erl_[kFftLengthBy2 - 1]; in Update()
|
D | comfort_noise_generator.cc | 76 N_low->re[0] = N_low->re[kFftLengthBy2] = N_high->re[0] = in GenerateComfortNoise() 77 N_high->re[kFftLengthBy2] = 0.f; in GenerateComfortNoise() 78 for (size_t k = 1; k < kFftLengthBy2; k++) { in GenerateComfortNoise()
|
D | echo_remover.cc | 164 std::vector<std::array<float, kFftLengthBy2>> e_old_; 165 std::vector<std::array<float, kFftLengthBy2>> y_old_; 170 std::vector<std::array<float, kFftLengthBy2>> e_heap_; 257 std::array<std::array<float, kFftLengthBy2>, kMaxNumChannelsOnStack> e_stack; in ProcessCapture() 274 rtc::ArrayView<std::array<float, kFftLengthBy2>> e(e_stack.data(), in ProcessCapture() 297 e = rtc::ArrayView<std::array<float, kFftLengthBy2>>(e_heap_.data(), in ProcessCapture()
|
D | refined_filter_update_gain_unittest.cc | 114 constexpr float kScale = 1.0f / kFftLengthBy2; in RunFilterUpdateTest() 158 std::transform(y.begin(), y.end(), s_scratch.begin() + kFftLengthBy2, in RunFilterUpdateTest() 165 s[k] = kScale * s_scratch[k + kFftLengthBy2]; in RunFilterUpdateTest() 171 std::transform(y.begin(), y.end(), s_scratch.begin() + kFftLengthBy2, in RunFilterUpdateTest()
|
D | suppression_filter.h | 46 std::vector<std::vector<std::array<float, kFftLengthBy2>>> e_output_old_;
|
D | render_signal_analyzer.h | 55 std::array<size_t, kFftLengthBy2 - 1> narrow_band_counters_;
|
D | subtractor.cc | 40 constexpr float kScale = 1.0f / kFftLengthBy2; in PredictionError() 41 std::transform(y.begin(), y.end(), tmp.begin() + kFftLengthBy2, e->begin(), in PredictionError() 46 (*s)[k] = kScale * tmp[k + kFftLengthBy2]; in PredictionError()
|
D | reverb_frequency_response.cc | 101 for (size_t k = 1; k < kFftLengthBy2; ++k) { in Update()
|
D | coarse_filter_update_gain_unittest.cc | 71 constexpr float kScale = 1.0f / kFftLengthBy2; in RunFilterUpdateTest() 99 std::transform(y.begin(), y.end(), s.begin() + kFftLengthBy2, in RunFilterUpdateTest()
|
D | render_signal_analyzer_unittest.cc | 77 16000 / 2 * kSinusFrequencyBin / kFftLengthBy2, in RunNarrowBandDetectionTest()
|
D | adaptive_fir_filter_unittest.cc | 513 constexpr float kScale = 1.0f / kFftLengthBy2; in TEST_P() 563 std::transform(y.begin(), y.end(), s_scratch.begin() + kFftLengthBy2, in TEST_P() 571 o.s_refined[k] = kScale * s_scratch[k + kFftLengthBy2]; in TEST_P()
|