search for: nb_decoder_init

Displaying 11 results from an estimated 11 matches for "nb_decoder_init".

2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...age, the only change that I have made is to MAX_CHARS_PER_FRAME, which is set to 2000 in bits.c. I changed bits.c to set this value only if it was not already defined, and then put my own, much smaller value in config.h. For the scratch stack, I replace the fixed values in nb_encoder_init and nb_decoder_init with constants that I defined in config.h. Jamey Hicks original C5x patch had some test code in stack_alloc.h to detect working stack overflow. Maybe something similar could be done to measure the peak stack usage, enabled by a debug switch. Then, for a space critical application, it would b...
2005 Feb 19
2
memory usage
...t I found when initialising the encoder, a chunk of 32Kb was attempted to be alloced, which failed: src/nb_celp.c: void *nb_encoder_init(const SpeexMode *m) { /* snip */ st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t)); /* snip */ } same goes for the decoder: void *nb_decoder_init(const SpeexMode *m) { /* snip */ st = (DecState *)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t)); /* snip */ } I tried to reduce the stacksize from 8000/4000 to say 2000/1000, and reduce buffer size to 160 bytes: src/modes.c: /* Default mode for narrowband */ static const SpeexNB...
2005 Mar 11
1
DSP c5x
I'm finding it dificult to get the code to fit within c5x dsp, especially due to the large heap necessary for the huge allocations in nb_encoder_init and nb_decoder_init. Are the people that have this running using additonal external ram? Has anyone experimented with reducing the internal encoder/decoder stack sizes for narrow band... is there a practical minimum that is usable? Also, Should ENABLE_VALGRIND be enabled? Any assistance always appreciated, than...
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
2005 Feb 19
0
memory usage
...to be alloced, which failed: > > src/nb_celp.c: > > void *nb_encoder_init(const SpeexMode *m) > { > /* snip */ > st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t)); > /* snip */ > } > > > same goes for the decoder: > > void *nb_decoder_init(const SpeexMode *m) > { > /* snip */ > st = (DecState *)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t)); > /* snip */ > } > > I tried to reduce the stacksize from 8000/4000 to say 2000/1000, > and reduce buffer size to 160 bytes: > > > src/modes.c:...
2005 Mar 09
2
Valin 2.0 released
Hi everyone, I'm pleased to announce the new and improved Valin 2.0, codename "Alexandre", released March 7th, featuring: - 6 lbs (2.7 kg) at birth - Pretty face - Built-in crying algorithm Screenshots are available at http://people.xiph.org/~jm/alexandre/ . Note that this new release is not open-source and only has two "users". Both co-authors are fine, but tired at
2005 May 25
0
Speex on TI C6x, Problem with TI C5x Patch
...ch is set to 2000 in bits.c. I changed bits.c to > set this value only if it was not already defined, and then put my own, much > smaller value in config.h. Yeah, I think I'll add an option like that. > For the scratch stack, I replace the fixed values in nb_encoder_init and > nb_decoder_init with constants that I defined in config.h. Jamey Hicks > original C5x patch had some test code in stack_alloc.h to detect working > stack overflow. Maybe something similar could be done to measure the peak > stack usage, enabled by a debug switch. Then, for a space critical > app...
2005 May 24
0
Speex on TI C6x, Problem with TI C5x Patch
...needed to create > speex_config_types.h (short and int are 16, long is 32 on C5x). That, or you could add an entry in the speex_types.h file (which is used for all platforms that don't use autoconf). > 3. And, of course, the internal stack memory allocations in > nb_encoder_int and nb_decoder_init had to be cut down to fit within > the available data memory space. It would be useful to parameterize > the working stack allocation size for those folks who cannot use the > new VAR_ARRAYS and USE_ALLOCA stuff. Would a compile-time option be OK (so I don't need to change the API)?...
2008 Mar 29
0
GCC/ELF Visibility patch
...s -T iir_mem16 T _init -T inner_prod -T interp_pitch -T lpc_to_lsp -T lsp_enforce_margin -T lsp_interpolate -T lsp_quant_high -T lsp_quant_lbr -T lsp_quant_nb -T lsp_to_lpc -T lsp_unquant_high -T lsp_unquant_lbr -T lsp_unquant_nb -T multicomb -T nb_decode -T nb_decoder_ctl -T nb_decoder_destroy -T nb_decoder_init -T nb_encode -T nb_encoder_ctl -T nb_encoder_destroy -T nb_encoder_init -T nb_mode_query -T noise_codebook_quant -T noise_codebook_unquant -T open_loop_nbest_pitch -T pitch_search_3tap -T pitch_unquant_3tap -T pitch_xcorr -T qmf_decomp -T qmf_synth -T residue_percep_zero16 -T sanitize_values32 -T s...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...s -T iir_mem16 T _init -T inner_prod -T interp_pitch -T lpc_to_lsp -T lsp_enforce_margin -T lsp_interpolate -T lsp_quant_high -T lsp_quant_lbr -T lsp_quant_nb -T lsp_to_lpc -T lsp_unquant_high -T lsp_unquant_lbr -T lsp_unquant_nb -T multicomb -T nb_decode -T nb_decoder_ctl -T nb_decoder_destroy -T nb_decoder_init -T nb_encode -T nb_encoder_ctl -T nb_encoder_destroy -T nb_encoder_init -T nb_mode_query -T noise_codebook_quant -T noise_codebook_unquant -T open_loop_nbest_pitch -T pitch_search_3tap -T pitch_unquant_3tap -T pitch_xcorr -T qmf_decomp -T qmf_synth -T residue_percep_zero16 -T sanitize_values32 -T s...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...if (sig>32767) sig = 32767; if (sig<-32767) sig = -32767; in[i]=sig; } #endif if (SUBMODE(innovation_quant) == noise_codebook_quant || st->submodeID==0) st->bounded_pitch = 1; else st->bounded_pitch = 0; return 1; } void *nb_decoder_init(const SpeexMode *m) { DecState *st; const SpeexNBMode *mode; int i; mode=(const SpeexNBMode*)m->mode; #if defined(VAR_ARRAYS) || defined (USE_ALLOCA) st = (DecState *)speex_alloc(sizeof(DecState)); st->stack = NULL; #else st = (DecState *)speex_alloc(sizeof(DecState)+400...