[xiph-cvs] cvs commit: speex/libspeex filters.c
Jean-Marc Valin
jm at xiph.org
Tue Oct 22 23:10:35 PDT 2002
jm 02/10/23 02:10:35
Modified: libspeex filters.c
Log:
...
Revision Changes Path
1.23 +0 -29 speex/libspeex/filters.c
Index: filters.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/filters.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- filters.c 23 Oct 2002 02:56:46 -0000 1.22
+++ filters.c 23 Oct 2002 06:10:35 -0000 1.23
@@ -218,7 +218,6 @@
#define MAX_FILTER 100
#define MAX_SIGNAL 1000
-#if 1
void qmf_decomp(float *xx, float *aa, float *y1, float *y2, int N, int M, float *mem)
{
int i,j,k,M2;
@@ -249,34 +248,6 @@
for (i=0;i<M-1;i++)
mem[i]=xx[N-i-1];
}
-#else
-void qmf_decomp(float *xx, float *aa, float *bb, float *y1, float *y2, int N, int M, float *mem)
-{
- int i,j,k;
- float a[MAX_FILTER];
- float b[MAX_FILTER];
- float x[MAX_SIGNAL];
- for (i=0;i<M;i++)
- a[M-i-1]=aa[i];
- for (i=0;i<M;i++)
- b[M-i-1]=bb[i];
- for (i=0;i<M-1;i++)
- x[i]=mem[M-i-2];
- for (i=0;i<N;i++)
- x[i+M-1]=xx[i];
- for (i=0,k=0;i<N;i+=2,k++)
- {
- y1[k]=0;
- for (j=0;j<M;j++)
- y1[k]+=a[j]*x[i+j];
- y2[k]=0;
- for (j=0;j<M;j++)
- y2[k]+=b[j]*x[i+j];
- }
- for (i=0;i<M-1;i++)
- mem[i]=xx[N-i-1];
-}
-#endif
void fir_decim_mem(float *xx, float *aa, float *y, int N, int M, float *mem)
{
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list