vdecode.h

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

H
57
字号
/**************************************************************************
*
* ROUTINE
*				vdecode
*
* FUNCTION
*
*				create excitation vector from code book index and decoded gain
*
* SYNOPSIS
*				subroutine vdecode(decodedgain, l, vdecoded)
*
*	formal
*
*						data	I/O
*		name			type	type	function
*		-------------------------------------------------------------------
*		decodedgain 	r		i		decoded gain value
*		l				i		i		pitch&code frame length
*		vdecoded		r		o		decoded excitation array
*
*	external
*						data	I/O
*		name			type	type	function
*		-------------------------------------------------------------------
*		x[] 			float	i
*
***************************************************************************
*
* CALLED BY
*
*		celp
*
* CALLS
*
*
*
**************************************************************************/

static void vdecode(float a_decodedgain, int l, float a_vdecoded[])
{
  int i, l_codeword;

  /* *copy selected vector to excitation array							 */

  l_codeword = 2 * (MAXNCSIZE - cbindex);
  if (l_codeword < 0)
  {
#ifdef CELPDIAG
    fprintf(stderr, "vdecode: cbindex > MAXNCSIZE at frame %d\n", frame);
#endif
	l_codeword = 0;
  }
  for (i = 0; i < l; i++)
	a_vdecoded[i] = x[i + l_codeword] * a_decodedgain;
}

⌨️ 快捷键说明

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