Home
last modified time | relevance | path

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

/external/webrtc/webrtc/modules/audio_coding/neteq/
Dtime_stretch.cc97 int32_t cross_corr = in Process() local
133 cross_corr = WEBRTC_SPL_SHIFT_W32(cross_corr, temp_scale); in Process()
134 cross_corr = std::max(0, cross_corr); // Don't use if negative. in Process()
135 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.c105 opus_int32 cross_corr, normalizer, energy, shift, energy_basis, energy_target; in silk_pitch_analysis_core() local
198 cross_corr = xcorr32[ MAX_LAG_4KHZ - MIN_LAG_4KHZ ]; in silk_pitch_analysis_core()
204 … (opus_int16)silk_DIV32_varQ( cross_corr, normalizer, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core()
214 cross_corr = xcorr32[ MAX_LAG_4KHZ - d ]; in silk_pitch_analysis_core()
222 … (opus_int16)silk_DIV32_varQ( cross_corr, normalizer, 13 + 1 ); /* Q13 */ in silk_pitch_analysis_core()
347 cross_corr = silk_inner_prod_aligned( target_ptr, basis_ptr, SF_LENGTH_8KHZ, arch ); in silk_pitch_analysis_core()
348 if( cross_corr > 0 ) { in silk_pitch_analysis_core()
351 (opus_int16)silk_DIV32_varQ( cross_corr, in silk_pitch_analysis_core()
533 cross_corr = 0; in silk_pitch_analysis_core()
536 cross_corr = silk_ADD32( cross_corr, in silk_pitch_analysis_core()
[all …]