Lines Matching refs:pitch_lag
182 p->pitch_lag[0] = get_bits(&gb, 7); in unpack_bitstream()
183 if (p->pitch_lag[0] > 123) /* test if forbidden code */ in unpack_bitstream()
185 p->pitch_lag[0] += PITCH_MIN; in unpack_bitstream()
188 p->pitch_lag[1] = get_bits(&gb, 7); in unpack_bitstream()
189 if (p->pitch_lag[1] > 123) in unpack_bitstream()
191 p->pitch_lag[1] += PITCH_MIN; in unpack_bitstream()
201 if (p->cur_rate == RATE_6300 && p->pitch_lag[i >> 1] < SUBFRAME_LEN - 2) { in unpack_bitstream()
282 enum Rate cur_rate, int pitch_lag, int index) in gen_fcb_excitation() argument
311 ff_g723_1_gen_dirac_train(vector, pitch_lag); in gen_fcb_excitation()
327 lag = pitch_contrib[subfrm->ad_cb_gain << 1] + pitch_lag + in gen_fcb_excitation()
349 int pitch_lag, int length, int dir) in autocorr_max() argument
354 pitch_lag = FFMIN(PITCH_MAX - 3, pitch_lag); in autocorr_max()
356 limit = FFMIN(FRAME_LEN + PITCH_MAX - offset - length, pitch_lag + 3); in autocorr_max()
358 limit = pitch_lag + 3; in autocorr_max()
360 for (i = pitch_lag - 3; i <= limit; i++) { in autocorr_max()
429 static void comp_ppf_coeff(G723_1_ChannelContext *p, int offset, int pitch_lag, in comp_ppf_coeff() argument
446 int fwd_lag = autocorr_max(buf, offset, &energy[1], pitch_lag, in comp_ppf_coeff()
448 int back_lag = autocorr_max(buf, offset, &energy[3], pitch_lag, in comp_ppf_coeff()
515 static int comp_interp_index(G723_1_ChannelContext *p, int pitch_lag, in comp_interp_index() argument
528 index = autocorr_max(buf, offset, &ccr, pitch_lag, SUBFRAME_LEN * 2, -1); in comp_interp_index()
812 p->pitch_lag[0] = cng_rand(&p->cng_random_seed, 21) + 123; in generate_noise()
813 p->pitch_lag[1] = cng_rand(&p->cng_random_seed, 19) + 123; in generate_noise()
849 p->pitch_lag[i >> 1], &p->subframe[i], in generate_noise()
853 p->pitch_lag[i >> 1], &p->subframe[i + 1], in generate_noise()
994 p->pitch_lag[i >> 1], i); in g723_1_decode_frame()
997 p->pitch_lag[i >> 1], in g723_1_decode_frame()
1009 p->interp_index = comp_interp_index(p, p->pitch_lag[1], in g723_1_decode_frame()
1016 comp_ppf_coeff(p, i, p->pitch_lag[j >> 1], in g723_1_decode_frame()