/external/chromium_org/third_party/opus/src/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 | 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.c | 44 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ 58 opus_int lag, /* I Pitch lag */ 88 opus_int k, lag, start_idx, LSF_interpolation_flag; local 99 /* Set unvoiced lag to the previous one, overwrite later for voiced */ 100 lag = NSQ->lagPrev; 129 lag = pitchL[ k ]; 134 start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; 148 AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q10, 178 opus_int lag, /* 168 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 380 opus_int i, lag; local [all...] |
H A D | PLC.c | 175 opus_int lag, idx, sLTP_buf_idx, shift1, shift2; local 267 lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); 271 idx = psDec->ltp_mem_length - lag - psDec->LPC_order - LTP_ORDER / 2; 286 pred_lag_ptr = &sLTP_Q14[ sLTP_buf_idx - lag + LTP_ORDER / 2 ]; 312 /* Slowly increase pitch lag */ 315 lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); 361 psDecCtrl->pitchL[ i ] = lag;
|
H A D | NSQ_del_dec.c | 69 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ 89 opus_int lag, /* I Pitch lag */ 124 opus_int i, k, lag, start_idx, LSF_interpolation_flag, Winner_ind, subfr; local 138 /* Set unvoiced lag to the previous one, overwrite later for voiced */ 139 lag = NSQ->lagPrev; 161 /* For voiced frames limit the decision delay to lower than the pitch lag */ 167 if( lag > 0 ) { 168 decisionDelay = silk_min_int( decisionDelay, lag - LTP_ORDER / 2 - 1 ); 196 lag 295 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 636 opus_int i, k, lag; local [all...] |
/external/chromium_org/third_party/opus/src/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 */ 57 opus_int start_lag, /* I start lag */ 68 opus_int *pitch_out, /* O Pitch lag values [nb_subfr] */ 72 opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ 73 const silk_float search_thres1, /* I First stage threshold for lag candidates 0 - 1 */ 74 const silk_float search_thres2, /* I Final threshold for lag candidates 0 - 1 */ 95 opus_int CBimax, CBimax_new, lag, start_lag, end_lag, lag_new; local 118 /* Set up frame lengths max / min lag for the sampling frequency */ 205 /* Apply short-lag bias */ 277 ** SECOND STAGE, operating at 8 kHz, on lag section [all...] |
/external/speex/libspeex/ |
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...] |
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
|
/external/chromium_org/third_party/opus/src/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 | 43 opus_int lag, /* I Lag for harmonic shaping */ 97 opus_int j, k, lag; local 111 lag = P->lagPrev; 115 lag = psEncCtrl->pitchL[ k ]; 144 silk_prefilt_FIX( P, x_filt_Q12, pxw_Q3, HarmShapeFIRPacked_Q12, Tilt_Q14, LF_shp_Q14, lag, psEnc->sCmn.subfr_length ); 161 opus_int lag, /* I Lag for harmonic shaping */ 177 if( lag > 0 ) { 180 idx = lag + LTP_shp_buf_idx; 154 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 | 47 opus_int start_lag, /* I lag offset to search around */ 56 opus_int start_lag, /* I lag offset to search around */ 73 opus_int *pitch_out, /* O 4 pitch lag values */ 77 opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ 78 const opus_int32 search_thres1_Q16, /* I First stage threshold for lag candidates 0 - 1 */ 79 const opus_int search_thres2_Q15, /* I Final threshold for lag candidates 0 - 1 */ 97 opus_int CBimax, CBimax_new, CBimax_old, lag, start_lag, end_lag, lag_new; local 119 /* Set up frame lengths max / min lag for the sampling frequency */ 215 /* Combine two subframes into single correlation measure and apply short-lag bias */ 227 /* Only short-lag bia [all...] |
/external/chromium_org/third_party/opus/src/celt/ |
H A D | celt_lpc.c | 141 opus_val32 *ac, /* out: [0...lag-1] ac values */ 144 int lag, 176 while (lag>=0) 178 for (i = lag, d = 0; i < n; i++) 179 d += xx[i] * xx[i-lag]; 180 ac[lag] = d; 181 /*printf ("%f ", ac[lag]);*/ 182 lag--; 139 _celt_autocorr( const opus_val16 *x, opus_val32 *ac, const opus_val16 *window, int overlap, int lag, int n ) argument
|
H A D | pitch.c | 176 int lag; local 192 lag = len+max_pitch; 195 ALLOC(y_lp4, lag>>2, opus_val16); 201 for (j=0;j<lag>>2;j++) 206 ymax = celt_maxabs16(y_lp4, lag>>2); 212 for (j=0;j<lag>>2;j++)
|
/external/flac/libFLAC/ |
H A D | lpc.c | 63 void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[]) argument 70 FLAC__ASSERT(lag > 0); 71 FLAC__ASSERT(lag <= data_len); 80 while(lag--) { 81 for(i = lag, d = 0.0; i < data_len; i++) 82 d += data[i] * data[i - lag]; 83 autoc[lag] = d; 89 * ('data_len' is usually much larger than 'lag') 93 const unsigned limit = data_len - lag; 95 FLAC__ASSERT(lag > [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
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:__anon28067 145 /* Index of |parameters->buffer| where samples are read for fractional-lag 218 /* Compute integer lag [all...] |
H A D | filter_functions.c | 94 int lag, n; local 98 for (lag = 0; lag <= order; lag++) 101 x_lag = &x[lag]; 103 for (n = 1; n < N - lag; n++) { 108 r[lag] = sum;
|
/external/aac/libAACenc/src/ |
H A D | aacenc_tns.cpp | 533 Calculate autocorellation value for one lag 538 \param lag to be calculated 539 \param scaling of the lag 546 const INT lag, 553 if (lag==0) { 559 for (i=startLine; i<(stopLine-lag); i++) { 560 result += (fMult(spectrum[i], spectrum[i+lag])>>scale); 626 int i, idx0, idx1, idx2, idx3, idx4, lag; local 670 /* compute autocorrelation value at lag zero, i. e. energy, for each quarter */ 683 for (lag 542 FDKaacEnc_CalcAutoCorrValue( const FIXP_DBL *spectrum, const INT startLine, const INT stopLine, const INT lag, const INT scale ) argument [all...] |