Home
last modified time | relevance | path

Searched refs:peak_index (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddsp_helper.cc104 size_t* peak_index, int16_t* peak_value) { in PeakDetection() argument
117 peak_index[i] = WebRtcSpl_MaxIndexW16(data, data_length - 1); in PeakDetection()
120 min_index = (peak_index[i] > 2) ? (peak_index[i] - 2) : 0; in PeakDetection()
121 max_index = std::min(data_length - 1, peak_index[i] + 2); in PeakDetection()
124 if ((peak_index[i] != 0) && (peak_index[i] != (data_length - 2))) { in PeakDetection()
125 ParabolicFit(&data[peak_index[i] - 1], fs_mult, &peak_index[i], in PeakDetection()
128 if (peak_index[i] == data_length - 2) { in PeakDetection()
129 if (data[peak_index[i]] > data[peak_index[i] + 1]) { in PeakDetection()
130 ParabolicFit(&data[peak_index[i] - 1], fs_mult, &peak_index[i], in PeakDetection()
132 } else if (data[peak_index[i]] <= data[peak_index[i] + 1]) { in PeakDetection()
[all …]
Dtime_stretch.cc63 size_t peak_index; in Process() local
66 fs_mult_, &peak_index, &peak_value); in Process()
68 assert(peak_index <= (2 * kCorrelationLen - 1) * fs_mult_); in Process()
74 peak_index += kMinLag * fs_mult_ * 2; in Process()
76 assert(peak_index >= static_cast<size_t>(20 * fs_mult_)); in Process()
77 assert(peak_index <= 20 * fs_mult_ + (2 * kCorrelationLen - 1) * fs_mult_); in Process()
82 WebRtcSpl_NormW32(static_cast<int32_t>(peak_index)); in Process()
86 const int16_t* vec1 = &signal[fs_mult_120 - peak_index]; in Process()
92 WebRtcSpl_DotProductWithScale(vec1, vec1, peak_index, scaling); in Process()
94 WebRtcSpl_DotProductWithScale(vec2, vec2, peak_index, scaling); in Process()
[all …]
Daccelerate.cc46 size_t peak_index, in CheckCriteriaAndStretch() argument
65 peak_index = (fs_mult_120 / peak_index) * peak_index; in CheckCriteriaAndStretch()
68 assert(fs_mult_120 >= peak_index); // Should be handled in Process(). in CheckCriteriaAndStretch()
74 peak_index * num_channels_); in CheckCriteriaAndStretch()
76 output->CrossFade(temp_vector, peak_index); in CheckCriteriaAndStretch()
79 &input[(fs_mult_120 + peak_index) * num_channels_], in CheckCriteriaAndStretch()
80 input_length - (fs_mult_120 + peak_index) * num_channels_); in CheckCriteriaAndStretch()
Dpreemptive_expand.cc44 size_t* peak_index) const { in SetParametersForPassiveSpeech()
53 *peak_index = std::min(*peak_index, in SetParametersForPassiveSpeech()
60 size_t peak_index, in CheckCriteriaAndStretch() argument
80 input, (unmodified_length + peak_index) * num_channels_); in CheckCriteriaAndStretch()
84 &input[(unmodified_length - peak_index) * num_channels_], in CheckCriteriaAndStretch()
85 peak_index * num_channels_); in CheckCriteriaAndStretch()
87 output->CrossFade(temp_vector, peak_index); in CheckCriteriaAndStretch()
Dtime_stretch.h71 size_t* peak_index) const = 0;
79 size_t peak_index,
110 size_t peak_index, int scaling) const;
Daccelerate.h55 size_t* peak_index) const override;
61 size_t peak_index,
Dpreemptive_expand.h57 size_t* peak_index) const override;
63 size_t peak_index,
Ddsp_helper.h83 size_t* peak_index, int16_t* peak_value);
92 size_t* peak_index, int16_t* peak_value);