Home
last modified time | relevance | path

Searched refs:cross_corr (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/modules/audio_processing/agc2/rnn_vad/
Dspectral_features_internal.cc102 rtc::ArrayView<float, kOpusBands24kHz> cross_corr) const { in ComputeCrossCorrelation()
109 cross_corr[0] = 0.f; in ComputeCrossCorrelation()
111 cross_corr[i + 1] = 0.f; in ComputeCrossCorrelation()
115 cross_corr[i] += v - tmp; in ComputeCrossCorrelation()
116 cross_corr[i + 1] += tmp; in ComputeCrossCorrelation()
120 cross_corr[0] *= 2.f; // The first band only gets half contribution. in ComputeCrossCorrelation()
Dspectral_features_internal.h69 rtc::ArrayView<float, kOpusBands24kHz> cross_corr) const;
/external/webrtc/modules/audio_coding/neteq/
Dtime_stretch.cc98 int32_t cross_corr = in Process() local
134 cross_corr = WEBRTC_SPL_SHIFT_W32(cross_corr, temp_scale); in Process()
135 cross_corr = std::max(0, cross_corr); // Don't use if negative. in Process()
136 best_correlation = WebRtcSpl_DivW32W16(cross_corr, sqrt_energy_prod); in Process()
/external/libopus/silk/float/
Dpitch_analysis_core_FLP.c93 double cross_corr, normalizer, energy, energy_tmp; in silk_pitch_analysis_core_FLP() local
184 cross_corr = xcorr[ max_lag_4kHz - min_lag_4kHz ]; in silk_pitch_analysis_core_FLP()
189 C[ 0 ][ min_lag_4kHz ] += (silk_float)( 2 * cross_corr / normalizer ); in silk_pitch_analysis_core_FLP()
199 cross_corr = xcorr[ max_lag_4kHz - d ]; in silk_pitch_analysis_core_FLP()
205 C[ 0 ][ d ] += (silk_float)( 2 * cross_corr / normalizer ); in silk_pitch_analysis_core_FLP()
294 cross_corr = silk_inner_product_FLP( basis_ptr, target_ptr, sf_length_8kHz ); in silk_pitch_analysis_core_FLP()
295 if( cross_corr > 0.0f ) { in silk_pitch_analysis_core_FLP()
297 C[ k ][ d ] = (silk_float)( 2 * cross_corr / ( energy + energy_tmp ) ); in silk_pitch_analysis_core_FLP()
436 cross_corr = 0.0; in silk_pitch_analysis_core_FLP()
439 cross_corr += cross_corr_st3[ k ][ j ][ lag_counter ]; in silk_pitch_analysis_core_FLP()
[all …]
/external/libopus/silk/fixed/
Dpitch_analysis_core_FIX.c106 opus_int32 cross_corr, normalizer, energy, energy_basis, energy_target; in silk_pitch_analysis_core() local
203 cross_corr = xcorr32[ MAX_LAG_4KHZ - MIN_LAG_4KHZ ]; in silk_pitch_analysis_core()
209 … (opus_int16)silk_DIV32_varQ( cross_corr, normalizer, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core()
219 cross_corr = xcorr32[ MAX_LAG_4KHZ - d ]; in silk_pitch_analysis_core()
227 … (opus_int16)silk_DIV32_varQ( cross_corr, normalizer, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core()
340 cross_corr = silk_inner_prod_aligned( target_ptr, basis_ptr, SF_LENGTH_8KHZ, arch ); in silk_pitch_analysis_core()
341 if( cross_corr > 0 ) { in silk_pitch_analysis_core()
344 (opus_int16)silk_DIV32_varQ( cross_corr, in silk_pitch_analysis_core()
508 cross_corr = 0; in silk_pitch_analysis_core()
511 cross_corr = silk_ADD32( cross_corr, in silk_pitch_analysis_core()
[all …]