Alfred E. Heggestad
2005-Jul-18 17:36 UTC
[Speex-dev] [PATCH] remove unused encoder buf in sb_celp.[hc]
diffed against http://svn.xiph.org/trunk/speex r9583
Index: libspeex/sb_celp.c
==================================================================---
libspeex/sb_celp.c (revision 9583)
+++ libspeex/sb_celp.c (working copy)
@@ -272,7 +272,6 @@
st->g0_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t));
st->g1_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t));
- st->buf=speex_alloc((st->windowSize)*sizeof(spx_sig_t));
st->excBuf=speex_alloc((st->bufSize)*sizeof(spx_sig_t));
st->exc = st->excBuf + st->bufSize - st->windowSize;
@@ -349,7 +348,6 @@
speex_free(st->g0_mem);
speex_free(st->g1_mem);
- speex_free(st->buf);
speex_free(st->excBuf);
speex_free(st->res);
speex_free(st->sw);
Index: libspeex/sb_celp.h
==================================================================---
libspeex/sb_celp.h (revision 9583)
+++ libspeex/sb_celp.h (working copy)
@@ -66,7 +66,6 @@
spx_sig_t *excBuf; /**< High-band excitation */
spx_sig_t *exc; /**< High-band excitation (for QMF
only)*/
- spx_sig_t *buf; /**< Temporary buffer */
spx_sig_t *res; /**< Zero-input response (ringing) */
spx_sig_t *sw; /**< Perceptually weighted signal */
spx_sig_t *target; /**< Weighted target signal (analysis by
synthesis) */
Jean-Marc Valin
2005-Jul-18 17:58 UTC
[Speex-dev] [PATCH] remove unused encoder buf in sb_celp.[hc]
Hi Alfred, Thanks for the patch (oops, some "legacy" code). It's in svn now. Jean-Marc Le mardi 19 juillet 2005 ? 02:35 +0200, Alfred E. Heggestad a ?crit :> diffed against http://svn.xiph.org/trunk/speex r9583 > > > Index: libspeex/sb_celp.c > ==================================================================> --- libspeex/sb_celp.c (revision 9583) > +++ libspeex/sb_celp.c (working copy) > @@ -272,7 +272,6 @@ > st->g0_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t)); > st->g1_mem=speex_alloc((QMF_ORDER)*sizeof(spx_word32_t)); > > - st->buf=speex_alloc((st->windowSize)*sizeof(spx_sig_t)); > st->excBuf=speex_alloc((st->bufSize)*sizeof(spx_sig_t)); > st->exc = st->excBuf + st->bufSize - st->windowSize; > > @@ -349,7 +348,6 @@ > speex_free(st->g0_mem); > speex_free(st->g1_mem); > > - speex_free(st->buf); > speex_free(st->excBuf); > speex_free(st->res); > speex_free(st->sw); > Index: libspeex/sb_celp.h > ==================================================================> --- libspeex/sb_celp.h (revision 9583) > +++ libspeex/sb_celp.h (working copy) > @@ -66,7 +66,6 @@ > > spx_sig_t *excBuf; /**< High-band excitation */ > spx_sig_t *exc; /**< High-band excitation (for QMF only)*/ > - spx_sig_t *buf; /**< Temporary buffer */ > spx_sig_t *res; /**< Zero-input response (ringing) */ > spx_sig_t *sw; /**< Perceptually weighted signal */ > spx_sig_t *target; /**< Weighted target signal (analysis by synthesis) */ > > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >-- Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca> Universit? de Sherbrooke