# modes.h File Reference

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

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

## Classes
struct | SpeexSubmode
struct | SpeexNBMode
struct | SpeexSBMode
## 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_word16_t *, int, 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_word16_t *, SpeexBits *, char *, int, int)
typedef void(* | innovation_unquant_func )(spx_sig_t *, const void *, int, SpeexBits *, char *)

## Detailed Description

Describes the different modes of the codec.

## 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_word16_t *, SpeexBits *, char *, int, 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_word16_t *, int, 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