www.pudn.com > g729AnnexA.rar > LSPDEC.C


/* ITU-T G.729 Software Package Release 2 (November 2006) */ 
/* 
   ITU-T G.729A Speech Coder    ANSI-C Source Code 
   Version 1.1    Last modified: September 1996 
 
   Copyright (c) 1996, 
   AT&T, France Telecom, NTT, Universite de Sherbrooke 
   All rights reserved. 
*/ 
 
#include "typedef.h" 
#include "ld8a.h" 
#include "basic_op.h" 
#include "tab_ld8a.h" 
 
/* static memory */ 
 
static Word16 freq_prev[MA_NP][M];   /* Q13 */ 
static Word16 freq_prev_reset[M] = { /* Q13 */ 
  2339, 4679, 7018, 9358, 11698, 14037, 16377, 18717, 21056, 23396 
};     /* PI*(float)(j+1)/(float)(M+1) */ 
 
/* static memory for frame erase operation */ 
static Word16 prev_ma;                  /* previous MA prediction coef.*/ 
static Word16 prev_lsp[M];              /* previous LSP vector         */ 
 
 
/*---------------------------------------------------------------------------- 
 * Lsp_decw_reset -   set the previous LSP vectors 
 *---------------------------------------------------------------------------- 
 */ 
void Lsp_decw_reset( 
  void 
) 
{ 
  Word16 i; 
 
  for(i=0; i