Main Page | Class List | Directories | File List | Class Members | File Members

modes.h File Reference

Describes the different modes of the codec. More...

#include <speex/speex.h>
#include <speex/speex_bits.h>
#include "misc.h"

Include dependency graph for modes.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NB_SUBMODES   16
#define NB_SUBMODE_BITS   4
#define SB_SUBMODES   8
#define SB_SUBMODE_BITS   3

Typedefs

typedef void(* lsp_quant_func )(spx_lsp_t *, spx_lsp_t *, int, SpeexBits *)
typedef void(* lsp_unquant_func )(spx_lsp_t *, int, SpeexBits *)
typedef int(* ltp_quant_func )(spx_sig_t *, spx_sig_t *, spx_coef_t *, spx_coef_t *, spx_coef_t *, spx_sig_t *, const void *, int, int, spx_word16_t, int, int, SpeexBits *, char *, spx_sig_t *, spx_sig_t *, int, int)
typedef void(* ltp_unquant_func )(spx_sig_t *, int, int, spx_word16_t, const void *, int, int *, spx_word16_t *, SpeexBits *, char *, int, int, spx_word16_t, int)
typedef void(* innovation_quant_func )(spx_sig_t *, spx_coef_t *, spx_coef_t *, spx_coef_t *, const void *, int, int, spx_sig_t *, spx_sig_t *, SpeexBits *, char *, int)
typedef void(* innovation_unquant_func )(spx_sig_t *, const void *, int, SpeexBits *, char *)
typedef SpeexSubmode SpeexSubmode
typedef SpeexNBMode SpeexNBMode
typedef SpeexSBMode SpeexSBMode

Functions

int speex_encode_native (void *state, spx_word16_t *in, SpeexBits *bits)
int speex_decode_native (void *state, SpeexBits *bits, spx_word16_t *out)
int nb_mode_query (const void *mode, int request, void *ptr)
int wb_mode_query (const void *mode, int request, void *ptr)


Detailed Description

Describes the different modes of the codec.


Define Documentation

#define NB_SUBMODE_BITS   4
 

#define NB_SUBMODES   16
 

#define SB_SUBMODE_BITS   3
 

#define SB_SUBMODES   8
 


Typedef Documentation

typedef void(* innovation_quant_func)(spx_sig_t *, spx_coef_t *, spx_coef_t *, spx_coef_t *, const void *, int, int, spx_sig_t *, spx_sig_t *, SpeexBits *, char *, int)
 

Innovation quantization function

typedef void(* innovation_unquant_func)(spx_sig_t *, const void *, int, SpeexBits *, char *)
 

Innovation unquantization function

typedef void(* lsp_quant_func)(spx_lsp_t *, spx_lsp_t *, int, SpeexBits *)
 

Quantizes LSPs

typedef void(* lsp_unquant_func)(spx_lsp_t *, int, SpeexBits *)
 

Decodes quantized LSPs

typedef int(* ltp_quant_func)(spx_sig_t *, spx_sig_t *, spx_coef_t *, spx_coef_t *, spx_coef_t *, spx_sig_t *, const void *, int, int, spx_word16_t, int, int, SpeexBits *, char *, spx_sig_t *, spx_sig_t *, int, int)
 

Long-term predictor quantization

typedef void(* ltp_unquant_func)(spx_sig_t *, int, int, spx_word16_t, const void *, int, int *, spx_word16_t *, SpeexBits *, char *, int, int, spx_word16_t, int)
 

Long-term un-quantize

typedef struct SpeexNBMode SpeexNBMode
 

Struct defining the encoding/decoding mode

typedef struct SpeexSBMode SpeexSBMode
 

Struct defining the encoding/decoding mode for SB-CELP (wideband)

typedef struct SpeexSubmode SpeexSubmode
 

Description of a Speex sub-mode (wither narrowband or wideband


Function Documentation

int nb_mode_query const void *  mode,
int  request,
void *  ptr
 

int speex_decode_native void *  state,
SpeexBits *  bits,
spx_word16_t out
 

int speex_encode_native void *  state,
spx_word16_t in,
SpeexBits *  bits
 

int wb_mode_query const void *  mode,
int  request,
void *  ptr
 


Generated on Sun Feb 27 16:36:41 2005 for speex by  doxygen 1.4.1