Libav
Macros | Variables
g723_1_data.h File Reference

G.723.1 compatible decoder data tables. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define SUBFRAMES   4
 
#define SUBFRAME_LEN   60
 
#define FRAME_LEN   (SUBFRAME_LEN << 2)
 
#define LPC_ORDER   10
 
#define LSP_BANDS   3
 
#define LSP_CB_SIZE   256
 
#define PITCH_MIN   18
 
#define PITCH_MAX   (PITCH_MIN + 127)
 
#define PITCH_ORDER   5
 
#define GRID_SIZE   2
 
#define PULSE_MAX   6
 
#define GAIN_LEVELS   24
 
#define COS_TBL_SIZE   512
 

Variables

static const uint8_t frame_size [4] = { 24, 20, 4, 1 }
 
static const int16_t ppf_gain_weight [2] = { 0x1800, 0x2000 }
 
static const int16_t dc_lsp [LPC_ORDER]
 
static const int16_t cos_tab [COS_TBL_SIZE]
 
static const int16_t lsp_band0 [LSP_CB_SIZE][3]
 
static const int16_t lsp_band1 [LSP_CB_SIZE][3]
 
static const int16_t lsp_band2 [LSP_CB_SIZE][4]
 
static const int32_t combinatorial_table [PULSE_MAX][SUBFRAME_LEN/GRID_SIZE]
 
static const int16_t pitch_contrib [340]
 
static const int8_t pulses [4] = {6, 5, 6, 5}
 
static const int32_t max_pos [4] = {593775, 142506, 593775, 142506}
 
static const int16_t fixed_cb_gain [GAIN_LEVELS]
 
static const int16_t adaptive_cb_gain85 [85 *20]
 
static const int16_t adaptive_cb_gain170 [170 *20]
 
static const int16_t postfilter_tbl [2][LPC_ORDER]
 
static const int cng_adaptive_cb_lag [4] = { 1, 0, 1, 3 }
 
static const int cng_filt [4] = { 273, 998, 499, 333 }
 
static const int cng_bseg [3] = { 2048, 18432, 231233 }
 

Detailed Description

G.723.1 compatible decoder data tables.

Definition in file g723_1_data.h.

Macro Definition Documentation

§ SUBFRAMES

#define SUBFRAMES   4

§ SUBFRAME_LEN

#define SUBFRAME_LEN   60

§ FRAME_LEN

#define FRAME_LEN   (SUBFRAME_LEN << 2)

§ LPC_ORDER

#define LPC_ORDER   10

§ LSP_BANDS

#define LSP_BANDS   3

Definition at line 37 of file g723_1_data.h.

§ LSP_CB_SIZE

#define LSP_CB_SIZE   256

Definition at line 38 of file g723_1_data.h.

§ PITCH_MIN

#define PITCH_MIN   18

Definition at line 39 of file g723_1_data.h.

Referenced by ff_sipr_decode_frame_16k(), and unpack_bitstream().

§ PITCH_MAX

#define PITCH_MAX   (PITCH_MIN + 127)

§ PITCH_ORDER

#define PITCH_ORDER   5

Definition at line 41 of file g723_1_data.h.

Referenced by gen_acb_excitation(), and get_residual().

§ GRID_SIZE

#define GRID_SIZE   2

Definition at line 42 of file g723_1_data.h.

Referenced by gen_fcb_excitation().

§ PULSE_MAX

#define PULSE_MAX   6

Definition at line 43 of file g723_1_data.h.

Referenced by gen_fcb_excitation().

§ GAIN_LEVELS

#define GAIN_LEVELS   24

Definition at line 44 of file g723_1_data.h.

Referenced by unpack_bitstream().

§ COS_TBL_SIZE

#define COS_TBL_SIZE   512

Definition at line 45 of file g723_1_data.h.

Variable Documentation

§ frame_size

const uint8_t frame_size[4] = { 24, 20, 4, 1 }
static

