24 #if !defined(_ILBC_ILBC_H_) 27 #define ILBC_BLOCK_LEN_20MS 160 28 #define ILBC_BLOCK_LEN_30MS 240 29 #define ILBC_BLOCK_LEN_MAX 240 31 #define ILBC_NO_OF_BYTES_20MS 38 32 #define ILBC_NO_OF_BYTES_30MS 50 33 #define ILBC_NO_OF_BYTES_MAX 50 35 #define ILBC_NUM_SUB_MAX 6 40 #define ENH_NBLOCKS_TOT 8 41 #define ENH_BUFL (ENH_NBLOCKS_TOT*ENH_BLOCKL) 43 #define ILBC_LPC_FILTERORDER 10 44 #define LPC_LOOKBACK 60 50 #define ILBC_ULP_CLASSES 3 54 int lsf_bits[6][ILBC_ULP_CLASSES + 2];
55 int start_bits[ILBC_ULP_CLASSES + 2];
56 int startfirst_bits[ILBC_ULP_CLASSES + 2];
57 int scale_bits[ILBC_ULP_CLASSES + 2];
58 int state_bits[ILBC_ULP_CLASSES + 2];
59 int extra_cb_index[CB_NSTAGES][ILBC_ULP_CLASSES + 2];
60 int extra_cb_gain[CB_NSTAGES][ILBC_ULP_CLASSES + 2];
61 int cb_index[ILBC_NUM_SUB_MAX][CB_NSTAGES][ILBC_ULP_CLASSES + 2];
62 int cb_gain[ILBC_NUM_SUB_MAX][CB_NSTAGES][ILBC_ULP_CLASSES + 2];
81 float anaMem[ILBC_LPC_FILTERORDER];
84 float lsfold[ILBC_LPC_FILTERORDER];
85 float lsfdeqold[ILBC_LPC_FILTERORDER];
88 float lpc_buffer[LPC_LOOKBACK + ILBC_BLOCK_LEN_MAX];
110 float syntMem[ILBC_LPC_FILTERORDER];
113 float lsfdeqold[ILBC_LPC_FILTERORDER];
119 int prevLag, consPLICount, prevPLI, prev_enh_pl;
120 float prevLpc[ILBC_LPC_FILTERORDER + 1];
121 float prevResidual[ILBC_NUM_SUB_MAX*SUBL];
126 float old_syntdenum[(ILBC_LPC_FILTERORDER + 1)*ILBC_NUM_SUB_MAX];
133 float enh_buf[ENH_BUFL];
134 float enh_period[ENH_NBLOCKS_TOT];
137 #if defined(__cplusplus) 181 const uint8_t bytes[],
193 #if defined(__cplusplus) Definition: ilbc/ilbc.h:66
int ilbc_decode(ilbc_decode_state_t *s, int16_t amp[], const uint8_t bytes[], int len)
Definition: iLBC_decode.c:581
Definition: ilbc/ilbc.h:95
ilbc_encode_state_t * ilbc_encode_init(ilbc_encode_state_t *s, int mode)
Definition: iLBC_encode.c:48
int ilbc_fillin(ilbc_decode_state_t *s, int16_t amp[], int len)
Definition: iLBC_decode.c:611
Definition: ilbc/ilbc.h:52
int ilbc_encode(ilbc_encode_state_t *s, uint8_t bytes[], const int16_t amp[], int len)
Definition: iLBC_encode.c:511
ilbc_decode_state_t * ilbc_decode_init(ilbc_decode_state_t *s, int mode, int use_enhancer)
Definition: iLBC_decode.c:46