Asterisk - The Open Source Telephony Project  18.5.0
Data Structures | Macros | Typedefs
iLBC_define.h File Reference
#include <string.h>
Include dependency graph for iLBC_define.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  iLBC_Dec_Inst_t_
 
struct  iLBC_Enc_Inst_t_
 
struct  iLBC_ULP_Inst_t_
 

Macros

#define BLOCKL_20MS   160
 
#define BLOCKL_30MS   240
 
#define BLOCKL_MAX   240
 
#define BYTE_LEN   8
 
#define CB_EXPAND   2
 
#define CB_FILTERLEN   2*4
 
#define CB_HALFFILTERLEN   4
 
#define CB_MAXGAIN   (float)1.3
 
#define CB_MEML   147
 
#define CB_NSTAGES   3
 
#define CB_RESRANGE   34
 
#define DELAY_DS   3
 
#define ENH_ALPHA0   (float)0.05
 
#define ENH_BLOCKL   80 /* block length */
 
#define ENH_BLOCKL_HALF   (ENH_BLOCKL/2)
 
#define ENH_BUFL   (ENH_NBLOCKS_TOT)*ENH_BLOCKL
 
#define ENH_CORRDIM   (2*ENH_SLOP+1)
 
#define ENH_FL0
 
#define ENH_HL
 
#define ENH_NBLOCKS   (BLOCKL_MAX/ENH_BLOCKL)
 
#define ENH_NBLOCKS_EXTRA   5
 
#define ENH_NBLOCKS_TOT
 
#define ENH_OVERHANG   2
 
#define ENH_PLOCSL
 
#define ENH_SLOP
 
#define ENH_UPS0   4 /* upsampling rate */
 
#define ENH_VECTL   (ENH_BLOCKL+2*ENH_FL0)
 
#define EPS   (float)2.220446049250313e-016
 
#define FACTOR_DS   2
 
#define FILTERORDER_DS   7
 
#define FLOAT_MAX   (float)1.0e37
 
#define LPC_ASYMDIFF   20
 
#define LPC_BW   (float)60.0
 
#define LPC_CHIRP_SYNTDENUM   (float)0.9025
 
#define LPC_CHIRP_WEIGHTDENUM   (float)0.4222
 
#define LPC_FILTERORDER   10
 
#define LPC_HALFORDER   (LPC_FILTERORDER/2)
 
#define LPC_LOOKBACK   60
 
#define LPC_N_20MS   1
 
#define LPC_N_30MS   2
 
#define LPC_N_MAX   2
 
#define LPC_WN   (float)1.0001
 
#define LSF_NSPLIT   3
 
#define LSF_NUMBER_OF_STEPS   4
 
#define MAX_SAMPLE   32767
 
#define MIN_SAMPLE   -32768
 
#define NASUB_20MS   2
 
#define NASUB_30MS   4
 
#define NASUB_MAX   4
 
#define NO_OF_BYTES_20MS   38
 
#define NO_OF_BYTES_30MS   50
 
#define NO_OF_WORDS_20MS   19
 
#define NO_OF_WORDS_30MS   25
 
#define NSUB_20MS   4
 
#define NSUB_30MS   6
 
#define NSUB_MAX   6
 
#define PI   (float)3.14159265358979323846
 
#define PI2   (float)0.159154943
 
#define STATE_BITS   3
 
#define STATE_LEN   80
 
#define STATE_SHORT_LEN_20MS   57
 
#define STATE_SHORT_LEN_30MS   58
 
#define SUBL   40
 
#define TWO_PI   (float)6.283185307
 
#define ULP_CLASSES   3
 

Typedefs

typedef struct iLBC_Dec_Inst_t_ iLBC_Dec_Inst_t
 
typedef struct iLBC_Enc_Inst_t_ iLBC_Enc_Inst_t
 
typedef struct iLBC_ULP_Inst_t_ iLBC_ULP_Inst_t
 

Macro Definition Documentation

◆ BLOCKL_20MS

#define BLOCKL_20MS   160

Definition at line 19 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ BLOCKL_30MS

#define BLOCKL_30MS   240

Definition at line 20 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ BLOCKL_MAX

#define BLOCKL_MAX   240

◆ BYTE_LEN

#define BYTE_LEN   8

Definition at line 105 of file iLBC_define.h.

◆ CB_EXPAND

#define CB_EXPAND   2

Definition at line 57 of file iLBC_define.h.

Referenced by iCBSearch().

◆ CB_FILTERLEN

#define CB_FILTERLEN   2*4

Definition at line 59 of file iLBC_define.h.

Referenced by filteredCBvecs(), and getCBvec().

◆ CB_HALFFILTERLEN

#define CB_HALFFILTERLEN   4

Definition at line 60 of file iLBC_define.h.

Referenced by filteredCBvecs(), and getCBvec().

