[xiph-cvs] cvs commit: speex/libspeex Makefile.am denoise.c speex.h
Jean-Marc Valin
jm at xiph.org
Mon Aug 18 23:07:44 PDT 2003
jm 03/08/19 02:07:44
Modified: libspeex Makefile.am denoise.c speex.h
Log:
minor stuff
Revision Changes Path
1.53 +5 -3 speex/libspeex/Makefile.am
Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/Makefile.am,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- Makefile.am 4 Aug 2003 17:28:56 -0000 1.52
+++ Makefile.am 19 Aug 2003 06:07:44 -0000 1.53
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in. -*-Makefile-*-
-# $Id: Makefile.am,v 1.52 2003/08/04 17:28:56 jm Exp $
+# $Id: Makefile.am,v 1.53 2003/08/19 06:07:44 jm Exp $
# Disable automatic dependency tracking if using other tools than gcc and gmake
#AUTOMAKE_OPTIONS = no-dependencies
@@ -40,7 +40,8 @@
denoise.c \
smallft.c \
lbr_48k_tables.c \
- jitter.c
+ jitter.c \
+ mdf.c
include_HEADERS = speex.h \
@@ -49,7 +50,8 @@
speex_callbacks.h \
speex_stereo.h \
speex_denoise.h \
- speex_jitter.h
+ speex_jitter.h \
+ speex_echo.h
noinst_HEADERS = lsp.h \
nb_celp.h \
<p><p>1.20 +14 -6 speex/libspeex/denoise.c
Index: denoise.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/denoise.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- denoise.c 12 Aug 2003 17:17:13 -0000 1.19
+++ denoise.c 19 Aug 2003 06:07:44 -0000 1.20
@@ -88,6 +88,7 @@
st->frame_size = frame_size;
/* Round ps_size down to the nearest power of two */
+#if 0
i=1;
st->ps_size = st->frame_size;
while(1)
@@ -100,9 +101,14 @@
break;
}
}
-
+
+
if (st->ps_size < 3*st->frame_size/4)
st->ps_size = st->ps_size * 3 / 2;
+#else
+ st->ps_size = st->frame_size;
+#endif
+
N = st->ps_size;
N3 = 2*N - st->frame_size;
N4 = st->frame_size - N3;
@@ -132,12 +138,15 @@
conj_window(st->window, 2*N3);
for (i=2*N3;i<2*st->ps_size;i++)
st->window[i]=1;
- for (i=N3-1;i>=0;i--)
+
+ if (N4>0)
{
- st->window[i+N3+N4]=st->window[i+N3];
- st->window[i+N3]=1;
+ for (i=N3-1;i>=0;i--)
+ {
+ st->window[i+N3+N4]=st->window[i+N3];
+ st->window[i+N3]=1;
+ }
}
-
for (i=0;i<N;i++)
{
st->noise[i]=1e4;
@@ -168,7 +177,6 @@
drft_init(&st->fft_lookup,2*N);
-
st->nb_adapt=0;
st->consec_noise=0;
st->nb_denoise=0;
<p><p>1.77 +5 -0 speex/libspeex/speex.h
Index: speex.h
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/speex.h,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- speex.h 13 May 2003 20:57:31 -0000 1.76
+++ speex.h 19 Aug 2003 06:07:44 -0000 1.77
@@ -126,6 +126,11 @@
/** Get DTX status (1 for on, 0 for off) */
#define SPEEX_GET_DTX 35
+/** Set submode encoding in each frame (1 for yes, 0 for no, setting to no breaks the standard) */
+#define SPEEX_SET_SUBMODE_ENCODING 36
+/** */
+#define SPEEX_GET_SUBMODE_ENCODING 37
+
/* Used internally, not to be used in applications */
/** Used internally*/
<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