Home
last modified time | relevance | path

Searched refs:kFftLengthBy2 (Results 1 – 25 of 31) sorted by relevance

12

/external/webrtc/modules/audio_processing/aec3/
Dadaptive_fir_filter_avx2.cc37 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 …]
Dadaptive_fir_filter.cc74 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 …]
Dreverb_decay_estimator.cc32 -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 …]
Dfft_data.h34 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()
Daec3_common.h35 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,
Dfft_data_avx2.cc22 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()
Daec3_fft_unittest.cc46 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 …]
Dsubband_erle_estimator.cc32 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 …]
Daec3_fft.cc24 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()
Drender_signal_analyzer.cc31 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()
Dsuppression_filter.cc71 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()
Dadaptive_fir_filter_erl.cc46 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()
Dadaptive_fir_filter_erl_avx2.cc26 for (size_t k = 0; k < kFftLengthBy2; k += 8) { in ErlComputer_AVX2()
32 erl[kFftLengthBy2] += H2_j[kFftLengthBy2]; in ErlComputer_AVX2()
Dsuppression_filter_unittest.cc77 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()
Derl_estimator.cc106 for (size_t k = 1; k < kFftLengthBy2; ++k) { in Update()
125 erl_[kFftLengthBy2] = erl_[kFftLengthBy2 - 1]; in Update()
Dcomfort_noise_generator.cc76 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()
Decho_remover.cc164 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()
Drefined_filter_update_gain_unittest.cc114 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()
Dsuppression_filter.h46 std::vector<std::vector<std::array<float, kFftLengthBy2>>> e_output_old_;
Drender_signal_analyzer.h55 std::array<size_t, kFftLengthBy2 - 1> narrow_band_counters_;
Dsubtractor.cc40 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()
Dreverb_frequency_response.cc101 for (size_t k = 1; k < kFftLengthBy2; ++k) { in Update()
Dcoarse_filter_update_gain_unittest.cc71 constexpr float kScale = 1.0f / kFftLengthBy2; in RunFilterUpdateTest()
99 std::transform(y.begin(), y.end(), s.begin() + kFftLengthBy2, in RunFilterUpdateTest()
Drender_signal_analyzer_unittest.cc77 16000 / 2 * kSinusFrequencyBin / kFftLengthBy2, in RunNarrowBandDetectionTest()
Dadaptive_fir_filter_unittest.cc513 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()

12