62 double *aut=alloca(
sizeof(*aut)*(m+1));
63 double *lpc=alloca(
sizeof(*lpc)*(m));
71 for(i=j;i<
n;i++)d+=(
double)data[
i]*data[i-
j];
83 memset(lpci,0,m*
sizeof(*lpci));
92 for(j=0;j<
i;j++)r-=lpc[j]*aut[i-j];
101 lpc[
j]+=r*lpc[i-1-
j];
104 if(i%2)lpc[
j]+=lpc[
j]*
r;
109 for(j=0;j<m;j++)lpci[j]=(
float)lpc[
j];
126 float *work=alloca(
sizeof(*work)*(m+n));
140 y-=work[o++]*coeff[--p];
float vorbis_lpc_from_data(float *data, float *lpci, int n, int m)
void vorbis_lpc_predict(float *coeff, float *prime, int m, float *data, long n)
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLdouble GLdouble GLdouble r