2
/******************************************************************
4
iLBC Speech Coder ANSI-C Source Code
8
Copyright (C) The Internet Society (2004).
11
******************************************************************/
13
#include "iLBC_define.h"
15
/*----------------------------------------------------------------*
16
* LP synthesis filter.
17
*---------------------------------------------------------------*/
20
float *Out, /* (i/o) Signal to be filtered */
21
float *a, /* (i) LP parameters */
22
int len, /* (i) Length of signal */
28
float *mem /* (i/o) Filter state */
31
float *po, *pi, *pa, *pm;
35
/* Filter first part using memory from past */
37
for (i=0; i<LPC_FILTERORDER; i++) {
40
pm=&mem[LPC_FILTERORDER-1];
41
for (j=1; j<=i; j++) {
44
for (j=i+1; j<LPC_FILTERORDER+1; j++) {
50
/* Filter last part where the state is entirely in
53
for (i=LPC_FILTERORDER; i<len; i++) {
56
for (j=1; j<LPC_FILTERORDER+1; j++) {
62
/* Update state vector */
64
memcpy(mem, &Out[len-LPC_FILTERORDER],
65
LPC_FILTERORDER*sizeof(float));