#include "speex_bits.h"
Go to the source code of this file.
Classes | |
struct | SpeexMode |
Defines | |
#define | SPEEX_SET_ENH 0 |
#define | SPEEX_GET_ENH 1 |
#define | SPEEX_GET_FRAME_SIZE 3 |
#define | SPEEX_SET_QUALITY 4 |
#define | SPEEX_GET_QUALITY 5 |
#define | SPEEX_SET_MODE 6 |
#define | SPEEX_GET_MODE 7 |
#define | SPEEX_SET_LOW_MODE 8 |
#define | SPEEX_GET_LOW_MODE 9 |
#define | SPEEX_SET_HIGH_MODE 10 |
#define | SPEEX_GET_HIGH_MODE 11 |
#define | SPEEX_SET_VBR 12 |
#define | SPEEX_GET_VBR 13 |
#define | SPEEX_SET_VBR_QUALITY 14 |
#define | SPEEX_GET_VBR_QUALITY 15 |
#define | SPEEX_SET_COMPLEXITY 16 |
#define | SPEEX_GET_COMPLEXITY 17 |
#define | SPEEX_SET_BITRATE 18 |
#define | SPEEX_GET_BITRATE 19 |
#define | SPEEX_SET_HANDLER 20 |
#define | SPEEX_SET_USER_HANDLER 22 |
#define | SPEEX_SET_SAMPLING_RATE 24 |
#define | SPEEX_GET_SAMPLING_RATE 25 |
#define | SPEEX_RESET_STATE 26 |
#define | SPEEX_GET_RELATIVE_QUALITY 29 |
#define | SPEEX_SET_VAD 30 |
#define | SPEEX_GET_VAD 31 |
#define | SPEEX_SET_ABR 32 |
#define | SPEEX_GET_ABR 33 |
#define | SPEEX_SET_DTX 34 |
#define | SPEEX_GET_DTX 35 |
#define | SPEEX_GET_PI_GAIN 100 |
#define | SPEEX_GET_EXC 101 |
#define | SPEEX_GET_INNOV 102 |
#define | SPEEX_GET_DTX_STATUS 103 |
#define | SPEEX_SET_PF 0 |
#define | SPEEX_GET_PF 1 |
#define | SPEEX_MODE_FRAME_SIZE 0 |
#define | SPEEX_SUBMODE_BITS_PER_FRAME 1 |
#define | SPEEX_NB_MODES 3 |
Typedefs | |
typedef void *(* | encoder_init_func )(struct SpeexMode *mode) |
typedef void(* | encoder_destroy_func )(void *st) |
typedef int(* | encode_func )(void *state, float *in, SpeexBits *bits) |
typedef int(* | encoder_ctl_func )(void *state, int request, void *ptr) |
typedef void *(* | decoder_init_func )(struct SpeexMode *mode) |
typedef void(* | decoder_destroy_func )(void *st) |
typedef int(* | decode_func )(void *state, SpeexBits *bits, float *out) |
typedef int(* | decoder_ctl_func )(void *state, int request, void *ptr) |
typedef int(* | mode_query_func )(void *mode, int request, void *ptr) |
typedef SpeexMode | SpeexMode |
Functions | |
void * | speex_encoder_init (SpeexMode *mode) |
void | speex_encoder_destroy (void *state) |
int | speex_encode (void *state, float *in, SpeexBits *bits) |
int | speex_encoder_ctl (void *state, int request, void *ptr) |
void * | speex_decoder_init (SpeexMode *mode) |
void | speex_decoder_destroy (void *state) |
int | speex_decode (void *state, SpeexBits *bits, float *out) |
int | speex_decoder_ctl (void *state, int request, void *ptr) |
int | speex_mode_query (SpeexMode *mode, int request, void *ptr) |
Variables | |
SpeexMode | speex_nb_mode |
SpeexMode | speex_wb_mode |
SpeexMode | speex_uwb_mode |
SpeexMode * | speex_mode_list [SPEEX_NB_MODES] |
|
Get Average Bit-Rate (ABR) setting (in bps) |
|
Get current bit-rate used by the encoder or decoder |
|
Get current complexity of the encoder (0-10) |
|
Get DTX status (1 for on, 0 for off) |
|
Used internally |
|
Get enhancement state (decoder only) |
|
Used internally |
|
Obtain frame size used by encoder/decoder |
|
Get current high-band mode in use (wideband only) |
|
Used internally |
|
Get current low-band mode in use (wideband only) |
|
Get current sub-mode in use |
|
Equivalent to SPEEX_GET_ENH |
|
Used internally |
|
Get current quality setting |
|
Get VBR info (mostly used internally) |
|
Get sampling rate used in bit-rate computation |
|
Get VAD status (1 for on, 0 for off) |
|
Get VBR status (1 for on, 0 for off) |
|
Get current quality value for VBR encoding (0-10) |
|
Query the frame size of a mode |
|
Number of defined modes in Speex |
|
Reset the encoder/decoder memories to zero |
|
Set Average Bit-Rate (ABR) to n bits per seconds |
|
Set bit-rate used by the encoder (or lower) |
|
Set complexity of the encoder (0-10) |
|
Set DTX status (1 for on, 0 for off) |
|
Set enhancement on/off (decoder only) |
|
Define a handler function for in-band Speex request |
|
Set high-band sub-mode to use (wideband only) |
|
Set low-band sub-mode to use (wideband only) |
|
Set sub-mode to use |
|
Equivalent to SPEEX_SET_ENH |
|
Set quality value |
|
Set sampling rate used in bit-rate computation |
|
Define a handler function for in-band user-defined request |
|
Set VAD status (1 for on, 0 for off) |
|
Set VBR on (1) or off (0) |
|
Set quality value for VBR encoding (0-10) |
|
Query the size of an encoded frame for a particular sub-mode |
|
Main decoding function |
|
Function for controlling the decoder options |
|
Decoder state destruction function |
|
Decoder state initialization function |
|
Main encoding function |
|
Function for controlling the encoder options |
|
Encoder state destruction function |
|
Encoder state initialization function |
|
Query function for a mode |
|
Struct defining a Speex 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 |
|
Default narrowband mode |
|
Default "ultra-wideband" mode |
|
Default wideband mode |