search for: encstat

Displaying 20 results from an estimated 38 matches for "encstat".

Did you mean: encstate
2006 Apr 08
2
speex cvs: 'EncState' has no member named 'frame'
...I/usr/include -O2 -fPIC -funswitch-loops -ftree-loop-linear -march=k8 -ftree-vectorize -pipe -mfpmath=sse -frename-registers -O3 -msse -MT nb_celp.lo -MD -MP -MF .deps/nb_celp.Tpo -c nb_celp.c -fPIC -DPIC -o .libs/nb_celp.o nb_celp.c: In function 'nb_encode': nb_celp.c:442: error: 'EncState' has no member named 'frame' make[2]: *** [nb_celp.lo] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/speex/libspeex' sean
2007 Mar 14
2
Memory Allocation to St
Can anyone tell me why the size of st is defined as: st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(float)); Reference: nb_encode_init function. Specifically, I would like to know why 8000 floats are allocated? Thanks and regards, Vinay -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.o...
2007 Apr 11
0
Problem with speex
...e see my code (Delphi) and say me please WHat I am do not right. Or please send me correct compiled DLL and example of correct using SPEEX_MODEID_WB and SPEEX_MODEID_UWB , denoise, and other effects. How I can set MONO mode in decode? My Code: smpRt:=32000; n:=10; encbits: TSpeexBits; encstate: Pointer; encframe: integer; decbits: TSpeexBits; decstate: Pointer; decframe: integer; buffEnc: array of single; buffDec: array of single; encstate := speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); speex_encoder_ctl(encstate,SPEEX_SET_SAMPLING_RATE,@smpRt); speex_...
2005 Sep 02
2
DTX mode using preprocessor?
...with the 'dtx_enable' flag in it, so the decoder on the other end knows it's in dtx mode? (and SPEEX_GET_DTX_STATUS returns 1) At the moment, I can hack around it by doing something like: if (VAD for prev frame && ! VAD for this frame) { iArg = 0; speex_encoder_ctl(m_esEncState,SPEEX_SET_VBR, &iArg); speex_encoder_ctl(m_esEncState,SPEEX_SET_QUALITY, &iArg); SBEncState *sbe = static_cast<SBEncState *>(m_esEncState); EncState *es = static_cast<EncState *>(sbe->st_low); es->dtx_count = 1; } (in wideband) .. which forces speex to send...
2004 Aug 06
2
Port to uClinux
Hi, I'm trying a quick port of this terrific codec to uClinux, a Linux-derivate for mmu-less systems. I'm particulary interested in the alloc()'s the library does, and it's stack usage. In nb_celp.c I found two lines of code doing memory allocation : nb_celp.c: st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(float)); nb_celp.c: st = (DecState*)speex_alloc(sizeof(DecState)+4000*sizeof(float)); Where do these magic numbers 8000 and 4000 come from ? If I decrease those to 4000 and 2000, my test app still works (just lucky ?). Is there a way to know what the mi...
2005 Feb 19
2
memory usage
Hi I am currently trying to port speex v1.1.6 to a microcontroller with very limited memory (<64Kbyte RAM). what 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 t...
2018 Sep 21
2
Opus 1.2.1 crash on silk/VAD.c:315
...at silk/VAD.c:315 #1 0x0000000000aa4a9d in silk_VAD_GetSA_Q8_sse4_1 (psEncC=0x15897c18, pIn=<optimized out>) at silk/x86/VAD_sse.c:177 #2 0x0000000000a9f92b in silk_encode_do_VAD_FLP (psEnc=psEnc at entry=0x15897c18) at silk/float/encode_frame_FLP.c:51 #3 0x0000000000a9a40c in silk_Encode (encState=encState at entry=0x15897c18, encControl=encControl at entry=0x158935a8, samplesIn=0x7f267402a8a8, samplesIn at entry=0x7f267402a128, nSamplesIn=0, nSamplesIn at entry=960, psRangeEnc=psRangeEnc at entry=0x7f267402bbe0, nBytesOut=nBytesOut at entry=0x7f267402bb9c, prefillFlag=0) at sil...
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 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...uishing persistent and scratch storage. To do this, I added a speex_alloc_scratch routine, which uses a different memory block than speex_alloc. This does force a change to nb_encoder_init, etc. At the moment, the code looks like this: #if defined(VAR_ARRAYS) || defined (USE_ALLOCA) st = (EncState*)speex_alloc(sizeof(EncState)); if (!st) return NULL; st->stack = NULL; #elif defined(SCRATCH_ALLOC) st = (EncState*)speex_alloc(sizeof(EncState)); if (!st) return NULL; st->stack = (char*)speex_alloc_scratch(SPEEXENC_SCRATCH_STACK_SIZE); #else st = (EncState*)s...
2018 Sep 27
1
[Re:] Re: Opus 1.2.1 crash on silk/VAD.c:315
...ilk_VAD_GetSA_Q8_sse4_1 (psEncC=0x15897c18, >> pIn=<optimized out>) at silk/x86/VAD_sse.c:177 >> #2 0x0000000000a9f92b in silk_encode_do_VAD_FLP >> (psEnc=psEnc at entry=0x15897c18) at silk/float/encode_frame_FLP.c:51 >> #3 0x0000000000a9a40c in silk_Encode >> (encState=encState at entry=0x15897c18, encControl=encControl at entry=0x158935a8, >> samplesIn=0x7f267402a8a8, samplesIn at entry=0x7f267402a128, >> nSamplesIn=0, nSamplesIn at entry=960, >> psRangeEnc=psRangeEnc at entry=0x7f267402bbe0, >> nBytesOut=nBytesOut at entry=0x7f2...
2007 Sep 13
2
innov_save, what is it? why does it hurt me so?
hi, I am using speex1.2beta2 on a TI 54x on narrow band I have been trying to get speex to work for a while now, and it's been a real teeter-totter ride. For a long time I noticed that I will get a project to work and then without changing any code and programming it to an eprom/flash the project will not work. It turns out it was a value called innov_save. I found this bugger by zero
2004 Aug 06
4
Framesize for UWB vs. WB encoding
Hi there. I am having a little trouble understanding the frame sizes chosen by the codec. testenc_uwb.c from the speex-1.0 source distribution has a framesize of 640 hardcoded and makes use of this value exclusively. However, a mode query on the actual codec returns 320 as a framesize for this mode. int tmp; speex_mode_query(&speex_uwb_mode, SPEEX_MODE_FRAME_SIZE, &tmp);
2011 Dec 22
2
Decoding only a certain frame results in different values than when decoding the entire file
...++; j++; } while ((inBufpos % 160 != 0) && (inBufpos != (inlen/2))); //fill the rest with null if (inBufpos == (inlen/2)) for (j=(inBufpos%160); j<160; j++) input[j] = 0; speex_bits_reset(&bits); speex_encode(encstate, input, &bits); /*Copy the bits to an array of char that can be written*/ speex_bits_write(&bits, cbits, MAX_FRAME_BYTES); for (j=0; j<62; j++) { outBuf[outBufpos] = cbits[j]; outBufpos++; } } whi...
2004 Aug 06
0
Port to uClinux
...a quick port of this terrific codec to uClinux, a Linux-derivate > for mmu-less systems. I'm particulary interested in the alloc()'s the > library does, and it's stack usage. > > In nb_celp.c I found two lines of code doing memory allocation : > > nb_celp.c: st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(float)); > nb_celp.c: st = (DecState*)speex_alloc(sizeof(DecState)+4000*sizeof(float)); > > Where do these magic numbers 8000 and 4000 come from ? If I decrease those > to 4000 and 2000, my test app still works (just lucky ?). Is there a way...
2005 Feb 19
0
memory usage
...rocontroller with > very limited memory (<64Kbyte RAM). > > what 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...
2005 Sep 04
0
DTX mode using preprocessor?
...in it, so the decoder on the other end > knows it's in dtx mode? (and SPEEX_GET_DTX_STATUS returns 1) > > At the moment, I can hack around it by doing something like: > > if (VAD for prev frame && ! VAD for this frame) { > iArg = 0; > speex_encoder_ctl(m_esEncState,SPEEX_SET_VBR, &iArg); > speex_encoder_ctl(m_esEncState,SPEEX_SET_QUALITY, &iArg); > > SBEncState *sbe = static_cast<SBEncState *>(m_esEncState); > EncState *es = static_cast<EncState *>(sbe->st_low); > es->dtx_count = 1; > } > > (in...
2006 Feb 13
1
NB encoder with multiple channels
I am trying to implement a relatively high number of encoders (24/32) on a single DSP and would like to minimize the memory requirements. Has anyone optimized the persistent EncState memory allocation for multiple channels. The default C64x fixed point implementation allocates 5280 bytes of persistent memory per encoder. I'm willing to restrict my settings to complexity 1, quality 3. It looks like I can share the st->window, lagWindow, bw_lpc1, bw_lpc2, variables whi...
2007 Sep 13
0
innov_save, what is it? why does it hurt me so?
...innov_save = st->innov_save+offset; It means that the innov variable gets copied *unless* st->innov_save (notice is a field of the encoder struct). So the problem is that this field is probably not set to NULL. Normally, this is automatically set to zero when the init function does: st = (EncState*)speex_alloc(sizeof(EncState)); Is it possible that you did an override of speex_alloc and replaced it by malloc() instead of calloc() as I'm using? That would explain the garbage you're getting and it may actually explain other bugs you've had. Jean-Marc > I commented innov sav...
2018 Sep 27
0
Opus 1.2.1 crash on silk/VAD.c:315
...000000000aa4a9d in silk_VAD_GetSA_Q8_sse4_1 (psEncC=0x15897c18, > pIn=<optimized out>) at silk/x86/VAD_sse.c:177 > #2  0x0000000000a9f92b in silk_encode_do_VAD_FLP > (psEnc=psEnc at entry=0x15897c18) at silk/float/encode_frame_FLP.c:51 > #3  0x0000000000a9a40c in silk_Encode > (encState=encState at entry=0x15897c18, encControl=encControl at entry=0x158935a8, >     samplesIn=0x7f267402a8a8, samplesIn at entry=0x7f267402a128, > nSamplesIn=0, nSamplesIn at entry=960, >     psRangeEnc=psRangeEnc at entry=0x7f267402bbe0, > nBytesOut=nBytesOut at entry=0x7f267402bb9c, prefi...
2005 Sep 04
1
DTX mode using preprocessor?
...the other end >> knows it's in dtx mode? (and SPEEX_GET_DTX_STATUS returns 1) >> >> At the moment, I can hack around it by doing something like: >> >> if (VAD for prev frame && ! VAD for this frame) { >> iArg = 0; >> speex_encoder_ctl(m_esEncState,SPEEX_SET_VBR, &iArg); >> speex_encoder_ctl(m_esEncState,SPEEX_SET_QUALITY, &iArg); >> >> SBEncState *sbe = static_cast<SBEncState *>(m_esEncState); >> EncState *es = static_cast<EncState *>(sbe->st_low); >> es->dtx_count = 1; &gt...