impulse.h

来自「g729 coding ipaddressing」· C头文件 代码 · 共 59 行

H
59
字号
/**************************************************************************
*
* ROUTINE
*				impulse
*
* FUNCTION
*				compute impulse response with direct form filter
*				exclusive of adaptive code book contribution
*
* SYNOPSIS
*				subroutine impulse(l)
*
*	formal
*
*						data	I/O
*		name			type	type	function
*		-------------------------------------------------------------------
*		l				int 	i		impulse response length
*
*	external
*						data	I/O
*		name			type	type	function
*		-------------------------------------------------------------------
*		no				int 	i
*		fc[]			float	i
*		h[] 			float	i/o
*		gamma2			float	i
*
***************************************************************************
*
* Global Variables
*
*
*		SPECTRUM VARIABLE:
*		d5		real	auxiliary array
*
****************************************************************************
* CALLED BY
*
*		csub
*
* CALLS
*
*		bwexp	setr	polefilt
*
**************************************************************************/

static void impulse(int l)
{
  float d5[MAXNO+1], fctemp[MAXNO + 1];

  setr(l, 0.0, h);
  h[0] = 1.0;
  setr(no + 1, 0.0, d5);
  bwexp(gamma2, fc, fctemp, no);
  polefilt(fctemp, no, d5, h, l);

}

⌨️ 快捷键说明

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