Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

lsp.h

00001 /*---------------------------------------------------------------------------*\
00002 Original Copyright
00003         FILE........: AK2LSPD.H
00004         TYPE........: Turbo C header file
00005         COMPANY.....: Voicetronix
00006         AUTHOR......: James Whitehall
00007         DATE CREATED: 21/11/95
00008 
00009 Modified by Jean-Marc Valin
00010 
00011     This file contains functions for converting Linear Prediction
00012     Coefficients (LPC) to Line Spectral Pair (LSP) and back. Note that the
00013     LSP coefficients are not in radians format but in the x domain of the
00014     unit circle.
00015 
00016 \*---------------------------------------------------------------------------*/
00017 /* Speex License:
00018 
00019    This library is free software; you can redistribute it and/or
00020    modify it under the terms of the GNU Lesser General Public
00021    License as published by the Free Software Foundation; either
00022    version 2.1 of the License, or (at your option) any later version.
00023    
00024    This library is distributed in the hope that it will be useful,
00025    but WITHOUT ANY WARRANTY; without even the implied warranty of
00026    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00027    Lesser General Public License for more details.
00028    
00029    You should have received a copy of the GNU Lesser General Public
00030    License along with this library; if not, write to the Free Software
00031    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00032 */
00033 
00034 #ifndef __AK2LSPD__
00035 #define __AK2LSPD__
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 int lpc_to_lsp (float *a, int lpcrdr, float *freq, int nb, float delta, float *stack);
00042 void lsp_to_lpc(float *freq, float *ak, int lpcrdr, float *stack);
00043 
00044 /*Added by JMV*/
00045 void lsp_enforce_margin(float *lsp, int len, float margin);
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 #endif  /* __AK2LSPD__ */

Generated on Wed Oct 5 14:28:55 2005 for FlowDesigner by  doxygen 1.4.4