/external/libopus/silk/float/ |
H A D | corrMatrix_FLP.c | 43 const opus_int Order, /* I Max lag for correlation */ 47 opus_int lag; local 51 for( lag = 0; lag < Order; lag++ ) { 52 /* Calculate X[:,lag]'*t */ 53 Xt[ lag ] = (silk_float)silk_inner_product_FLP( ptr1, t, L ); 62 const opus_int Order, /* I Max lag for correlation */ 66 opus_int j, lag; local 80 for( lag [all...] |
H A D | prefilter_FLP.c | 46 opus_int lag, /* I */ 102 opus_int j, k, lag; local 114 lag = P->lagPrev; 118 lag = psEncCtrl->pitchL[ k ]; 145 silk_prefilt_FLP( P, pxw, pxw, HarmShapeFIR, Tilt, LF_MA_shp, LF_AR_shp, lag, psEnc->sCmn.subfr_length ); 164 opus_int lag, /* I */ 181 if( lag > 0 ) { 183 idx = lag + LTP_shp_buf_idx; 156 silk_prefilt_FLP( silk_prefilter_state_FLP *P, silk_float st_res[], silk_float xw[], silk_float *HarmShapeFIR, silk_float Tilt, silk_float LF_MA_shp, silk_float LF_AR_shp, opus_int lag, opus_int length ) argument
|
H A D | pitch_analysis_core_FLP.c | 48 opus_int start_lag, /* I start lag */ 58 opus_int start_lag, /* I start lag */ 69 opus_int *pitch_out, /* O Pitch lag values [nb_subfr] */ 73 opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ 74 const silk_float search_thres1, /* I First stage threshold for lag candidates 0 - 1 */ 75 const silk_float search_thres2, /* I Final threshold for lag candidates 0 - 1 */ 98 opus_int CBimax, CBimax_new, lag, start_lag, end_lag, lag_new; local 121 /* Set up frame lengths max / min lag for the sampling frequency */ 211 /* Apply short-lag bias */ 277 ** SECOND STAGE, operating at 8 kHz, on lag section [all...] |
/external/libopus/silk/fixed/ |
H A D | corrMatrix_FIX.c | 43 const opus_int order, /* I Max lag for correlation */ 48 opus_int lag, i; local 57 for( lag = 0; lag < order; lag++ ) { 62 Xt[ lag ] = inner_prod; /* X[:,lag]'*t */ 67 for( lag = 0; lag < order; lag 84 opus_int i, j, lag, rshifts_local, head_room_rshifts; local [all...] |
H A D | prefilter_FIX.c | 44 opus_int lag, /* I Lag for harmonic shaping */ 98 opus_int j, k, lag; local 113 lag = P->lagPrev; 119 lag = psEncCtrl->pitchL[ k ]; 148 silk_prefilt_FIX( P, x_filt_Q12, pxw_Q3, HarmShapeFIRPacked_Q12, Tilt_Q14, LF_shp_Q14, lag, psEnc->sCmn.subfr_length ); 166 opus_int lag, /* I Lag for harmonic shaping */ 182 if( lag > 0 ) { 185 idx = lag + LTP_shp_buf_idx; 159 silk_prefilt_FIX( silk_prefilter_state_FIX *P, opus_int32 st_res_Q12[], opus_int32 xw_Q3[], opus_int32 HarmShapeFIRPacked_Q12, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int lag, opus_int length ) argument
|
H A D | pitch_analysis_core_FIX.c | 62 opus_int start_lag, /* I lag offset to search around */ 72 opus_int start_lag, /* I lag offset to search around */ 83 opus_int *pitch_out, /* O 4 pitch lag values */ 87 opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ 88 const opus_int32 search_thres1_Q16, /* I First stage threshold for lag candidates 0 - 1 */ 89 const opus_int search_thres2_Q13, /* I Final threshold for lag candidates 0 - 1 */ 108 opus_int CBimax, CBimax_new, CBimax_old, lag, start_lag, end_lag, lag_new; local 131 /* Set up frame lengths max / min lag for the sampling frequency */ 227 /* Combine two subframes into single correlation measure and apply short-lag bias */ 236 /* Only short-lag bia [all...] |
/external/speex/libspeex/ |
H A D | lpc.h | 42 spx_word16_t *ac, /* out: [0...lag-1] ac values */ 43 int lag, int n);
|
H A D | lpc_bfin.h | 39 spx_word16_t *ac, /* out: [0...lag-1] ac values */ 40 int lag, 50 ac32top = ac32+lag-1; 53 lag_1 = lag-1; 71 xs = x+lag-1; 119 for (i=0;i<lag;i++) 37 _spx_autocorr( const spx_word16_t *x, spx_word16_t *ac, int lag, int n ) argument
|
H A D | lpc.c | 124 * for lags between 0 and lag-1, and x == 0 outside 0...n-1 130 spx_word16_t *ac, /* out: [0...lag-1] ac values */ 131 int lag, 157 for (i=0;i<lag;i++) 179 * for lags between 0 and lag-1, and x == 0 outside 0...n-1 183 float *ac, /* out: [0...lag-1] ac values */ 184 int lag, 190 while (lag--) 192 for (i = lag, d = 0; i < n; i++) 193 d += x[i] * x[i-lag]; 128 _spx_autocorr( const spx_word16_t *x, spx_word16_t *ac, int lag, int n ) argument 181 _spx_autocorr( const spx_word16_t *x, float *ac, int lag, int n ) argument [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | comp_corr.h | 26 * of last subframe at given lag. 33 size_t lag, /* (i) pitch lag */
|
H A D | comp_corr.c | 23 * of last subframe at given lag. 30 size_t lag, /* (i) pitch lag */ 37 w16ptr=&buffer[bLen-sRange-lag]; 26 WebRtcIlbcfix_CompCorr( int32_t *corr, int32_t *ener, int16_t *buffer, size_t lag, size_t bLen, size_t sRange, int16_t scale ) argument
|
H A D | get_cd_vec.c | 35 size_t lag; local 59 /* Calculate lag */ 63 lag = k / 2; 65 WebRtcIlbcfix_CreateAugmentedVec(lag, mem+lMem, cbvec); 105 /* Calculate lag index */ 106 lag = (cbveclen<<1)-20+index-base_size-lMem-1; 108 WebRtcIlbcfix_CreateAugmentedVec(lag, tempbuff2+SUBL+5, cbvec);
|
H A D | enhancer_interface.c | 33 size_t WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */ 39 size_t lag=20, tlag=20; local 174 lag = lagmax[ind] + 10; 176 /* Store the estimated lag in the non-downsampled domain */ 177 enh_period[ENH_NBLOCKS_TOT - new_blocks + iblock] = lag * 8; 179 /* Store the estimated lag for backward PLC */ 182 tlag = lag * 2; 186 tlag = lag * 2; 190 lag *= 2; 195 /* Calculate the best lag o 349 lag); local 360 lag); local [all...] |
H A D | decode.c | 191 size_t lag; local 193 /* Find last lag (since the enhancer is not called to give this info) */ 194 lag = 20; 196 lag = WebRtcIlbcfix_XcorrCoef( 198 &decresidual[iLBCdec_inst->blockl-60-lag], 200 80, lag, -1); 202 lag = WebRtcIlbcfix_XcorrCoef( 204 &decresidual[iLBCdec_inst->blockl-ENH_BLOCKL-lag], 206 100, lag, -1); 209 /* Store lag (i [all...] |
H A D | do_plc.c | 36 size_t inlag, /* (i) pitch lag */ 44 size_t j, lag, randlag; local 85 /* Search around the previous lag +/-3 to find the 87 lag = inlag - 3; 93 iLBCdec_inst->prevResidual, lag, iLBCdec_inst->blockl, corrLen, scale3); 106 this lag is better or not. To avoid the division, 131 /* New lag is better => record lag, measure and domain */ 132 lag = j; 140 /* Calculate the periodicity for the lag wit [all...] |
/external/libopus/silk/ |
H A D | decode_pitch.c | 46 opus_int lag, k, min_lag, max_lag, cbk_size; local 71 lag = min_lag + lagIndex; 74 pitch_lags[ k ] = lag + matrix_ptr( Lag_CB_ptr, k, contourIndex, cbk_size );
|
H A D | NSQ.c | 45 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ 59 opus_int lag, /* I Pitch lag */ 89 opus_int k, lag, start_idx, LSF_interpolation_flag; local 101 /* Set unvoiced lag to the previous one, overwrite later for voiced */ 102 lag = NSQ->lagPrev; 135 lag = pitchL[ k ]; 140 start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; 154 AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q10, 185 opus_int lag, /* 175 silk_noise_shape_quantizer( silk_nsq_state *NSQ, opus_int signalType, const opus_int32 x_sc_Q10[], opus_int8 pulses[], opus_int16 xq[], opus_int32 sLTP_Q15[], const opus_int16 a_Q12[], const opus_int16 b_Q14[], const opus_int16 AR_shp_Q13[], opus_int lag, opus_int32 HarmShapeFIRPacked_Q14, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int32 Gain_Q16, opus_int Lambda_Q10, opus_int offset_Q10, opus_int length, opus_int shapingLPCOrder, opus_int predictLPCOrder ) argument 387 opus_int i, lag; local [all...] |
H A D | decode_core.c | 45 opus_int i, k, lag = 0, start_idx, sLTP_buf_idx, NLSF_interpolation_flag, signalType; local 137 lag = psDecCtrl->pitchL[ k ]; 142 start_idx = psDec->ltp_mem_length - lag - psDec->LPC_order - LTP_ORDER / 2; 157 for( i = 0; i < lag + LTP_ORDER/2; i++ ) { 163 for( i = 0; i < lag + LTP_ORDER/2; i++ ) { 173 pred_lag_ptr = &sLTP_Q15[ sLTP_buf_idx - lag + LTP_ORDER / 2 ];
|
H A D | NSQ_del_dec.c | 72 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ 92 opus_int lag, /* I Pitch lag */ 127 opus_int i, k, lag, start_idx, LSF_interpolation_flag, Winner_ind, subfr; local 142 /* Set unvoiced lag to the previous one, overwrite later for voiced */ 143 lag = NSQ->lagPrev; 166 /* For voiced frames limit the decision delay to lower than the pitch lag */ 172 if( lag > 0 ) { 173 decisionDelay = silk_min_int( decisionDelay, lag - LTP_ORDER / 2 - 1 ); 206 lag 306 silk_noise_shape_quantizer_del_dec( silk_nsq_state *NSQ, NSQ_del_dec_struct psDelDec[], opus_int signalType, const opus_int32 x_Q10[], opus_int8 pulses[], opus_int16 xq[], opus_int32 sLTP_Q15[], opus_int32 delayedGain_Q10[], const opus_int16 a_Q12[], const opus_int16 b_Q14[], const opus_int16 AR_shp_Q13[], opus_int lag, opus_int32 HarmShapeFIRPacked_Q14, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int32 Gain_Q16, opus_int Lambda_Q10, opus_int offset_Q10, opus_int length, opus_int subfr, opus_int shapingLPCOrder, opus_int predictLPCOrder, opus_int warping_Q16, opus_int nStatesDelayedDecision, opus_int *smpl_buf_idx, opus_int decisionDelay ) argument 650 opus_int i, k, lag; local [all...] |
/external/flac/libFLAC/include/private/ |
H A D | lpc.h | 54 * OUT out[0,lag-1] 62 * Compute the autocorrelation for lags between 0 and lag-1. 64 * Asserts that lag > 0. 68 * IN 0 < lag <= data_len 69 * OUT autoc[0,lag-1] 71 void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[]); 75 void FLAC__lpc_compute_autocorrelation_asm_ia32(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[]); 76 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4_old(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[]); 77 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8_old(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[]); 78 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12_old(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__rea [all...] |
/external/libopus/celt/ |
H A D | celt_lpc.h | 52 const opus_val16 *window, int overlap, int lag, int n, int arch);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
H A D | filter_functions.c | 99 size_t lag, n; local 103 for (lag = 0; lag <= order; lag++) 106 x_lag = &x[lag]; 108 for (n = 1; n < N - lag; n++) { 113 r[lag] = sum;
|
H A D | pitch_filter.c | 23 * y(z) = x(z) + damper(z) * gain * (x(z) + y(z)) * z ^ (-lag); 26 * y(z) = x(z) - damper(z) * gain * (x(z) + y(z)) * z ^ (-lag); 28 * Note that |lag| is a floating number so we perform an interpolation to 29 * obtain the correct |lag|. 93 * lag : pitch-lag for the current segment of input. 94 * lag_offset : the offset of lag w.r.t. current sample. 109 double lag; member in struct:__anon21419 145 /* Index of |parameters->buffer| where samples are read for fractional-lag 218 /* Compute integer lag [all...] |
/external/aac/libAACenc/src/ |
H A D | aacenc_tns.cpp | 503 Calculate autocorellation value for one lag 508 \param lag to be calculated 509 \param scaling of the lag 516 const INT lag, 523 if (lag==0) { 529 for (i=startLine; i<(stopLine-lag); i++) { 530 result += (fMult(spectrum[i], spectrum[i+lag])>>scale); 597 int i, idx0, idx1, idx2, idx3, idx4, lag; local 643 /* compute autocorrelation value at lag zero, i. e. energy, for each quarter */ 658 for (lag 512 FDKaacEnc_CalcAutoCorrValue( const FIXP_DBL *spectrum, const INT startLine, const INT stopLine, const INT lag, const INT scale ) argument [all...] |
/external/jemalloc/test/src/ |
H A D | SFMT.c | 643 int lag; local 655 lag = 11; 657 lag = 7; 659 lag = 5; 661 lag = 3; 663 mid = (size - lag) / 2; 675 psfmt32[idxof(mid + lag)] += r; 684 psfmt32[idxof((i + mid + lag) % N32)] += r; 693 psfmt32[idxof((i + mid + lag) % N32)] += r; 702 psfmt32[idxof((i + mid + lag) [all...] |