#include "version.h"
#include "PalmType.h"
#include "p_util.h"

#include "p_dsp.h"

#include "dsp\G711.h"
#include "dsp\G723main.h"
#include "dsp\G729main.h"
#include "dsp\GSM.h"
#include "dsp\iLBCmain.h"

CSHORT Dsp_cCodecInit[CODEC_NULL] = {G729_INITIAL, G723_INITIAL, G711_INITIAL, G711_INITIAL, GSM_INITIAL, ILBC_INITIAL};
CSHORT Dsp_c8KEncode[CODEC_NULL] = {G729_8K_ENCODE, G723_8K_ENCODE, G711_U_8K_ENCODE, G711_A_8K_ENCODE, GSM_8K_ENCODE, ILBC_8K_ENCODE};
CSHORT Dsp_c8KDecode[CODEC_NULL] = {G729_8K_DECODE, G723_8K_DECODE, G711_U_8K_DECODE, G711_A_8K_DECODE, GSM_8K_DECODE, ILBC_8K_DECODE};
CSHORT Dsp_cEntry_4[CODEC_NULL] = {G729_ENTRY_4, G723_ENTRY_4, G711_U_ENTRY_4, G711_A_ENTRY_4, GSM_ENTRY_4, ILBC_ENTRY_4};
CSHORT Dsp_cEntry_5[CODEC_NULL] = {G729_ENTRY_5, G723_ENTRY_5, G711_U_ENTRY_5, G711_A_ENTRY_5, GSM_ENTRY_5, ILBC_ENTRY_5};
CSHORT Dsp_cEntry_6[CODEC_NULL] = {G729_ENTRY_6, G723_ENTRY_6, G711_U_ENTRY_6, G711_A_ENTRY_6, GSM_ENTRY_6, ILBC_ENTRY_6};
CSHORT Dsp_cEntry_7[CODEC_NULL] = {G729_ENTRY_7, G723_ENTRY_7, G711_U_ENTRY_7, G711_A_ENTRY_7, GSM_ENTRY_7, ILBC_ENTRY_7};
CSHORT Dsp_cEntry_8[CODEC_NULL] = {G729_ENTRY_8, G723_ENTRY_8, G711_U_ENTRY_8, G711_A_ENTRY_8, GSM_ENTRY_8, ILBC_ENTRY_8};
CSHORT Dsp_cEntry_9[CODEC_NULL] = {G729_ENTRY_9, G723_ENTRY_9, G711_U_ENTRY_9, G711_A_ENTRY_9, GSM_ENTRY_9, ILBC_ENTRY_9};
CSHORT Dsp_cEntry_10[CODEC_NULL] = {G729_ENTRY_10, G723_ENTRY_10, G711_U_ENTRY_10, G711_A_ENTRY_10, GSM_ENTRY_10, ILBC_ENTRY_10};
CSHORT Dsp_cEntry_12[CODEC_NULL] = {G729_ENTRY_12, G723_ENTRY_12, G711_U_ENTRY_12, G711_A_ENTRY_12, GSM_ENTRY_12, ILBC_ENTRY_12};
CSHORT Dsp_cEntry_13[CODEC_NULL] = {G729_ENTRY_13, G723_ENTRY_13, G711_U_ENTRY_13, G711_A_ENTRY_13, GSM_ENTRY_13, ILBC_ENTRY_13};
CSHORT Dsp_cEntry_16[CODEC_NULL] = {G729_ENTRY_16, G723_ENTRY_16, G711_U_ENTRY_16, G711_A_ENTRY_16, GSM_ENTRY_16, ILBC_ENTRY_16};
CSHORT Dsp_cEntry_18[CODEC_NULL] = {G729_ENTRY_18, G723_ENTRY_18, G711_U_ENTRY_18, G711_A_ENTRY_18, GSM_ENTRY_18, ILBC_ENTRY_18};
CSHORT Dsp_cEntry_19[CODEC_NULL] = {G729_ENTRY_19, G723_ENTRY_19, G711_U_ENTRY_19, G711_A_ENTRY_19, GSM_ENTRY_19, ILBC_ENTRY_19};
CSHORT Dsp_cEntry_20[CODEC_NULL] = {G729_ENTRY_20, G723_ENTRY_20, G711_U_ENTRY_20, G711_A_ENTRY_20, GSM_ENTRY_20, ILBC_ENTRY_20};
CSHORT Dsp_cEntry_22[CODEC_NULL] = {G729_ENTRY_22, G723_ENTRY_22, G711_U_ENTRY_22, G711_A_ENTRY_22, GSM_ENTRY_22, ILBC_ENTRY_22};
CSHORT Dsp_cEntry_24[CODEC_NULL] = {G729_ENTRY_24, G723_ENTRY_24, G711_U_ENTRY_24, G711_A_ENTRY_24, GSM_ENTRY_24, ILBC_ENTRY_24};
CSHORT Dsp_cEntry_25[CODEC_NULL] = {G729_ENTRY_25, G723_ENTRY_25, G711_U_ENTRY_25, G711_A_ENTRY_25, GSM_ENTRY_25, ILBC_ENTRY_25};

CCHAR Dsp_cCodeSdramHi[CODEC_NULL] = {G729_SDRAM_HI, G723_SDRAM_HI, DSP_SDRAM_HI, DSP_SDRAM_HI, DSP_SDRAM_HI, ILBC_SDRAM_HI};
CCHAR Dsp_cCodeSdramLo[CODEC_NULL] = {G729_SDRAM_LO, G723_SDRAM_LO, G711_SDRAM_LO, G711_SDRAM_LO, GSM_SDRAM_LO, iLBC_SDRAM_LO};
CSHORT Dsp_cCodeSize[CODEC_NULL] = {G729MAIN_SIZE, G723MAIN_SIZE, G711_SIZE, G711_SIZE, GSM_SIZE, ILBCMAIN_SIZE};

CCHAR Dsp_iVadLen[CODEC_NULL] = {G729_CNG_LEN, G7231_CNG_LEN, 0, 0, 0, 0};
CCHAR Dsp_iDecodeLenPos[CODEC_NULL] = {G729_R8_LEN+1, G7231_R63_LEN+1, G711_LEN+1, G711_LEN+1, GSM610_LEN+2, ILBC_LEN+1};
CCHAR Dsp_iDecodeLenDword[CODEC_NULL] = {3, 7, 21, 21, 9, 13};

CCHAR Dsp_cFrameLen[CODEC_NULL] = {G729_COMPRESSED, G7231_COMPRESSED, G711_LEN, G711_LEN, GSM610_LEN, ILBC_LEN};
CCHAR Dsp_cRecordingLen[CODEC_NULL] = {G729_R8_LEN, G7231_R63_LEN, G711_LEN, G711_LEN, GSM610_LEN, ILBC_LEN};