§ ppf_gain_weight

const int16_t ppf_gain_weight[2] = { 0x1800, 0x2000 }
static

Definition at line 50 of file g723_1_data.h.

Referenced by comp_ppf_gains().

§ dc_lsp

const int16_t dc_lsp[LPC_ORDER]
static
Initial value:
= {
0x0c3b, 0x1271, 0x1e0a, 0x2a36, 0x3630,
0x406f, 0x4d28, 0x56f4, 0x638c, 0x6c46
}

Definition at line 53 of file g723_1_data.h.

Referenced by g723_1_decode_init(), and inverse_quant().

§ cos_tab

const int16_t cos_tab[COS_TBL_SIZE]
static

Definition at line 59 of file g723_1_data.h.

Referenced by eval_lpcenv_or_interp(), and lsp2lpc().

§ lsp_band0

const int16_t lsp_band0[LSP_CB_SIZE][3]
static

Definition at line 127 of file g723_1_data.h.

Referenced by inverse_quant().

§ lsp_band1

const int16_t lsp_band1[LSP_CB_SIZE][3]
static

Definition at line 216 of file g723_1_data.h.

Referenced by inverse_quant().

§ lsp_band2

const int16_t lsp_band2[LSP_CB_SIZE][4]
static

Definition at line 305 of file g723_1_data.h.

Referenced by inverse_quant().

§ combinatorial_table

const int32_t combinatorial_table[PULSE_MAX][SUBFRAME_LEN/GRID_SIZE]
static

Definition at line 440 of file g723_1_data.h.

Referenced by gen_fcb_excitation().

§ pitch_contrib

const int16_t pitch_contrib[340]
static

Definition at line 484 of file g723_1_data.h.

Referenced by gen_fcb_excitation().

§ pulses

const int8_t pulses[4] = {6, 5, 6, 5}
static

§ max_pos

const int32_t max_pos[4] = {593775, 142506, 593775, 142506}
static

Definition at line 534 of file g723_1_data.h.

Referenced by gen_fcb_excitation().

§ fixed_cb_gain

const int16_t fixed_cb_gain[GAIN_LEVELS]
static
Initial value:
= {
1, 2, 3, 4, 6, 9, 13, 18,
26, 38, 55, 80, 115, 166, 240, 348,
502, 726, 1050, 1517, 2193, 3170, 4582, 6623,
}

Definition at line 536 of file g723_1_data.h.

Referenced by g723_1_decode_frame(), and gen_fcb_excitation().

§ adaptive_cb_gain85

const int16_t adaptive_cb_gain85[85 *20]
static

Definition at line 542 of file g723_1_data.h.

Referenced by gen_acb_excitation().

§ adaptive_cb_gain170

const int16_t adaptive_cb_gain170[170 *20]
static

Definition at line 758 of file g723_1_data.h.

Referenced by gen_acb_excitation().

§ postfilter_tbl

const int16_t postfilter_tbl[2][LPC_ORDER]
static
Initial value:
= {
{ 21299, 13844, 8999, 5849, 3802, 2471, 1606, 1044, 679, 441 },
{ 24576, 18432, 13824, 10368, 7776, 5832, 4374, 3281, 2460, 1845 }
}

Definition at line 1187 of file g723_1_data.h.

Referenced by formant_postfilter().

§ cng_adaptive_cb_lag

const int cng_adaptive_cb_lag[4] = { 1, 0, 1, 3 }
static

Definition at line 1194 of file g723_1_data.h.

Referenced by generate_noise().

§ cng_filt

const int cng_filt[4] = { 273, 998, 499, 333 }
static

Definition at line 1196 of file g723_1_data.h.

Referenced by estimate_sid_gain().

§ cng_bseg

const int cng_bseg[3] = { 2048, 18432, 231233 }
static

Definition at line 1198 of file g723_1_data.h.

Referenced by estimate_sid_gain().