/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | comp_corr.c | 23 * of last subframe at given lag. 30 int16_t lag, /* (i) pitch lag */ 37 w16ptr=&buffer[bLen-sRange-lag]; 26 WebRtcIlbcfix_CompCorr( int32_t *corr, int32_t *ener, int16_t *buffer, int16_t lag, int16_t bLen, int16_t sRange, int16_t scale ) argument
|
H A D | get_cd_vec.c | 35 int16_t lag; local 59 /* Calculate lag */ 63 lag=WEBRTC_SPL_RSHIFT_W16(k, 1); 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 | decode.c | 190 int16_t lag; local 192 /* Find last lag (since the enhancer is not called to give this info) */ 193 lag = 20; 195 lag = (int16_t)WebRtcIlbcfix_XcorrCoef( 197 &decresidual[iLBCdec_inst->blockl-60-lag], 199 80, lag, -1); 201 lag = (int16_t)WebRtcIlbcfix_XcorrCoef( 203 &decresidual[iLBCdec_inst->blockl-ENH_BLOCKL-lag], 205 100, lag, -1); 208 /* Store lag (i [all...] |
H A D | do_plc.c | 36 int16_t inlag, /* (i) pitch lag */ 44 int16_t j, lag, tmp1, tmp2, randlag; local 83 /* Search around the previous lag +/-3 to find the 85 lag = inlag - 3; 91 iLBCdec_inst->prevResidual, lag, iLBCdec_inst->blockl, corrLen, scale3); 103 this lag is better or not. To avoid the division, 128 /* New lag is better => record lag, measure and domain */ 129 lag = j; 137 /* Calculate the periodicity for the lag wit [all...] |
H A D | enhancer_interface.c | 33 int WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */ 39 int lag=20, tlag=20; local 176 lag = lagmax[ind] + 10; 178 /* Store the estimated lag in the non-downsampled domain */ 180 (int16_t)WEBRTC_SPL_MUL_16_16(lag, 8); 182 /* Store the estimated lag for backward PLC */ 185 tlag = WEBRTC_SPL_MUL_16_16(lag, 2); 189 tlag = WEBRTC_SPL_MUL_16_16(lag, 2); 193 lag = WEBRTC_SPL_MUL_16_16(lag, [all...] |
/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 | 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 | 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;
|
/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
|
/external/chromium_org/third_party/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...] |
/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 | 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 ];
|
/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
|
/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 | 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
|
/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
|
/external/chromium_org/third_party/opus/src/celt/ |
H A D | celt_lpc.c | 225 opus_val32 *ac, /* out: [0...lag-1] ac values */ 228 int lag, 235 int fastN=n-lag; 279 celt_pitch_xcorr(xptr, xptr, ac, fastN, lag+1, arch); 280 for (k=0;k<=lag;k++) 293 for (i=0;i<=lag;i++) 301 for (i=0;i<=lag;i++) 223 _celt_autocorr( const opus_val16 *x, opus_val32 *ac, const opus_val16 *window, int overlap, int lag, int n, int arch ) argument
|
/external/libopus/celt/ |
H A D | celt_lpc.c | 225 opus_val32 *ac, /* out: [0...lag-1] ac values */ 228 int lag, 235 int fastN=n-lag; 279 celt_pitch_xcorr(xptr, xptr, ac, fastN, lag+1, arch); 280 for (k=0;k<=lag;k++) 293 for (i=0;i<=lag;i++) 301 for (i=0;i<=lag;i++) 223 _celt_autocorr( const opus_val16 *x, opus_val32 *ac, const opus_val16 *window, int overlap, int lag, int n, int arch ) argument
|
/external/chromium_org/third_party/webrtc/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:__anon15769 145 /* Index of |parameters->buffer| where samples are read for fractional-lag 218 /* Compute integer lag [all...] |