search for: excbuf

Displaying 15 results from an estimated 15 matches for "excbuf".

Did you mean: exbuf
2005 Jul 18
1
[PATCH] remove unused encoder buf in sb_celp.[hc]
...peex/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_...
2007 Mar 13
3
re: decoder issue in sb_celp
A little more info on this: I backtracked deeper into this and it looks like excBuf is corrupted, which is corrupted by low_innov_alias being invalid. However it is not entirely clear where that gets initialized (in sb_celp it is set to out+st->frame_size) Tom
2007 Aug 07
1
Attempting to shrink speex: Are these functions necessary?
I'm glad to hear that my data size can be shrunk considerably, however I do not know the minimum values that I would set the static arrays to be. I hate to be a bother but could you tell me the minimum values for these arrays/structures in the state structure? Thanks! encode: stack winBuf excBuf swBuf lagWindow old_lsp old_qlsp mem_sp mem_sw mem_sw_whole mem_exc mem_exc2 pi_gain pitch decode: stack excBuf interp_qlpc old_qlsp mem_sp pi_gain >>> Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> 08/06/07 7:04 PM >>> Last thing. All the codebooks are stored as table...
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 (st->pi_gain); speex_free (st); } This...
2006 Feb 13
1
NB encoder with multiple channels
...to restrict my settings to complexity 1, quality 3. It looks like I can share the st->window, lagWindow, bw_lpc1, bw_lpc2, variables which would save 562 bytes per encoder. Are there more variables that can be shared or eliminated if I stick to narrow band? The biggest variables are the inBuf, excBuf, swBuf, innov and I think these have to stay. Jerry J. Trantow Applied Signal Processing, Inc. jtrantow@ieee.org
2007 Aug 07
0
Attempting to shrink speex: Are these functions necessary?
...my data size can be shrunk considerably, > however I do not know the minimum values that I would set the static > arrays to be. I hate to be a bother but could you tell me the > minimum values for these arrays/structures in the state structure? > Thanks! > > encode: stack winBuf excBuf swBuf lagWindow old_lsp old_qlsp mem_sp > mem_sw mem_sw_whole mem_exc mem_exc2 pi_gain pitch > > decode: stack excBuf interp_qlpc old_qlsp mem_sp pi_gain What I meant is that you can reduce the stack part (assuming you're not already using VAR_ARRAYS or USE_ALLOCA). The other variab...
2005 Jun 22
2
Deallocation bug in speex
...peex_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->swBuf); Thanks for any help, Dario Andrade IP.TV...
2006 Nov 15
2
Quick survey for Speex 1.2
...memory allocations are collected > together to form one big structure like below, > > typedef struct { > > EncState enc_state; > > char stack[NB_ENC_STACK]; > > spx_word16_t winBuf[80]; > > spx_word16_t excBuf[612]; > > spx_word16_t swBuf[612]; > > spx_word16_t lagWindow[22]; Yuk. That's so.... G.729 and ITU codecs :-) As much as you'd like something like that, it would be a pain to maintain it. If you want everything in one chunk, just go with the solution above. > The s...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...st->bounded_pitch = 1; st->encode_submode = 1; #ifdef EPIC_48K st->lbr_48k=mode->lbr48k; #endif /* Allocating input buffer */ st->inBuf = speex_alloc((st->windowSize)*sizeof(spx_sig_t)); st->frame = st->inBuf; /* Allocating excitation buffer */ st->excBuf = speex_alloc((mode->frameSize+mode->pitchEnd+1)*sizeof(spx_sig_t)); st->exc = st->excBuf + mode->pitchEnd + 1; st->swBuf = speex_alloc((mode->frameSize+mode->pitchEnd+1)*sizeof(spx_sig_t)); st->sw = st->swBuf + mode->pitchEnd + 1; st->innov = spee...
2005 Jun 22
0
Deallocation bug in speex
...n 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-&...
2006 Feb 10
2
About wideband encode
Hi, all. I have two questions about wideband encoding. >From "testenc_wb.c"... 1) tmp=8; speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp); tmp=3; speex_encoder_ctl(st, SPEEX_SET_HIGH_MODE, &tmp); tmp=6; speex_encoder_ctl(st, SPEEX_SET_LOW_MODE, &tmp); How to set high_mode and low_mode, if quality is set to '9'? When I set quality '9'
2006 Nov 15
0
Quick survey for Speex 1.2
...e initial stage. In my current implementation, all the memory allocations are collected together to form one big structure like below, typedef struct { EncState enc_state; char stack[NB_ENC_STACK]; spx_word16_t winBuf[80]; spx_word16_t excBuf[612]; spx_word16_t swBuf[612]; spx_word16_t lagWindow[22]; ............................................ int pitch[16]; VBRState vbr; } speex_encoder_memory; The structure defined above is used to allocate all memories after call the...
2007 Mar 14
0
re: decoder issue in sb_celp
Tom Harper a ?crit : > A little more info on this: > > I backtracked deeper into this and it looks like excBuf > is corrupted, which is corrupted by low_innov_alias > being invalid. However it is not entirely clear where > that gets initialized (in sb_celp it is set to out+st->frame_size) While looking for the problem, I ended up fixing two other things that could be related. Can you test curr...
2006 Nov 15
0
Quick survey for Speex 1.2
...er to form one big structure like below, > > > > typedef struct { > > > > EncState enc_state; > > > > char stack[NB_ENC_STACK]; > > > > spx_word16_t winBuf[80]; > > > > spx_word16_t excBuf[612]; > > > > spx_word16_t swBuf[612]; > > > > spx_word16_t lagWindow[22]; > > Yuk. That's so.... G.729 and ITU codecs :-) As much as you'd like > something like that, it would be a pain to maintain it. If you want > everything in one chunk, just go...
2006 Nov 13
13
Quick survey for Speex 1.2
Hi everyone, As you may have guess, Speex 1.2 is slowly approaching, though there's still a lot left to do so I can't say how long it'll take. I thought this was the right time to ask if there's anything missing or that can be improved to make 1.2 better. At this point, it can't be anything major, but there are still some changes that are possible, e.g: - Improving some