search for: speexnbmode

Displaying 14 results from an estimated 14 matches for "speexnbmode".

Did you mean: speex_nb_mode
2006 Jan 19
0
Compile error (svn 10743)
...ile error (svn 10743) Hi, I've received svn 10743 revision. But there are compile errors at three files with VS2005. Please check these reports. Sohn, Platform system engineer. ============================================================================= 1. modes.c - nb_mode_new() SpeexNBMode * nb_mode; nb_mode = (SpeexNBMode *) speex_alloc (sizeof (SpeexNBMode)); if (nb_mode == NULL) return NULL; nb_mode->frameSize = frameSize; nb_mode->subframeSize = subframeSize; nb_mode->lpcSize = lpcSize; nb_mode->bufSize = bufSize; <<<--- 1>d:\voip\mod...
2006 Jan 19
1
Compile error (svn 10743)
Hi, I've received svn 10743 revision. But there are compile errors at three files with VS2005. Please check these reports. Sohn, Platform system engineer. ============================================================================= 1. modes.c - nb_mode_new() SpeexNBMode * nb_mode; nb_mode = (SpeexNBMode *) speex_alloc (sizeof (SpeexNBMode)); if (nb_mode == NULL) return NULL; nb_mode->frameSize = frameSize; nb_mode->subframeSize = subframeSize; nb_mode->lpcSize = lpcSize; nb_mode->bufSize = bufSize; <<<--- 1>d:\voip\mod...
2005 Feb 27
2
SPEEX_GET_QUALITY
...lowing: $ diff -u ../original/speex-1.1.6/libspeex/nb_celp.c libspeex/nb_celp.c --- ../original/speex-1.1.6/libspeex/nb_celp.c 2004-07-15 01:16:52.000000000 -0400 +++ libspeex/nb_celp.c 2005-02-27 08:24:49.000000000 -0500 @@ -1746,6 +1746,21 @@ st->submodeSelect = st->submodeID = ((SpeexNBMode*)(st->mode->mode))->quality_map[quality]; } break; + case SPEEX_GET_QUALITY: + { + int quality; + + for(quality=0;quality <=10; quality++) + if (st->submodeID == ((SpeexNBMode*)(st->mode->mode))->quality_map[quality]) break; + + if (quality&...
2005 Feb 19
2
memory usage
...er_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 SpeexNBMode nb_mode = { 160, /*frameSize*/ 40, /*subframeSize*/ 10, /*lpcSize*/ 640, /*bufSize*/ <--------- reduce to 160 this does not work, there are various crashes in strange places which looks like its caused by stack overflow or data corruption. question is; are...
2005 Feb 27
0
SPEEX_GET_QUALITY
..../original/speex-1.1.6/libspeex/nb_celp.c libspeex/nb_celp.c > --- ../original/speex-1.1.6/libspeex/nb_celp.c 2004-07-15 01:16:52.000000000 -0400 > +++ libspeex/nb_celp.c 2005-02-27 08:24:49.000000000 -0500 > @@ -1746,6 +1746,21 @@ > st->submodeSelect = st->submodeID = ((SpeexNBMode*)(st->mode->mode))->quality_map[quality]; > } > break; > + case SPEEX_GET_QUALITY: > + { > + int quality; > + > + for(quality=0;quality <=10; quality++) > + if (st->submodeID == ((SpeexNBMode*)(st->mode->mode))->qualit...
2007 Apr 30
1
11025kHz and framesizes question
...clean way I could change the NB mode buffer size to be 256, which would be a little closer 20ms at 11025 but also be divisible by 2048. Should I add a new custom mode to the modes array or should I mess with the NB mode? Any advice on what I should do with subFrameSize and the other parameters in SpeexNBMode (if anything) if I change the framesize to be 256? Thanks, Dave
2007 Jul 23
2
Shoehorning speex is confusing a newbie
...n looking over the code so I may have been absolutely wrong. The main assumption was about the exc tables. In looking through modes.c it appeared that only one table was required for 8kbs so I commented out the portions of the code that referenced the other tables and modified "static const SpeexNBMode nb_mode" structure so that the pointers to the other structures that referenced the tables were NULL. We did not have enough data memory to store all the tables. I thought this would work with my initialization but when I stepped through the code in nb_celp for encode it would put it in mode...
2005 Feb 19
0
memory usage
...cState *)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 SpeexNBMode nb_mode = { > 160, /*frameSize*/ > 40, /*subframeSize*/ > 10, /*lpcSize*/ > 640, /*bufSize*/ <--------- reduce to 160 > > > this does not work, there are various crashes in strange places which > looks like its caused by stack overfl...
2007 May 01
0
Re: Speex-dev Digest, Vol 35, Issue 24
...clean way I could change the NB mode buffer size to be 256, which would be a little closer 20ms at 11025 but also be divisible by 2048. Should I add a new custom mode to the modes array or should I mess with the NB mode? Any advice on what I should do with subFrameSize and the other parameters in SpeexNBMode (if anything) if I change the framesize to be 256? Thanks, Dave ------------------------------ _______________________________________________ Speex-dev mailing list Speex-dev@xiph.org http://lists.xiph.org/mailman/listinfo/speex-dev End of Speex-dev Digest, Vol 35, Issue 24 *****************...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...n looking over the code so I may have been absolutely wrong. The main assumption was about the exc tables. In looking through modes.c it appeared that only one table was required for 8kbs so I commented out the portions of the code that referenced the other tables and modified "static const SpeexNBMode nb_mode" structure so that the pointers to the other structures that referenced the tables were NULL. We did not have enough data memory to store all the tables. I thought this would work with my initialization but when I stepped through the code in nb_celp for encode it would put it in mode...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...ooking over the code so I may have been absolutely wrong. The main assumption was about the exc tables. In looking through modes.c it appeared that only one table was required for 8kbs so I commented out the portions of the code that referenced the other tables and modified "static const SpeexNBMode nb_mode" structure so that the pointers to the other structures that referenced the tables were NULL. We did not have enough data memory to store all the tables. I thought this would work with my initialization but when I stepped through the code in nb_celp for encode it would put it in mode...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...n looking over the code so I may have been absolutely wrong. The main assumption was about the exc tables. In looking through modes.c it appeared that only one table was required for 8kbs so I commented out the portions of the code that referenced the other tables and modified "static const SpeexNBMode nb_mode" structure so that the pointers to the other structures that referenced the tables were NULL. We did not have enough data memory to store all the tables. I thought this would work with my initialization but when I stepped through the code in nb_celp for encode it would put it in mode...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
..., 1.326874}; const float exc_gain_quant_scal1_bound[1]={0.87798}; const float exc_gain_quant_scal1[2]={0.70469, 1.05127}; #define LSP_MARGIN .002 #define LSP_DELTA1 .2 #define LSP_DELTA2 .05 #endif #define sqr(x) ((x)*(x)) void *nb_encoder_init(const SpeexMode *m) { EncState *st; const SpeexNBMode *mode; int i; mode=(const SpeexNBMode *)m->mode; #if defined(VAR_ARRAYS) || defined (USE_ALLOCA) st = (EncState*)speex_alloc(sizeof(EncState)); st->stack = NULL; #else st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t)); st->stack = ((char*)st) + sizeof(...
2004 Aug 06
2
[PATCH] Make SSE Run Time option. Add Win32 SSE code
...st == SPEEX_SET_ASM_FLAG) + { + global_use_mmx_sse = *((int*)ptr); + return 0; + } + else + return (*((SpeexMode**)state))->dec_ctl(state, request, ptr); } <p>- static int nb_mode_query(void *mode, int request, void *ptr) { SpeexNBMode *m = (SpeexNBMode*)mode; diff -ru speex-1.0.3-orig/libspeex/speex.h speex-1.0.3/libspeex/speex.h --- speex-1.0.3-orig/libspeex/speex.h 2003-01-22 23:29:39.000000000 -0800 +++ speex-1.0.3/libspeex/speex.h 2004-01-08 20:46:21.000000000 -0800 @@ -156,6 +156,13 @@ /** Number of defined modes...