/*==================================================================================== EVS Codec 3GPP TS26.443 Jun 30, 2015. Version CR 26.443-0006 ====================================================================================*/ #include "options.h" #include "cnst.h" #include "rom_com.h" #include "prot.h" /*-------------------------------------------------------------------* * pred_lt4() * * Compute the result of long term prediction with fractionnal * interpolation of resolution 1/4. * * On return, exc[0..L_subfr-1] contains the interpolated signal * (adaptive codebook excitation) *-------------------------------------------------------------------*/ void pred_lt4( const float excI[], /* i : input excitation buffer */ float excO[], /* o : output excitation buffer */ const short T0, /* i : integer pitch lag */ short frac, /* i : fraction of lag */ const short L_subfr, /* i : subframe size */ const float *win, /* i : interpolation window */ const short nb_coef, /* i : nb of filter coef */ const short up_sample /* i : up_sample */ ) { short i, j; float s; const float *x1, *x2, *x0, *c1, *c2; x0 = &excI[-T0]; frac = -frac; if (frac < 0) { frac += up_sample; x0--; } for (j=0; j