/external/libopus/silk/float/ |
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 = 1; lag < Order; lag++ ) [all...] |
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;
|
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] */ 70 opus_int16 *lagIndex, /* O Lag Index */ 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 * [all...] |
/external/libopus/silk/fixed/ |
corrMatrix_FIX.c | 43 const opus_int order, /* I Max lag for correlation */ 49 opus_int lag, i; local 58 for( lag = 0; lag < order; lag++ ) { 63 Xt[ lag ] = inner_prod; /* X[:,lag]'*t */ 68 for( lag = 0; lag < order; lag++ ) 86 opus_int i, j, lag, rshifts_local, head_room_rshifts; local [all...] |
prefilter_FIX.c | 54 opus_int lag, /* I Lag for harmonic shaping */ 108 opus_int j, k, lag; local 123 lag = P->lagPrev; 129 lag = psEncCtrl->pitchL[ k ]; 158 silk_prefilt_FIX( P, x_filt_Q12, pxw_Q3, HarmShapeFIRPacked_Q12, Tilt_Q14, LF_shp_Q14, lag, psEnc->sCmn.subfr_length ); 177 opus_int lag, /* I Lag for harmonic shaping */ 193 if( lag > 0 ) { 196 idx = lag + LTP_shp_buf_idx [all...] |
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 */ 84 opus_int *pitch_out, /* O 4 pitch lag values */ 85 opus_int16 *lagIndex, /* O Lag Index */ 88 opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ 89 const opus_int32 search_thres1_Q16, /* I First stage threshold for lag candidates 0 - 1 */ 90 const opus_int search_thres2_Q13, /* I Final threshold for lag candidates 0 - 1 */ 109 opus_int CBimax, CBimax_new, CBimax_old, lag, start_lag, end_lag, lag_new; local 132 /* Set up frame lengths max / min lag for the sampling frequency */ 228 /* Combine two subframes into single correlation measure and apply short-lag bias * [all...] |
/external/speex/libspeex/ |
lpc.h | 42 spx_word16_t *ac, /* out: [0...lag-1] ac values */ 43 int lag, int n);
|
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++)
|
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]; [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
comp_corr.h | 26 * of last subframe at given lag. 33 size_t lag, /* (i) pitch lag */
|
comp_corr.c | 23 * of last subframe at given lag. 30 size_t lag, /* (i) pitch lag */ 37 w16ptr=&buffer[bLen-sRange-lag];
|
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);
|
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 of the new fram 349 lag); local 360 lag); local [all...] |
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 (it is needed if next packet is lost) * [all...] |
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 with the maximum correlation [all...] |
/external/libopus/silk/ |
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 );
|
NSQ.c | 47 const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ 62 opus_int lag, /* I Pitch lag */ 95 opus_int k, lag, start_idx, LSF_interpolation_flag; local 107 /* Set unvoiced lag to the previous one, overwrite later for voiced */ 108 lag = NSQ->lagPrev; 141 lag = pitchL[ k ]; 146 start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; 160 AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q10, 195 opus_int lag, /* I Pitch lag * 370 opus_int i, lag; local [all...] |
/external/flac/libFLAC/include/private/ |
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__real autoc[]) [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
pitch_fr.cpp | 47 Description: *lag-- decrements the pointer. (*lag)-- decrements what is 128 Word16 max_frac_lag; /* lag up to which fractional lags are used */ 132 Word16 delta_int_low; /* integer lag below TO to start search from */ 448 lag = pointer to integer pitch of type Word16 475 fractional positions around lag T0. The position at which the 494 Word16 *lag, // i/o : integer pitch 510 max = Interpol_3or6 (&corr[*lag], *frac, flag3); // function result 513 corr_int = Interpol_3or6 (&corr[*lag], i, flag3); 525 *lag = sub (*lag, 1) 1385 Word16 lag; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
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;
|
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:__anon38859 145 /* Index of |parameters->buffer| where samples are read for fractional-lag 218 /* Compute integer lag-offset. * [all...] |
/external/libopus/celt/ |
celt_lpc.h | 65 const opus_val16 *window, int overlap, int lag, int n, int arch);
|
/toolchain/binutils/binutils-2.25/binutils/ |
mclex.c | 246 const wind_language_t *lag = wind_find_language_by_id ((unsigned) nv); local 248 if (lag == NULL) 250 memcpy (&c->lang_info, lag, sizeof (*lag)); 267 const wind_language_t *lag = wind_find_language_by_id ((unsigned) nv); local 268 if (lag == NULL) 270 memcpy (&n->lang_info, lag, sizeof (*lag));
|
/frameworks/base/tests/touchlag/ |
touchlag.cpp | 202 void get(int lag, int* x, int* y) { 203 const int i = (index - lag) & 0xF; 216 printf("\nusage: %s [-h] [-l lag]\n", name); 223 int lag = 0; local 238 lag = atoi(optarg); 265 if (lag) { 278 queue.get(lag, &lag_x, &lag_y); 280 if (lag) {
|
/external/aac/libAACenc/src/ |
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 = 1; lag <= maxOrder; lag++) [all...] |