ex
Fork of mbed-os-example-mbed5-blinky by
speex.h File Reference
Describes the different modes of the codec. More...
Go to the source code of this file.
Data Structures | |
struct | SpeexMode |
Struct defining a Speex mode. More... | |
Typedefs | |
typedef void *(* | encoder_init_func )(const struct SpeexMode *mode) |
Encoder state initialization function. | |
typedef void(* | encoder_destroy_func )(void *st) |
Encoder state destruction function. | |
typedef int(* | encode_func )(void *state, void *in, SpeexBits *bits) |
Main encoding function. | |
typedef int(* | encoder_ctl_func )(void *state, int request, void *ptr) |
Function for controlling the encoder options. | |
typedef void *(* | decoder_init_func )(const struct SpeexMode *mode) |
Decoder state initialization function. | |
typedef void(* | decoder_destroy_func )(void *st) |
Decoder state destruction function. | |
typedef int(* | decode_func )(void *state, SpeexBits *bits, void *out) |
Main decoding function. | |
typedef int(* | decoder_ctl_func )(void *state, int request, void *ptr) |
Function for controlling the decoder options. | |
typedef int(* | mode_query_func )(const void *mode, int request, void *ptr) |
Query function for a mode. | |
typedef struct SpeexMode | SpeexMode |
Struct defining a Speex mode. | |
Functions | |
void * | speex_encoder_init (const SpeexMode *mode) |
Returns a handle to a newly created Speex encoder state structure. | |
void | speex_encoder_destroy (void *state) |
Frees all resources associated to an existing Speex encoder state. | |
int | speex_encode (void *state, float *in, SpeexBits *bits) |
Uses an existing encoder state to encode one frame of speech pointed to by "in". | |
int | speex_encode_int (void *state, spx_int16_t *in, SpeexBits *bits) |
Uses an existing encoder state to encode one frame of speech pointed to by "in". | |
int | speex_encoder_ctl (void *state, int request, void *ptr) |
Used like the ioctl function to control the encoder parameters. | |
void * | speex_decoder_init (const SpeexMode *mode) |
Returns a handle to a newly created decoder state structure. | |
void | speex_decoder_destroy (void *state) |
Frees all resources associated to an existing decoder state. | |
int | speex_decode (void *state, SpeexBits *bits, float *out) |
Uses an existing decoder state to decode one frame of speech from bit-stream bits. | |
int | speex_decode_int (void *state, SpeexBits *bits, spx_int16_t *out) |
Uses an existing decoder state to decode one frame of speech from bit-stream bits. | |
int | speex_decoder_ctl (void *state, int request, void *ptr) |
Used like the ioctl function to control the encoder parameters. | |
int | speex_mode_query (const SpeexMode *mode, int request, void *ptr) |
Query function for mode information. | |
int | speex_lib_ctl (int request, void *ptr) |
Functions for controlling the behavior of libspeex. | |
const SpeexMode * | speex_lib_get_mode (int mode) |
Obtain one of the modes available. | |
Variables | |
const SpeexMode | speex_nb_mode |
Default narrowband mode. | |
const SpeexMode | speex_wb_mode |
Default wideband mode. | |
const SpeexMode | speex_uwb_mode |
Default "ultra-wideband" mode. | |
const SpeexMode | speex_nb_48k_mode |
4.8 kbps narrowband mode | |
const SpeexMode *const | speex_mode_list [SPEEX_NB_MODES] |
List of all modes available. |
Detailed Description
Describes the different modes of the codec.
Definition in file speex.h.
Generated on Tue Jul 12 2022 16:28:54 by 1.7.2