#include "modes.h"#include "ltp.h"#include "quant_lsp.h"#include "cb_search.h"#include "sb_celp.h"#include "nb_celp.h"#include "vbr.h"#include "misc.h"Defines | |
| #define | NULL 0 |
Functions | |
| void * | speex_encoder_init (SpeexMode *mode) |
| void * | speex_decoder_init (SpeexMode *mode) |
| void | speex_encoder_destroy (void *state) |
| int | speex_encode (void *state, float *in, SpeexBits *bits) |
| void | speex_decoder_destroy (void *state) |
| int | speex_decode (void *state, SpeexBits *bits, float *out) |
| int | speex_encoder_ctl (void *state, int request, void *ptr) |
| int | speex_decoder_ctl (void *state, int request, void *ptr) |
| int | speex_mode_query (SpeexMode *mode, int request, void *ptr) |
Variables | |
| SpeexMode * | speex_mode_list [SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode} |
| signed char | gain_cdbk_nb [] |
| signed char | gain_cdbk_lbr [] |
| signed char | hexc_table [] |
| signed char | exc_5_256_table [] |
| signed char | exc_5_64_table [] |
| signed char | exc_8_128_table [] |
| signed char | exc_10_32_table [] |
| signed char | exc_10_16_table [] |
| signed char | exc_20_32_table [] |
| signed char | hexc_10_32_table [] |
| SpeexMode | speex_nb_mode |
| SpeexMode | speex_wb_mode |
| SpeexMode | speex_uwb_mode |
|
|
|
|
||||||||||||||||
|
Uses an existing decoder state to decode one frame of speech from bit-stream bits. The output speech is saved written to out.
|
|
||||||||||||||||
|
Used like the ioctl function to control the encoder parameters
|
|
|
Frees all resources associated to an existing decoder state.
|
|
|
Returns a handle to a newly created decoder state structure. For now, the mode argument can be &nb_mode or &wb_mode . In the future, more modes may be added. Note that for now if you have more than one channels to decode, you need one state per channel.
|
|
||||||||||||||||
|
Uses an existing encoder state to encode one frame of speech pointed to by "in". The encoded bit-stream is saved in "bits".
|
|
||||||||||||||||
|
Used like the ioctl function to control the encoder parameters
|
|
|
Frees all resources associated to an existing Speex encoder state.
|
|
|
Returns a handle to a newly created Speex encoder state structure. For now, the "mode" argument can be &nb_mode or &wb_mode . In the future, more modes may be added. Note that for now if you have more than one channels to encode, you need one state per channel.
|
|
||||||||||||||||
|
Query function for mode information
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List of all modes available |
|
|
Initial value: {
&nb_mode,
nb_mode_query,
"narrowband",
0,
4,
&nb_encoder_init,
&nb_encoder_destroy,
&nb_encode,
&nb_decoder_init,
&nb_decoder_destroy,
&nb_decode,
&nb_encoder_ctl,
&nb_decoder_ctl,
} |
|
|
Initial value: {
&sb_uwb_mode,
wb_mode_query,
"ultra-wideband (sub-band CELP)",
2,
4,
&sb_encoder_init,
&sb_encoder_destroy,
&sb_encode,
&sb_decoder_init,
&sb_decoder_destroy,
&sb_decode,
&sb_encoder_ctl,
&sb_decoder_ctl,
} |
|
|
Initial value: {
&sb_wb_mode,
wb_mode_query,
"wideband (sub-band CELP)",
1,
4,
&sb_encoder_init,
&sb_encoder_destroy,
&sb_encode,
&sb_decoder_init,
&sb_decoder_destroy,
&sb_decode,
&sb_encoder_ctl,
&sb_decoder_ctl,
} |
1.2.15