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

📄 vdecode.c

📁 语音CELP压缩解压源代码(C语音)
💻 C
字号:
/**************************************************************************** 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*****************************************************************************/#include "ccsub.h"extern int cbindex, frame;extern float x[MAXCODE];vdecode(decodedgain, l, vdecoded)int l;float decodedgain, vdecoded[];{  int i, codeword;  /* *copy selected vector to excitation array	 		 	 */  codeword = 2 * (MAXNCSIZE - cbindex);  if (codeword < 0)  {    printf("vdecode: cbindex > MAXNCSIZE at frame %d\n", frame);    codeword = 0;  }  for (i = 0; i < l; i++)    vdecoded[i] = x[i + codeword] * decodedgain;}

⌨️ 快捷键说明

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