/third_party/ffmpeg/libavcodec/ |
H A D | dss_sp.c | 49 int16_t pitch_lag[SUBFRAMES]; member 313 uint32_t pitch_lag; in dss_sp_unpack_coeffs() local 401 fparam->pitch_lag[0] = (combined_pitch % 151) + 36; in dss_sp_unpack_coeffs() 406 fparam->pitch_lag[i] = combined_pitch % 48; in dss_sp_unpack_coeffs() 413 fparam->pitch_lag[i] = combined_pitch; in dss_sp_unpack_coeffs() 415 pitch_lag = fparam->pitch_lag[0]; in dss_sp_unpack_coeffs() 417 if (pitch_lag > 162) { in dss_sp_unpack_coeffs() 418 fparam->pitch_lag[i] += 162 - 23; in dss_sp_unpack_coeffs() 420 tmp = pitch_lag in dss_sp_unpack_coeffs() 473 dss_sp_gen_exc(int32_t *vector, int32_t *prev_exc, int pitch_lag, int gain) dss_sp_gen_exc() argument [all...] |
H A D | g723_1enc.c | 536 * @param pitch_lag open loop pitch period 539 static void comp_harmonic_coeff(int16_t *buf, int16_t pitch_lag, HFParam *hf) in comp_harmonic_coeff() argument 546 for (i = 0, j = pitch_lag - 3; j <= pitch_lag + 3; i++, j++) { in comp_harmonic_coeff() 589 hf->index = pitch_lag; in comp_harmonic_coeff() 604 hf->index += pitch_lag - 3; in comp_harmonic_coeff() 693 int pitch_lag = p->pitch_lag[index >> 1]; in acb_search() local 705 if (pitch_lag == PITCH_MIN) in acb_search() 706 pitch_lag in acb_search() 821 get_fcb_param(FCBParam *optim, int16_t *impulse_resp, int16_t *buf, int pulse_cnt, int pitch_lag) get_fcb_param() argument [all...] |
H A D | g723_1dec.c | 183 p->pitch_lag[0] = get_bits(&gb, 7); in unpack_bitstream() 184 if (p->pitch_lag[0] > 123) /* test if forbidden code */ in unpack_bitstream() 186 p->pitch_lag[0] += PITCH_MIN; in unpack_bitstream() 189 p->pitch_lag[1] = get_bits(&gb, 7); in unpack_bitstream() 190 if (p->pitch_lag[1] > 123) in unpack_bitstream() 192 p->pitch_lag[1] += PITCH_MIN; in unpack_bitstream() 202 if (p->cur_rate == RATE_6300 && p->pitch_lag[i >> 1] < SUBFRAME_LEN - 2) { in unpack_bitstream() 279 * @param pitch_lag closed loop pitch lag 283 enum Rate cur_rate, int pitch_lag, int index) in gen_fcb_excitation() 312 ff_g723_1_gen_dirac_train(vector, pitch_lag); in gen_fcb_excitation() 282 gen_fcb_excitation(int16_t *vector, G723_1_Subframe *subfrm, enum Rate cur_rate, int pitch_lag, int index) gen_fcb_excitation() argument 349 autocorr_max(const int16_t *buf, int offset, int *ccr_max, int pitch_lag, int length, int dir) autocorr_max() argument 430 comp_ppf_coeff(G723_1_ChannelContext *p, int offset, int pitch_lag, PPFParam *ppf, enum Rate cur_rate) comp_ppf_coeff() argument 516 comp_interp_index(G723_1_ChannelContext *p, int pitch_lag, int *exc_eng, int *scale) comp_interp_index() argument [all...] |
H A D | g723_1.c | 1146 void ff_g723_1_gen_dirac_train(int16_t *buf, int pitch_lag) in ff_g723_1_gen_dirac_train() argument 1152 for (i = pitch_lag; i < SUBFRAME_LEN; i += pitch_lag) { in ff_g723_1_gen_dirac_train() 1159 int pitch_lag, G723_1_Subframe *subfrm, in ff_g723_1_gen_acb_excitation() 1164 int lag = pitch_lag + subfrm->ad_cb_lag - 1; in ff_g723_1_gen_acb_excitation() 1172 if (cur_rate == RATE_6300 && pitch_lag < SUBFRAME_LEN - 2) { in ff_g723_1_gen_acb_excitation() 1158 ff_g723_1_gen_acb_excitation(int16_t *vector, int16_t *prev_excitation, int pitch_lag, G723_1_Subframe *subfrm, enum Rate cur_rate) ff_g723_1_gen_acb_excitation() argument
|
H A 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() 250 if (in->pitch_lag > 0) in ff_clear_fixed_vector() 253 x += in->pitch_lag; in ff_clear_fixed_vector()
|
H A 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,
|
H A D | qcelpdec.c | 71 uint8_t pitch_lag[4]; member 481 q->pitch_lag[i] = q->frame.plag[i] + 16; in apply_pitch_filters() 504 q->pitch_lag, q->frame.pfrac); in apply_pitch_filters() 512 q->pitch_gain, q->pitch_lag, in apply_pitch_filters() 521 memset(q->pitch_lag, 0, sizeof(q->pitch_lag)); in apply_pitch_filters()
|
H A D | evrcdec.c | 480 int pitch_lag, int subframe_size) in fcb_excitation() 491 for (i = pitch_lag; i < subframe_size; i++) in fcb_excitation() 492 excitation[i] += pitch_gain * excitation[i - pitch_lag]; in fcb_excitation() 696 int pitch_lag; in frame_erasure() local 710 pitch_lag = lrintf((idelay[1] + idelay[0]) / 2.0); in frame_erasure() 737 postfilter(e, tmp, ilpc, samples, pitch_lag, in frame_erasure() 845 int pitch_lag; in evrc_decode_frame() local 852 pitch_lag = lrintf((idelay[1] + idelay[0]) / 2.0); in evrc_decode_frame() 871 acb_sum, pitch_lag, subframe_size); in evrc_decode_frame() 888 postfilter(e, tmp, ilpc, samples, pitch_lag, in evrc_decode_frame() 478 fcb_excitation(EVRCContext *e, const uint16_t *codebook, float *excitation, float pitch_gain, int pitch_lag, int subframe_size) fcb_excitation() argument [all...] |
H A 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()
|
H A D | acelp_vectors.h | 58 int pitch_lag; member
|
H A D | wmavoice.c | 1060 /* for a repeated pulse at pulse_off with a pitch_lag of pitch[], count in aw_parse_coords() 1108 pulse_off += fcb->pitch_lag; in aw_pulse_set2() 1130 for (idx = pulse_off; idx < MAX_FRAMESIZE / 2; idx += fcb->pitch_lag) { in aw_pulse_set2() 1146 for (idx = pulse_start; idx < 0; idx += fcb->pitch_lag) ; in aw_pulse_set2() 1168 n = (MAX_FRAMESIZE / 2 - start_off) % fcb->pitch_lag; in aw_pulse_set2() 1169 s->aw_next_pulse_off_cache = n ? fcb->pitch_lag - n : 0; in aw_pulse_set2() 1206 fcb->x[fcb->n] += fcb->pitch_lag; in aw_pulse_set1() 1324 fcb.pitch_lag = block_pitch_sh2 >> 2; in synth_block_fcb_acb()
|
H A D | amrnbdec.c | 571 fixed_sparse->pitch_lag = p->pitch_lag_int; in pitch_sharpening() 687 int lag = in->pitch_lag; in apply_ir_filter() 1020 if (fixed_sparse.pitch_lag == 0) { in amrnb_decode_frame() 1021 av_log(avctx, AV_LOG_ERROR, "The file is corrupted, pitch_lag = 0 is not allowed\n"); in amrnb_decode_frame()
|
H A D | sipr.c | 238 static void eval_ir(const float *Az, int pitch_lag, float *freq, in eval_ir() argument 254 pitch_sharpening(pitch_lag, pitch_sharp_factor, freq); in eval_ir()
|