/third_party/ffmpeg/libavcodec/ |
D | dss_sp.c | 49 int16_t pitch_lag[SUBFRAMES]; member 314 uint32_t pitch_lag; in dss_sp_unpack_coeffs() local 402 fparam->pitch_lag[0] = (combined_pitch % 151) + 36; in dss_sp_unpack_coeffs() 407 fparam->pitch_lag[i] = combined_pitch % 48; in dss_sp_unpack_coeffs() 414 fparam->pitch_lag[i] = combined_pitch; in dss_sp_unpack_coeffs() 416 pitch_lag = fparam->pitch_lag[0]; in dss_sp_unpack_coeffs() 418 if (pitch_lag > 162) { in dss_sp_unpack_coeffs() 419 fparam->pitch_lag[i] += 162 - 23; in dss_sp_unpack_coeffs() 421 tmp = pitch_lag - 23; in dss_sp_unpack_coeffs() 424 fparam->pitch_lag[i] += tmp; in dss_sp_unpack_coeffs() [all …]
|
D | g723_1dec.c | 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() [all …]
|
D | g723_1enc.c | 543 static void comp_harmonic_coeff(int16_t *buf, int16_t pitch_lag, HFParam *hf) in comp_harmonic_coeff() argument 550 for (i = 0, j = pitch_lag - 3; j <= pitch_lag + 3; i++, j++) { in comp_harmonic_coeff() 593 hf->index = pitch_lag; in comp_harmonic_coeff() 608 hf->index += pitch_lag - 3; in comp_harmonic_coeff() 697 int pitch_lag = p->pitch_lag[index >> 1]; in acb_search() local 709 if (pitch_lag == PITCH_MIN) in acb_search() 710 pitch_lag++; in acb_search() 712 pitch_lag = FFMIN(pitch_lag, PITCH_MAX - 5); in acb_search() 716 ff_g723_1_get_residual(residual, p->prev_excitation, pitch_lag + i - 1); in acb_search() 769 if (!odd_frame && pitch_lag + i - 1 >= SUBFRAME_LEN - 2 || in acb_search() [all …]
|
D | g723_1.c | 1145 void ff_g723_1_gen_dirac_train(int16_t *buf, int pitch_lag) in ff_g723_1_gen_dirac_train() argument 1151 for (i = pitch_lag; i < SUBFRAME_LEN; i += pitch_lag) { in ff_g723_1_gen_dirac_train() 1158 int pitch_lag, G723_1_Subframe *subfrm, in ff_g723_1_gen_acb_excitation() argument 1163 int lag = pitch_lag + subfrm->ad_cb_lag - 1; in ff_g723_1_gen_acb_excitation() 1171 if (cur_rate == RATE_6300 && pitch_lag < SUBFRAME_LEN - 2) { in ff_g723_1_gen_acb_excitation()
|
D | acelp_vectors.c | 232 if (in->pitch_lag > 0) in ff_set_fixed_vector() 237 x += in->pitch_lag; in ff_set_fixed_vector() 249 if (in->pitch_lag > 0) in ff_clear_fixed_vector() 252 x += in->pitch_lag; in ff_clear_fixed_vector()
|
D | g723_1.h | 125 int pitch_lag[2]; member 191 void ff_g723_1_gen_dirac_train(int16_t *buf, int pitch_lag); 198 int pitch_lag, G723_1_Subframe *subfrm,
|
D | evrcdec.c | 478 int pitch_lag, int subframe_size) in fcb_excitation() argument 489 for (i = pitch_lag; i < subframe_size; i++) in fcb_excitation() 490 excitation[i] += pitch_gain * excitation[i - pitch_lag]; in fcb_excitation() 694 int pitch_lag; in frame_erasure() local 708 pitch_lag = lrintf((idelay[1] + idelay[0]) / 2.0); in frame_erasure() 735 postfilter(e, tmp, ilpc, samples, pitch_lag, in frame_erasure() 844 int pitch_lag; in evrc_decode_frame() local 851 pitch_lag = lrintf((idelay[1] + idelay[0]) / 2.0); in evrc_decode_frame() 870 acb_sum, pitch_lag, subframe_size); in evrc_decode_frame() 887 postfilter(e, tmp, ilpc, samples, pitch_lag, in evrc_decode_frame()
|
D | qcelpdec.c | 70 uint8_t pitch_lag[4]; member 480 q->pitch_lag[i] = q->frame.plag[i] + 16; in apply_pitch_filters() 503 q->pitch_lag, q->frame.pfrac); in apply_pitch_filters() 511 q->pitch_gain, q->pitch_lag, in apply_pitch_filters() 520 memset(q->pitch_lag, 0, sizeof(q->pitch_lag)); in apply_pitch_filters()
|
D | sipr16k.c | 222 f.pitch_lag = DIVIDE_BY_3(pitch_delay_3x+1); in ff_sipr_decode_frame_16k() 223 ctx->pitch_lag_prev = f.pitch_lag; in ff_sipr_decode_frame_16k()
|
D | acelp_vectors.h | 58 int pitch_lag; member
|
D | wmavoice.c | 1107 pulse_off += fcb->pitch_lag; in aw_pulse_set2() 1129 for (idx = pulse_off; idx < MAX_FRAMESIZE / 2; idx += fcb->pitch_lag) { in aw_pulse_set2() 1145 for (idx = pulse_start; idx < 0; idx += fcb->pitch_lag) ; in aw_pulse_set2() 1167 n = (MAX_FRAMESIZE / 2 - start_off) % fcb->pitch_lag; in aw_pulse_set2() 1168 s->aw_next_pulse_off_cache = n ? fcb->pitch_lag - n : 0; in aw_pulse_set2() 1205 fcb->x[fcb->n] += fcb->pitch_lag; in aw_pulse_set1() 1323 fcb.pitch_lag = block_pitch_sh2 >> 2; in synth_block_fcb_acb()
|
D | amrnbdec.c | 561 fixed_sparse->pitch_lag = p->pitch_lag_int; in pitch_sharpening() 677 int lag = in->pitch_lag; in apply_ir_filter() 1006 if (fixed_sparse.pitch_lag == 0) { in amrnb_decode_frame()
|
D | sipr.c | 237 static void eval_ir(const float *Az, int pitch_lag, float *freq, in eval_ir() argument 253 pitch_sharpening(pitch_lag, pitch_sharp_factor, freq); in eval_ir()
|