Lines Matching full:gain
173 void open_loop_nbest_pitch(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack)
260 /* Search for the best pitch prediction gain */
291 /* Compute open-loop gain if necessary */
292 if (gain)
302 gain[j]=g;
376 spx_word16_t gain[3];
487 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4]);
488 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+1]);
489 gain[2] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+2]);
490 /*printf ("%d %d %d %d\n",gain[0],gain[1],gain[2], best_cdbk);*/
492 gain[0] = 0.015625*gain_cdbk[best_cdbk*4] + .5;
493 gain[1] = 0.015625*gain_cdbk[best_cdbk*4+1]+ .5;
494 gain[2] = 0.015625*gain_cdbk[best_cdbk*4+2]+ .5;
509 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp]);
514 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp-pitch]);
518 spx_word32_t tmp = ADD32(ADD32(MULT16_16(gain[0],x[2][i]),MULT16_16(gain[1],x[1][i])),
519 MULT16_16(gain[2],x[0][i]));
676 spx_word16_t gain[3];
690 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4]);
691 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4+1]);
692 gain[2] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4+2]);
694 gain[0] = 0.015625*gain_cdbk[gain_index*4]+.5;
695 gain[1] = 0.015625*gain_cdbk[gain_index*4+1]+.5;
696 gain[2] = 0.015625*gain_cdbk[gain_index*4+2]+.5;
712 gain_sum = gain_3tap_to_1tap(gain);
718 gain[i]=MULT16_16_Q14(fact,gain[i]);
726 gain_val[0]=gain[0];
727 gain_val[1]=gain[1];
728 gain_val[2]=gain[2];
729 gain[0] = SHL16(gain[0],7);
730 gain[1] = SHL16(gain[1],7);
731 gain[2] = SHL16(gain[2],7);
742 exc_out[j]=MAC16_16(exc_out[j],gain[2-i],exc[j-pp]);
747 exc_out[j]=MAC16_16(exc_out[j],gain[2-i],exc[j-pp-pitch]);
754 /** Forced pitch delay and gain */
804 /** Unquantize forced pitch delay and gain */