Displaying 9 results from an estimated 9 matches for "sbencstate".
Did you mean:
encstate
2005 Sep 02
2
DTX mode using preprocessor?
...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 the DTX packet and the remote side knows it
can safely ignore that stream for the time being -- the lack o...
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
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...*)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.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
containing only the word 'unsubscribe' i...
2005 Sep 04
0
DTX mode using preprocessor?
...; 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 the DTX packet and the remote side knows it
> can safely ignore that...
2009 Jun 26
1
Looks to be some unused memory in sb_celp.c
Hi again JM,
I hate to nit-pick, but it seems that the memory pointed to by the
member "h1_mem" in the SBEncState structure is allocated, freed and
initialized but never actually used. Perhaps it's a leftover from some
previous incarnation of the QMF code? Hope I'm not wasting your time here.
John Ridges
2005 Sep 04
1
DTX mode using preprocessor?
...k 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;
>> }
(snip snip)
I ran into another problem, actually. The jitter buffer doesn't really
cope well with DTX. It will (natural...
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...e 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.org/ogg/
> > To unsubscribe from this list, send a message...
2004 Aug 06
0
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...; ...
> 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.org/ogg/
> To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
>...
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