Lines Matching defs:index
471 int index = PITCH_MIN;
521 if (diff > 0 && (i - index < PITCH_MIN || diff > ccr_eng >> 2)) {
523 index = i;
529 return index;
567 hf->index = -1;
584 hf->index = i;
588 if (hf->index == -1) {
589 hf->index = pitch_lag;
595 ccr = energy[(hf->index << 1) + 1] * energy[(hf->index << 1) + 1];
597 eng = energy[(hf->index << 1) + 1];
604 hf->index += pitch_lag - 3;
617 int64_t temp = hf->gain * src[i - hf->index] << 1;
626 int64_t temp = hf->gain * src[i - hf->index] << 1;
681 * @param index the current subframe index
685 int index)
693 int pitch_lag = p->pitch_lag[index >> 1];
696 int odd_frame = index & 1;
790 p->pitch_lag[index >> 1] = pitch_lag;
791 p->subframe[index].ad_cb_lag = acb_lag;
792 p->subframe[index].ad_cb_gain = acb_gain;
1012 int16_t *buf, int index)
1015 int pulse_cnt = pulses[index];
1021 if (p->pitch_lag[index >> 1] < SUBFRAME_LEN - 2) {
1023 p->pitch_lag[index >> 1]);
1031 pack_fcb_param(&p->subframe[index], &optim, buf, pulse_cnt);
1034 ff_g723_1_gen_dirac_train(buf, p->pitch_lag[index >> 1]);
1078 /* Write 13 bit combined position index */