Home
last modified time | relevance | path

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

/external/webrtc/modules/audio_coding/neteq/
Ddsp_helper.cc110 size_t* peak_index, in PeakDetection() argument
124 peak_index[i] = WebRtcSpl_MaxIndexW16(data, data_length - 1); in PeakDetection()
127 min_index = (peak_index[i] > 2) ? (peak_index[i] - 2) : 0; in PeakDetection()
128 max_index = std::min(data_length - 1, peak_index[i] + 2); in PeakDetection()
131 if ((peak_index[i] != 0) && (peak_index[i] != (data_length - 2))) { in PeakDetection()
132 ParabolicFit(&data[peak_index[i] - 1], fs_mult, &peak_index[i], in PeakDetection()
135 if (peak_index[i] == data_length - 2) { in PeakDetection()
136 if (data[peak_index[i]] > data[peak_index[i] + 1]) { in PeakDetection()
137 ParabolicFit(&data[peak_index[i] - 1], fs_mult, &peak_index[i], in PeakDetection()
139 } else if (data[peak_index[i]] <= data[peak_index[i] + 1]) { in PeakDetection()
[all …]
Dtime_stretch.cc64 size_t peak_index; in Process() local
67 fs_mult_, &peak_index, &peak_value); in Process()
69 assert(peak_index <= (2 * kCorrelationLen - 1) * fs_mult_); in Process()
75 peak_index += kMinLag * fs_mult_ * 2; in Process()
77 assert(peak_index >= static_cast<size_t>(20 * fs_mult_)); in Process()
78 assert(peak_index <= 20 * fs_mult_ + (2 * kCorrelationLen - 1) * fs_mult_); in Process()
83 WebRtcSpl_NormW32(static_cast<int32_t>(peak_index)); in Process()
87 const int16_t* vec1 = &signal[fs_mult_120 - peak_index]; in Process()
93 WebRtcSpl_DotProductWithScale(vec1, vec1, peak_index, scaling); in Process()
95 WebRtcSpl_DotProductWithScale(vec2, vec2, peak_index, scaling); in Process()
[all …]
Daccelerate.cc50 size_t peak_index, in CheckCriteriaAndStretch() argument
69 peak_index = (fs_mult_120 / peak_index) * peak_index; in CheckCriteriaAndStretch()
72 assert(fs_mult_120 >= peak_index); // Should be handled in Process(). in CheckCriteriaAndStretch()
79 &input[fs_mult_120 * num_channels_], peak_index * num_channels_)); in CheckCriteriaAndStretch()
81 output->CrossFade(temp_vector, peak_index); in CheckCriteriaAndStretch()
84 &input[(fs_mult_120 + peak_index) * num_channels_], in CheckCriteriaAndStretch()
85 input_length - (fs_mult_120 + peak_index) * num_channels_)); in CheckCriteriaAndStretch()
Dpreemptive_expand.cc47 size_t* peak_index) const { in SetParametersForPassiveSpeech()
56 *peak_index = std::min(*peak_index, len - old_data_length_per_channel_); in SetParametersForPassiveSpeech()
62 size_t peak_index, in CheckCriteriaAndStretch() argument
82 input, (unmodified_length + peak_index) * num_channels_)); in CheckCriteriaAndStretch()
86 &input[(unmodified_length - peak_index) * num_channels_], in CheckCriteriaAndStretch()
87 peak_index * num_channels_)); in CheckCriteriaAndStretch()
89 output->CrossFade(temp_vector, peak_index); in CheckCriteriaAndStretch()
Dtime_stretch.h67 size_t* peak_index) const = 0;
75 size_t peak_index,
107 size_t peak_index,
Daccelerate.h54 size_t* peak_index) const override;
60 size_t peak_index,
Dpreemptive_expand.h55 size_t* peak_index) const override;
61 size_t peak_index,
Ddsp_helper.h93 size_t* peak_index,
104 size_t* peak_index,
/external/webrtc/modules/audio_processing/aec3/
Dfilter_analyzer.cc72 state.peak_index = 0; in Reset()
124 st_ch.peak_index = std::min(st_ch.peak_index, h_highpass_[ch].size() - 1); in AnalyzeRegion()
126 st_ch.peak_index = in AnalyzeRegion()
127 FindPeakIndex(h_highpass_[ch], st_ch.peak_index, region_.start_sample_, in AnalyzeRegion()
129 filter_delays_blocks_[ch] = st_ch.peak_index >> kBlockSizeLog2; in AnalyzeRegion()
136 render_buffer.Block(-filter_delays_blocks_[ch])[0], st_ch.peak_index, in AnalyzeRegion()
148 st->gain = fabsf(filter_time_domain[st->peak_index]); in UpdateFilterGain()
152 st->gain = std::max(st->gain, fabsf(filter_time_domain[st->peak_index])); in UpdateFilterGain()
223 size_t peak_index, in Detect() argument
228 filter_floor_low_limit_ = peak_index < 64 ? 0 : peak_index - 64; in Detect()
[all …]
Dfilter_analyzer.h98 size_t peak_index,
117 size_t peak_index; member
/external/flac/src/flac/
Danalyze.c42 int peak_index; member
174 stats->peak_index = -1; in init_stats()
202 if(stats->peak_index < 0 || stats->buckets[i].count > stats->buckets[stats->peak_index].count) in update_stats()
203 stats->peak_index = i; in update_stats()
219 const double p = stats->buckets[stats->peak_index].count; in dump_stats()