search for: st_low

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

Did you mean: pte_low
2005 Feb 27
2
SPEEX_GET_QUALITY
...f (st->complexity<1) $ diff -u ../original/speex-1.1.6/libspeex/sb_celp.c libspeex/sb_celp.c --- ../original/speex-1.1.6/libspeex/sb_celp.c 2004-07-15 01:16:52.000000000 -0400 +++ libspeex/sb_celp.c 2005-02-27 08:33:38.000000000 -0500 @@ -1217,6 +1217,13 @@ speex_encoder_ctl(st->st_low, SPEEX_SET_MODE, &nb_qual); } break; + case SPEEX_GET_QUALITY: + { + int quality; + speex_encoder_ctl(st->st_low, SPEEX_GET_QUALITY, &quality); + (*(int*)ptr) = quality; + } + break; case SPEEX_SET_COMPLEXITY: speex_encoder_ctl(s...
2004 Aug 06
1
One Minor Bug (Typo) in Speex 1.0
Speex 1.0 - in file sb_celp.c line 218 change speex_decoder_ctl(...) to speex_encoder_ctl(...): void *sb_encoder_init(SpeexMode *m) { . . . --> speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); // Replace <-- speex_encoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); st->sampling_rate*=2; return st; } -- Best regards Robert Milharcic e-mail: robert.milharcic@ib-caddy.si <p><p&...
2005 Feb 27
0
SPEEX_GET_QUALITY
...; > $ diff -u ../original/speex-1.1.6/libspeex/sb_celp.c libspeex/sb_celp.c > --- ../original/speex-1.1.6/libspeex/sb_celp.c 2004-07-15 01:16:52.000000000 -0400 > +++ libspeex/sb_celp.c 2005-02-27 08:33:38.000000000 -0500 > @@ -1217,6 +1217,13 @@ > speex_encoder_ctl(st->st_low, SPEEX_SET_MODE, &nb_qual); > } > break; > + case SPEEX_GET_QUALITY: > + { > + int quality; > + speex_encoder_ctl(st->st_low, SPEEX_GET_QUALITY, &quality); > + (*(int*)ptr) = quality; > + } > + break; > cas...
2005 Sep 02
2
DTX mode using preprocessor?
...&& ! 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 the DTX packet and the remote side knows it can safely ignore that stream for the time being -- the lack of packets is completely intentional. While this works, it's an incredibly ugly hack, and I have to include a l...
2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...nc_ctl(state, request, ptr); -> int sb_encoder_ctl(void *state, int request, void *ptr) ... case SPEEX_GET_SAMPLING_RATE: (*(int*)ptr)=st->sampling_rate; break; ... And st->sampling_rate is 2. I debugged some further and it seems: sb_encoder_init calls speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); to get the sampling rate. I think it should be speex_encoder_ctl (otherwise SBEncState * is interpreted as SBDecState *). Best regards, Chris --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.or...
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);
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...> case SPEEX_GET_SAMPLING_RATE: > > (*(int*)ptr)=st->sampling_rate; > > break; > > ... > > And st->sampling_rate is 2. > > > > I debugged some further and it seems: > > sb_encoder_init > > calls > > speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); > > to get the sampling rate. I think it should be speex_encoder_ctl (otherwise > > SBEncState * is > > interpreted as SBDecState *). > > > > Best regards, > > Chris > > > > --- >8 ---- > &gt...
2004 Aug 06
0
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...oid *state, int request, void *ptr) > ... > case SPEEX_GET_SAMPLING_RATE: > (*(int*)ptr)=st->sampling_rate; > break; > ... > And st->sampling_rate is 2. > > I debugged some further and it seems: > sb_encoder_init > calls > speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); > to get the sampling rate. I think it should be speex_encoder_ctl (otherwise > SBEncState * is > interpreted as SBDecState *). > > Best regards, > Chris > > --- >8 ---- > List archives: http://www.xiph.org/archi...
2005 Sep 04
0
DTX mode using preprocessor?
...me) { > 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 the DTX packet and the remote side knows it > can safely ignore that stream for the time being -- the lack of packets is > completely intentional. > > While this works, it's a...
2005 Sep 04
1
DTX mode using preprocessor?
...= 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; >> } (snip snip) I ran into another problem, actually. The jitter buffer doesn't really cope well with DTX. It will (naturally) reset as soon as speech resumes, but then it takes quite a few frames before it's adjusted again, meaning the first...
2004 Aug 06
5
Memory leak in denoiser + a few questions
Hello The st->zeta pointer isn't freed in the speex_preprocess_state_destroy() function of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4 by the way. I'm trying to make the denoiser work with my application and has got reasonable noise reduction after applying the denoiser. I, however, haven't been able to find any information of what the purpose of