ton_stab.h

来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· C头文件 代码 · 共 84 行

H
84
字号
/***********************************************************************************      GSM AMR-NB speech codec   R98   Version 7.6.0   December 12, 2001*                                R99   Version 3.3.0                *                                REL-4 Version 4.1.0                ***********************************************************************************      File             : ton_stab.h*      Purpose          : Tone stabilization routines **********************************************************************************/#ifndef ton_stab_h#define ton_stab_h "$Id $" /**********************************************************************************                         INCLUDE FILES*********************************************************************************/#include "typedef.h"#include "mode.h"#include "cnst.h"/**********************************************************************************                         LOCAL VARIABLES AND TABLES*********************************************************************************//**********************************************************************************                         DEFINITION OF DATA TYPES*********************************************************************************//* state variable */typedef struct {   /* counters */   Word16 count;      /* gain history Q11 */   Word16 gp[N_FRAME];   } tonStabState;/**********************************************************************************                         DECLARATION OF PROTOTYPES*********************************************************************************/int ton_stab_init (tonStabState **st);/* initialize one instance of the pre processing state.   Stores pointer to filter status struct in *st. This pointer has to   be passed to ton_stab in each call.   returns 0 on success */ int ton_stab_reset (tonStabState *st);/* reset of pre processing state (i.e. set state memory to zero)   returns 0 on success */void ton_stab_exit (tonStabState **st);/* de-initialize pre processing state (i.e. free status struct)   stores NULL in *st */Word16 check_lsp(tonStabState *st, /* i/o : State struct            */                 Word16 *lsp       /* i   : unquantized LSP's       */);Word16 check_gp_clipping(tonStabState *st, /* i/o : State struct            */                         Word16 g_pitch    /* i   : pitch gain              */);void update_gp_clipping(tonStabState *st, /* i/o : State struct            */                        Word16 g_pitch    /* i   : pitch gain              */);#endif

⌨️ 快捷键说明

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