Displaying 20 results from an estimated 24 matches for "speex_free".
2005 May 25
1
Deallocation of buffers
I noticed that in the narrow band and wide band destroy functions only
the main pointer is being freed. I think that it should be:
void nb_decoder_destroy(void *state)
{
DecState *st;
st=(DecState*)state;
speex_free (st->inBuf);
speex_free (st->excBuf);
speex_free (st->innov);
speex_free (st->interp_qlpc);
speex_free (st->qlsp);
speex_free (st->old_qlsp);
speex_free (st->interp_qlsp);
speex_free (st->mem_sp);
speex_free (st->comb_mem);
speex_free (...
2005 Jun 22
2
Deallocation bug in speex
...oy (state=0x4156be8) at sb_celp.c:339
#8 0x657bac1f in speex_encoder_destroy (state=0x4156be8) at speex.c:62
#9 0x657c0003 in sb_encoder_destroy (state=0x4156b60) at sb_celp.c:339
#10 0x657bac1f in speex_encoder_destroy (state=0x4156b60) at speex.c:62
(gdb) l nb_celp.c:229
224
225 speex_free (st->inBuf);
226 speex_free (st->excBuf);
227 speex_free (st->innov);
228 speex_free (st->interp_qlpc);
229 speex_free (st->qlsp);
230 speex_free (st->old_qlsp);
231 speex_free (st->interp_qlsp);
232 speex_free (st->swB...
2005 Jul 18
1
[PATCH] remove unused encoder buf in sb_celp.[hc]
..._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)
+++...
2005 Jun 22
0
Deallocation bug in speex
...roy (state=0x4156be8) at
> speex.c:62
>
> #9 0x657c0003 in sb_encoder_destroy (state=0x4156b60) at
> sb_celp.c:339
>
> #10 0x657bac1f in speex_encoder_destroy (state=0x4156b60) at
> speex.c:62
>
>
>
> (gdb) l nb_celp.c:229
>
> 224
>
> 225 speex_free (st->inBuf);
>
> 226 speex_free (st->excBuf);
>
> 227 speex_free (st->innov);
>
> 228 speex_free (st->interp_qlpc);
>
> 229 speex_free (st->qlsp);
>
> 230 speex_free (st->old_qlsp);
>
> 231 speex_f...
2008 Feb 19
4
Patch for Analog Devices compiler & fixed-point AGC
...;nbands;
- st->bank = filterbank_new(M, sampling_rate, N, 1);
+ st->bnk = filterbank_new(M, sampling_rate, N, 1);
st->frame = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t));
st->window = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t));
@@ -562,7 +562,7 @@
speex_free(st->outbuf);
spx_fft_destroy(st->fft_lookup);
- filterbank_destroy(st->bank);
+ filterbank_destroy(st->bnk);
speex_free(st);
}
@@ -661,7 +661,7 @@
for (i=0;i<N;i++)
st->ps[i] = PSHR32(st->ps[i], 2*st->frame_shift);
- filterbank_compute_bank32(...
2008 Mar 29
0
GCC/ELF Visibility patch
...void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size)
{
bits->chars = (char*)buff;
bits->buf_size = buf_size;
@@ -82,14 +82,14 @@
}
-void speex_bits_destroy(SpeexBits *bits)
+EXPORT void speex_bits_destroy(SpeexBits *bits)
{
if (bits->owner)
speex_free(bits->chars);
/* Will do something once the allocation is dynamic */
}
-void speex_bits_reset(SpeexBits *bits)
+EXPORT void speex_bits_reset(SpeexBits *bits)
{
/* We only need to clear the first byte now */
bits->chars[0]=0;
@@ -99,14 +99,14 @@
bits->overflow=0;
}
-v...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...void speex_bits_set_bit_buffer(SpeexBits *bits, void *buff, int buf_size)
{
bits->chars = (char*)buff;
bits->buf_size = buf_size;
@@ -82,14 +82,14 @@
}
-void speex_bits_destroy(SpeexBits *bits)
+EXPORT void speex_bits_destroy(SpeexBits *bits)
{
if (bits->owner)
speex_free(bits->chars);
/* Will do something once the allocation is dynamic */
}
-void speex_bits_reset(SpeexBits *bits)
+EXPORT void speex_bits_reset(SpeexBits *bits)
{
/* We only need to clear the first byte now */
bits->chars[0]=0;
@@ -99,14 +99,14 @@
bits->overflow=0;
}
-v...
2006 Dec 14
1
Would be nice to conditionally compile out coding modes and code tables...
...s cache consistency when the input buffers
> are placed
> > in MyDecoderClass.
>
> There's actually a much simpler way of making everything
> contiguous. All you need to do is allocate (or reserve or
> whatever) a big block yourself and override speex_alloc() and
> speex_free() (and speex_alloc_scratch if you don't have a C99
> compiler) to distribute that memory explicitly.
I completely understand that it's possible to override speex_alloc() and speex_free(), in fact that's what i've done. However, how much memory do I reserve? Without running th...
2014 Apr 15
6
[PATCH 0/3] misc. cleanup
Hello,
some misc. cleanup patches for speexdsp, nothing big
I'm not sure about how to submit patches, so this is a test balloon :)
ultimately, I'd like to fix the FIXED_POINT issue, see
http://lists.xiph.org/pipermail/speex-dev/2013-December/008465.html
currently, I think the only way to find out how speexdsp has been compiled is
to resample some bytes and observe the output; which is
2007 Mar 08
4
Introduction and patch
Hi,
I'm one of the people working on the Rockbox project
(http://www.rockbox.org) which is an open source alternative firmware
for a range Digital Audio Players. Recently we integrated support for
the Speex codec using libspeex and seems to work well. If you could add
Rockbox to your list of software that supports Speex, that'd be great.
So that's the introduction done. Now for
2004 Aug 06
1
speex_bits_pack optimizations...
another optimization you can do for packing bits together...
the original one is :
-------------------------------------------------------------------------------------------------------------
void speex_bits_pack(SpeexBits *bits, int data, int nbBits)
{
int i;
unsigned int d=data;
if (bits->bytePtr+((nbBits+bits->bitPtr)>>3) >= bits->buf_size)
{
//remain
2014 Apr 15
0
[PATCH 2/3] Use fabsf() instead of fabs() since we have floats, not double
...eerw at pmeerw.net>
---
libspeexdsp/resample.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/libspeexdsp/resample.c b/libspeexdsp/resample.c
index e32ca45..a19b997 100644
--- a/libspeexdsp/resample.c
+++ b/libspeexdsp/resample.c
@@ -85,7 +85,7 @@ static void speex_free (void *ptr) {free(ptr);}
#ifdef FIXED_POINT
#define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x)))
#else
-#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x))))
+#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 327...
2019 Jun 14
0
resample of libopusenc-0.2.1 outputs all zeros if define FIXED_POINT
...fore/after calling speex_resampler_process_native().
diff -Naupr libopusenc-0.2.1-vanilla/src/resample.c libopusenc-0.2.1/src/resample.c
--- libopusenc-0.2.1-vanilla/src/resample.c 2018-09-15 10:35:06 +0800
+++ libopusenc-0.2.1/src/resample.c 2019-06-15 01:32:37 +0800
@@ -82,7 +82,7 @@ static void speex_free(void *ptr) {free(
#include <limits.h>
#ifndef M_PI
-#define M_PI 3.14159265358979323846
+#define M_PI 3.14159265358979323846f
#endif
#define IMAX(a,b) ((a) > (b) ? (a) : (b))
@@ -1000,7 +1000,8 @@ EXPORT int speex_resampler_process_int(S
if (in) {
for(j=0;j<ich...
2005 May 24
2
Speex on TI C6x, Problem with TI C5x Patch
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: maleout12may.wav
Type: audio/wav
Size: 95884 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20050524/57112d0c/maleout12may-0001.bin
2007 Mar 08
0
Introduction and patch
...ial overflow */
> packet->len = jitter->len[i];
> /* Copy packet */
> - for (j=0;j<packet->len;j++)
> + for (j=0;((unsigned)j)<packet->len;j++)
> packet->data[j] = jitter->buf[i][j];
> /* Remove packet */
> speex_free(jitter->buf[i]);
> @@ -438,7 +438,7 @@
> /* Let the jitter buffer know it's the right time to adjust the buffering delay to the network conditions */
> int jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_uint32_t *start_offset)
> {
> - int...
2014 Apr 15
2
[PATCH 2/3] Use fabsf() instead of fabs() since we have floats, not double
...exdsp/resample.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/libspeexdsp/resample.c b/libspeexdsp/resample.c
> index e32ca45..a19b997 100644
> --- a/libspeexdsp/resample.c
> +++ b/libspeexdsp/resample.c
> @@ -85,7 +85,7 @@ static void speex_free (void *ptr) {free(ptr);}
> #ifdef FIXED_POINT
> #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x)))
> #else
> -#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 :
> floor(.5+(x))))
> +#define WORD2INT(x) ((x) < -32767.5...
2006 Dec 13
2
Would be nice to conditionally compile out coding modes and code tables...
I'm only using the narrow-band encoder on my embedded system and have
removed all references to the wide-band and ultra-wide band encoder
functions and tables. They will be pulled in by the linker due to the
references made by the structures in modes.c. Attached is a replacement
modes.c for compiling out modes that are not in use for anyone who's
interested.
Also, I've removed the
2005 May 24
0
Speex on TI C6x, Problem with TI C5x Patch
...e a table to the application host
> with the size and scratch/persistent nature of each block. The host
> then does the memory allocating, and provides the pointers back to the
> application.
I'm not familiar with XDAIS, but I would think you could just overload
the speex_alloc() and speex_free() functions, right?
> The C5x has been another matter altogether. There were some build
> issues:
>
> 1. The C54x compiler does not recognize "long long" and in fact does
> not support any 64-bit integer types. For the moment I am using
> "double" which...
2011 Sep 01
0
[PATCH 3/5] resample: Add NEON optimized inner_product_single for fixed point
...SHL(a,shift) ((spx_word32_t)(a) << (shift))
#define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
diff --git a/libspeex/resample.c b/libspeex/resample.c
index 3829715..7957c61 100644
--- a/libspeex/resample.c
+++ b/libspeex/resample.c
@@ -99,6 +99,10 @@ static void speex_free (void *ptr) {free(ptr);}
#include "resample_sse.h"
#endif
+#ifdef _USE_NEON
+#include "resample_neon.h"
+#endif
+
/* Numer of elements to allocate on the stack */
#ifdef VAR_ARRAYS
#define FIXED_STACK_ALLOC 8192
@@ -360,11 +364,12 @@ static int resampler_basic_direct_sing...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...on host
>> with the size and scratch/persistent nature of each block. The host
>> then does the memory allocating, and provides the pointers back to the
>> application.
>
> I'm not familiar with XDAIS, but I would think you could just overload
> the speex_alloc() and speex_free() functions, right?
According to this standard, an allocate call is made to an algorithm, and
the algorithm fills in a table of required blocks (size, alignment, and
scratch/persistent type). The system allocates these blocks, and calls the
algorithm init function, with the same memory table,...