iLBC_define.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(_ILBC_DEFINE_H_)
00023 #define _ILBC_DEFINE_H_
00024
00025 #include <string.h>
00026
00027 #define FS 8000.0f
00028 #define NSUB_20MS 4
00029 #define NSUB_30MS 6
00030 #define NASUB_20MS 2
00031
00032
00033 #define NASUB_30MS 4
00034 #define NASUB_MAX 4
00035 #define SUBL 40
00036 #define STATE_LEN 80
00037 #define STATE_SHORT_LEN_30MS 58
00038 #define STATE_SHORT_LEN_20MS 57
00039
00040
00041
00042 #define ILBC_LPC_FILTERORDER 10
00043 #define LPC_CHIRP_SYNTDENUM 0.9025f
00044 #define LPC_CHIRP_WEIGHTDENUM 0.4222f
00045 #define LPC_LOOKBACK 60
00046 #define LPC_N_20MS 1
00047 #define LPC_N_30MS 2
00048 #define LPC_N_MAX 2
00049 #define LPC_ASYMDIFF 20
00050 #define LPC_BW 60.0f
00051 #define LPC_WN 1.0001f
00052 #define LSF_NSPLIT 3
00053 #define LSF_NUMBER_OF_STEPS 4
00054 #define LPC_HALFORDER (ILBC_LPC_FILTERORDER/2)
00055
00056
00057
00058 #define CB_NSTAGES 3
00059 #define CB_EXPAND 2
00060 #define CB_MEML 147
00061 #define CB_FILTERLEN 2*4
00062 #define CB_HALFFILTERLEN 4
00063 #define CB_RESRANGE 34
00064 #define CB_MAXGAIN 1.3f
00065
00066
00067
00068 #define ENH_BLOCKL 80
00069 #define ENH_BLOCKL_HALF (ENH_BLOCKL/2)
00070 #define ENH_HL 3
00071 #define ENH_SLOP 2
00072 #define ENH_PLOCSL 20
00073 #define ENH_OVERHANG 2
00074 #define ENH_UPS0 4
00075 #define ENH_FL0 3
00076 #define ENH_VECTL (ENH_BLOCKL + 2*ENH_FL0)
00077
00078 #define ENH_CORRDIM (2*ENH_SLOP + 1)
00079 #define ENH_NBLOCKS (ILBC_BLOCK_LEN_MAX/ENH_BLOCKL)
00080 #define ENH_NBLOCKS_EXTRA 5
00081 #define ENH_NBLOCKS_TOT 8
00082 #define ENH_BUFL (ENH_NBLOCKS_TOT*ENH_BLOCKL)
00083 #define ENH_ALPHA0 0.05f
00084
00085
00086
00087 #define FILTERORDER_DS 7
00088 #define DELAY_DS 3
00089 #define FACTOR_DS 2
00090
00091
00092
00093 #define STATE_BITS 3
00094 #define BYTE_LEN 8
00095
00096
00097
00098 #define FLOAT_MAX 1.0e37f
00099 #define EPS 2.220446049250313e-016f
00100 #define PI 3.14159265358979323846f
00101 #define MIN_SAMPLE -32768
00102 #define MAX_SAMPLE 32767
00103 #define TWO_PI 6.283185307f
00104 #define PI2 0.159154943f
00105
00106 #endif
00107