cst_ld8a.h

来自「语音编码G.729 语音编码G.729」· C头文件 代码 · 共 95 行

H
95
字号
/***** File:        "cst_ld8a.h"**** Description:  This file contains global definition of the**    CS-ACELP Coder for 8 kbps.***/#ifndef _CST_LD8A_H_INCL_#define _CST_LD8A_H_INCL_#include "ld8a.h"#include "vad.h"#include "sid.h"#include "dtx.h"/*   Used structures*/struct cod_state_t{	/* Speech vector */	FLOAT old_speech[L_TOTAL];	FLOAT *speech, *p_window;	FLOAT *new_speech;                    /* Global variable */	/* Weighted speech vector */	FLOAT old_wsp[L_FRAME+PIT_MAX];	FLOAT *wsp;	/* Excitation vector */	FLOAT old_exc[L_FRAME+PIT_MAX+L_INTERPOL];	FLOAT *exc;	/* LSP Line spectral frequencies */	FLOAT lsp_old[M];	FLOAT lsp_old_q[M];	/* Filter's memory */	FLOAT  mem_w0[M], mem_w[M], mem_zero[M];	FLOAT  sharp;	/* For G.729B */	/* DTX variables */	int pastVad;   	int ppastVad;	INT16 seed;	struct lsp_cod_state_t lsp_s;	struct cod_cng_state_t cng_s;	struct vad_state_t vad_s;	struct gain_state_t gain_s;};struct dec_state_t{	/* Excitation vector */	FLOAT old_exc[L_FRAME+PIT_MAX+L_INTERPOL];	FLOAT *exc;	/* Lsp (Line spectral pairs) */	FLOAT lsp_old[M];	FLOAT mem_syn[M];       /* Synthesis filter's memory          */	FLOAT sharp;            /* pitch sharpening of previous frame */	int old_t0;             /* integer delay of previous frame    */	FLOAT gain_code;        /* Code gain                          */	FLOAT gain_pitch;       /* Pitch gain                         */	/* for G.729B */	INT16 seed_fer;	/* CNG variables */	int past_ftyp;	INT16 seed;	FLOAT sid_sav;	int bad_lsf;		/*		   This variable should be always set to zero unless transmission errors		   in LSP indices are detected.		   This variable is useful if the channel coding designer decides to		   perform error checking on these important parameters. If an error is		   detected on the  LSP indices, the corresponding flag is		   set to 1 signalling to the decoder to perform parameter substitution.		   (The flags should be set back to 0 for correct transmission).		*/	struct lsp_dec_state_t lsp_s;	struct dec_cng_state_t cng_s;	struct gain_state_t gain_s;};#endif /* _CST_LD8A_H_INCL_ */

⌨️ 快捷键说明

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