◆ CB_MAXGAIN

#define CB_MAXGAIN   (float)1.3

Definition at line 62 of file iLBC_define.h.

Referenced by iCBSearch(), and searchAugmentedCB().

◆ CB_MEML

#define CB_MEML   147

Definition at line 58 of file iLBC_define.h.

Referenced by Decode(), filteredCBvecs(), getCBvec(), iCBSearch(), and iLBC_encode().

◆ CB_NSTAGES

#define CB_NSTAGES   3

◆ CB_RESRANGE

#define CB_RESRANGE   34

Definition at line 61 of file iLBC_define.h.

Referenced by iCBSearch().

◆ DELAY_DS

#define DELAY_DS   3

Definition at line 95 of file iLBC_define.h.

Referenced by DownSample().

◆ ENH_ALPHA0

#define ENH_ALPHA0   (float)0.05

Definition at line 90 of file iLBC_define.h.

Referenced by enhancerInterface().

◆ ENH_BLOCKL

#define ENH_BLOCKL   80 /* block length */

Definition at line 66 of file iLBC_define.h.

Referenced by enhancer(), enhancerInterface(), getsseq(), iLBC_decode(), refiner(), and smath().

◆ ENH_BLOCKL_HALF

#define ENH_BLOCKL_HALF   (ENH_BLOCKL/2)

Definition at line 67 of file iLBC_define.h.

Referenced by enhancerInterface(), and getsseq().

◆ ENH_BUFL

#define ENH_BUFL   (ENH_NBLOCKS_TOT)*ENH_BLOCKL

Definition at line 89 of file iLBC_define.h.

Referenced by enhancerInterface(), and initDecode().

◆ ENH_CORRDIM

#define ENH_CORRDIM   (2*ENH_SLOP+1)

Definition at line 84 of file iLBC_define.h.

Referenced by refiner().

◆ ENH_FL0

#define ENH_FL0
Value:
3 /* 2*FLO+1 is the length of
each filter */

Definition at line 76 of file iLBC_define.h.

Referenced by refiner().

◆ ENH_HL

#define ENH_HL
Value:
3 /* 2*ENH_HL+1 is number blocks
in said second sequence */

Definition at line 68 of file iLBC_define.h.

Referenced by enhancer(), getsseq(), and smath().

◆ ENH_NBLOCKS

#define ENH_NBLOCKS   (BLOCKL_MAX/ENH_BLOCKL)

Definition at line 85 of file iLBC_define.h.

Referenced by enhancerInterface().

◆ ENH_NBLOCKS_EXTRA

#define ENH_NBLOCKS_EXTRA   5

Definition at line 86 of file iLBC_define.h.

Referenced by enhancerInterface().

◆ ENH_NBLOCKS_TOT

#define ENH_NBLOCKS_TOT
Value:
8 /* ENH_NBLOCKS +
ENH_NBLOCKS_EXTRA */

Definition at line 87 of file iLBC_define.h.

Referenced by enhancerInterface(), and initDecode().

◆ ENH_OVERHANG

#define ENH_OVERHANG   2

Definition at line 74 of file iLBC_define.h.

Referenced by getsseq().

◆ ENH_PLOCSL

#define ENH_PLOCSL
Value:
20 /* pitch-estimates and pitch-
locations buffer length */

Definition at line 72 of file iLBC_define.h.

Referenced by getsseq().

◆ ENH_SLOP

#define ENH_SLOP
Value:
2 /* max difference estimated and
correct pitch period */

Definition at line 70 of file iLBC_define.h.

Referenced by refiner().

◆ ENH_UPS0

#define ENH_UPS0   4 /* upsampling rate */

Definition at line 75 of file iLBC_define.h.

Referenced by enh_upsample(), and refiner().

◆ ENH_VECTL

#define ENH_VECTL   (ENH_BLOCKL+2*ENH_FL0)

Definition at line 78 of file iLBC_define.h.

Referenced by refiner().

◆ EPS

#define EPS   (float)2.220446049250313e-016

Definition at line 111 of file iLBC_define.h.

Referenced by iCBSearch(), levdurb(), and searchAugmentedCB().

◆ FACTOR_DS

#define FACTOR_DS   2

Definition at line 96 of file iLBC_define.h.

Referenced by DownSample().

◆ FILTERORDER_DS

#define FILTERORDER_DS   7

Definition at line 94 of file iLBC_define.h.

Referenced by DownSample().

◆ FLOAT_MAX

#define FLOAT_MAX   (float)1.0e37

Definition at line 110 of file iLBC_define.h.

Referenced by a2lsf(), and vq().

◆ LPC_ASYMDIFF

#define LPC_ASYMDIFF   20

Definition at line 47 of file iLBC_define.h.

◆ LPC_BW

#define LPC_BW   (float)60.0

Definition at line 48 of file iLBC_define.h.

