⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dtx_h.htm

📁 这是Half rate speech(GSM 06.20)
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0074)http://ece.ut.ac.ir/classpages/VLSI/GSM%20Vocoder/Half-Rate/C-Source/DTX.H -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY><PRE>#ifndef __DTX
#define __DTX

#include "typedefs.h"


#define PN_INIT_SEED (Longword)0x1091988L       /* initial seed for Comfort
                                                 * noise pn-generator */

#define CNINTPER    12                 /* inperpolation period of CN
                                        * parameters */

#define SPEECH      1
#define CNIFIRSTSID 2
#define CNICONT     3
#define CNIBFI      4

#define VALIDSID    11
#define INVALIDSID  22
#define GOODSPEECH  33
#define UNUSABLE    44

/*________________________________________________________________________
 |                                                                        |
 |                      Function Prototypes                               |
 |________________________________________________________________________|
*/

void   avgCNHist(Longword pL_R0History[],
						Longword ppL_CorrHistory[OVERHANG][NP + 1],
						Longword *pL_AvgdR0,
						Longword pL_AvgdCorrSeq[]);

void   avgGsHistQntz(Longword pL_GsHistory[], Longword *pL_GsAvgd);

Shortword swComfortNoise(Shortword swVadFlag,
							Longword L_UnqntzdR0, Longword *pL_UnqntzdCorr);

Shortword getPnBits(int iBits, Longword *L_PnSeed);

Shortword gsQuant(Longword L_GsIn, Shortword swVoicingMode);

void   updateCNHist(Longword L_UnqntzdR0,
							 Longword *pL_UnqntzdCorr,
							 Longword pL_R0Hist[],
							 Longword ppL_CorrHist[OVERHANG][NP + 1]);

void   lpcCorrQntz(Longword pL_CorrelSeq[],
							Shortword pswFinalRc[],
							int piVQCodewds[]);

Longword linInterpSid(Longword L_New, Longword L_Old, Shortword swDtxState);

Shortword linInterpSidShort(Shortword swNew,
									 Shortword swOld,
									 Shortword swDtxState);

void   rxInterpR0Lpc(Shortword *pswOldKs, Shortword *pswNewKs,
							  Shortword swRxDTXState,
							  Shortword swDecoMode, Shortword swFrameType);

#endif
</PRE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -