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

📄 cst_ld8c.h

📁 语音编码G.729 语音编码G.729
💻 H
字号:
/***** File:        "cst_ld8a.h"**** Description:  This file contains global definition of the**    CS-ACELP Coder for 8 kbps.***/#ifndef _CST_LD8C_H_INCL_#define _CST_LD8C_H_INCL_#include "ld8k.h"#include "ld8cp.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;	/* Zero vector */	FLOAT ai_zero[L_SUBFR+M_BWDP1];	FLOAT *zero;	/* Lsp (Line spectral pairs) */	FLOAT lsp_old[M];	FLOAT lsp_old_q[M];	/* Filter's memory */	FLOAT mem_syn[M_BWD], mem_w0[M_BWD], mem_w[M_BWD];	FLOAT mem_err[M_BWD+L_SUBFR], *error;	FLOAT pit_sharp;	/* For G.729B */	/* DTX variables */	int   pastVad;	int   ppastVad;	INT16 seed;	/* for G.729E */	/* for the backward analysis */	FLOAT prev_filter[M_BWDP1]; /* Previous selected filter */	FLOAT rexp[M_BWDP1];	FLOAT synth[L_ANA_BWD];	FLOAT *synth_ptr;	int   prev_lp_mode ;	FLOAT gamma1[2], gamma2[2];       /* Weighting factor for the 2 subframes */	FLOAT A_t_bwd_mem[M_BWDP1];	int   bwd_dominant;	FLOAT C_int;              /* See file bwfw.c */	INT16 glob_stat;  /* Mesure of global stationnarity */	INT16 stat_bwd;       /* Nbre of consecutive backward frames */	INT16 val_stat_bwd;   /* Value associated with stat_bwd */	/* Last backward A(z) for case of unstable filter */	FLOAT old_A_bwd[M_BWDP1];	FLOAT old_rc_bwd[2];	/* Last forkward A(z) for case of unstable filter */	FLOAT old_A_fwd[MP1];	FLOAT old_rc_fwd[2];	//FLOAT freq_prev[MA_NP][M];    /* previous LSP vector       */	int   lag_buf[5];	FLOAT pgain_buf[5];	int   d4i40_17_extra;	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 bwd_state_t bwd_s;	struct musdet_state_t mus_s;	struct pwf_state_t pwf_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_BWD];        /* Filter's memory */	FLOAT sharp ;            /* pitch sharpening of previous fr */	FLOAT gain_code;         /* fixed codebook gain */	FLOAT gain_pitch ;       /* adaptive codebook gain */	int   prev_t0;         /* integer delay of previous frame    */	int   prev_t0_frac;    /* integer delay of previous frame    */	/* for G.729B */	INT16 seed_fer;	/* CNG variables */	int   past_ftyp;	INT16 seed;	FLOAT sid_sav;	/* for the backward analysis */	FLOAT rexp[M_BWDP1];	FLOAT A_bwd_mem[M_BWDP1];	FLOAT A_t_bwd_mem[M_BWDP1];	int   prev_voicing, prev_bfi, prev_lp_mode;	FLOAT c_fe, c_int;	FLOAT prev_filter[M_BWDP1]; /* Previous selected filter */	int   prev_pitch;	int   stat_pitch;	int   pitch_sta, frac_sta;	/* Last backward A(z) for case of unstable filter */	FLOAT old_A_bwd[M_BWDP1];	FLOAT old_rc_bwd[2];	FLOAT gain_pit_mem;	FLOAT gain_cod_mem;	FLOAT c_muting;	int   count_bfi;	int   stat_bwd;	struct lsp_dec_state_t lsp_s;	struct dec_cng_state_t cng_s;	struct gain_state_t gain_s;	struct bwd_state_t bwd_s;};#endif /* _CST_LD8C_H_INCL_ */

⌨️ 快捷键说明

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