◆ LPC_CHIRP_SYNTDENUM

#define LPC_CHIRP_SYNTDENUM   (float)0.9025

Definition at line 41 of file iLBC_define.h.

Referenced by SimpleAnalysis().

◆ LPC_CHIRP_WEIGHTDENUM

#define LPC_CHIRP_WEIGHTDENUM   (float)0.4222

Definition at line 42 of file iLBC_define.h.

Referenced by DecoderInterpolateLSF(), and SimpleInterpolateLSF().

◆ LPC_FILTERORDER

#define LPC_FILTERORDER   10

◆ LPC_HALFORDER

#define LPC_HALFORDER   (LPC_FILTERORDER/2)

Definition at line 52 of file iLBC_define.h.

Referenced by a2lsf(), and lsf2a().

◆ LPC_LOOKBACK

#define LPC_LOOKBACK   60

Definition at line 43 of file iLBC_define.h.

Referenced by initEncode(), and SimpleAnalysis().

◆ LPC_N_20MS

#define LPC_N_20MS   1

Definition at line 44 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ LPC_N_30MS

#define LPC_N_30MS   2

Definition at line 45 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ LPC_N_MAX

#define LPC_N_MAX   2

Definition at line 46 of file iLBC_define.h.

Referenced by iLBC_decode(), iLBC_encode(), and LPCencode().

◆ LPC_WN

#define LPC_WN   (float)1.0001

Definition at line 49 of file iLBC_define.h.

◆ LSF_NSPLIT

#define LSF_NSPLIT   3

Definition at line 50 of file iLBC_define.h.

Referenced by iLBC_decode(), iLBC_encode(), SimplelsfDEQ(), and SimplelsfQ().

◆ LSF_NUMBER_OF_STEPS

#define LSF_NUMBER_OF_STEPS   4

Definition at line 51 of file iLBC_define.h.

Referenced by a2lsf().

◆ MAX_SAMPLE

#define MAX_SAMPLE   32767

Definition at line 114 of file iLBC_define.h.

Referenced by decode().

◆ MIN_SAMPLE

#define MIN_SAMPLE   -32768

Definition at line 113 of file iLBC_define.h.

Referenced by decode().

◆ NASUB_20MS

#define NASUB_20MS   2

Definition at line 25 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NASUB_30MS

#define NASUB_30MS   4

Definition at line 31 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NASUB_MAX

#define NASUB_MAX   4

Definition at line 32 of file iLBC_define.h.

Referenced by iLBC_decode(), and iLBC_encode().

◆ NO_OF_BYTES_20MS

#define NO_OF_BYTES_20MS   38

Definition at line 100 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NO_OF_BYTES_30MS

#define NO_OF_BYTES_30MS   50

Definition at line 101 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NO_OF_WORDS_20MS

#define NO_OF_WORDS_20MS   19

Definition at line 102 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NO_OF_WORDS_30MS

#define NO_OF_WORDS_30MS   25

Definition at line 103 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NSUB_20MS

#define NSUB_20MS   4

Definition at line 22 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NSUB_30MS

#define NSUB_30MS   6

Definition at line 23 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ NSUB_MAX

#define NSUB_MAX   6

Definition at line 24 of file iLBC_define.h.

Referenced by FrameClassify(), iLBC_decode(), iLBC_encode(), and initDecode().

◆ PI

#define PI   (float)3.14159265358979323846

Definition at line 112 of file iLBC_define.h.

Referenced by smath().

◆ PI2

#define PI2   (float)0.159154943

Definition at line 116 of file iLBC_define.h.

Referenced by lsf2a().

◆ STATE_BITS

#define STATE_BITS   3

Definition at line 104 of file iLBC_define.h.

◆ STATE_LEN

#define STATE_LEN   80

Definition at line 34 of file iLBC_define.h.

Referenced by Decode(), iCBSearch(), iLBC_decode(), iLBC_encode(), and StateConstructW().

◆ STATE_SHORT_LEN_20MS

#define STATE_SHORT_LEN_20MS   57

Definition at line 36 of file iLBC_define.h.

Referenced by initDecode(), and initEncode().

◆ STATE_SHORT_LEN_30MS

#define STATE_SHORT_LEN_30MS   58

Definition at line 35 of file iLBC_define.h.

Referenced by AbsQuantW(), initDecode(), initEncode(), and StateSearchW().

◆ SUBL

#define SUBL   40

◆ TWO_PI

#define TWO_PI   (float)6.283185307

Definition at line 115 of file iLBC_define.h.

Referenced by a2lsf(), and lsf2a().

◆ ULP_CLASSES

#define ULP_CLASSES   3

Definition at line 106 of file iLBC_define.h.

Typedef Documentation

◆ iLBC_Dec_Inst_t

◆ iLBC_Enc_Inst_t

◆ iLBC_ULP_Inst_t