[Speex-dev] About wideband encode

=?ks_c_5601-1987?B?vNW9wr/4?= ssw0725 at ncsoft.net
Fri Feb 10 00:05:19 PST 2006


Hi, all.
 
I have two questions about wideband encoding.
 
>From "testenc_wb.c"...
 
1)
   tmp=8;
   speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp);
   tmp=3;
   speex_encoder_ctl(st, SPEEX_SET_HIGH_MODE, &tmp);
   tmp=6;
   speex_encoder_ctl(st, SPEEX_SET_LOW_MODE, &tmp);
 
How to set high_mode and low_mode, if quality is set to '9'?
When I set quality '9' / high_mode '3' / low_mode '6', encode as like quality is '8'.
And what does high/low mode value in encoding process?
 
2)
   callback.callback_id = SPEEX_INBAND_CHAR;
   callback.func = speex_std_char_handler;
   callback.data = stderr;
   speex_decoder_ctl(dec, SPEEX_SET_HANDLER, &callback);
 
   callback.callback_id = SPEEX_INBAND_MODE_REQUEST;
   callback.func = speex_std_mode_request_handler;
   callback.data = st;
   speex_decoder_ctl(dec, SPEEX_SET_HANDLER, &callback);
 
Are these codes essential for encoding? 
I don't know role of above codes.
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20060210/8609d948/attachment.htm


More information about the Speex-dev mailing list