Main Page   Compound List   File List   Compound Members   File Members  

lsp.h

Go to the documentation of this file.
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    Redistribution and use in source and binary forms, with or without
00020    modification, are permitted provided that the following conditions
00021    are met:
00022    
00023    - Redistributions of source code must retain the above copyright
00024    notice, this list of conditions and the following disclaimer.
00025    
00026    - Redistributions in binary form must reproduce the above copyright
00027    notice, this list of conditions and the following disclaimer in the
00028    documentation and/or other materials provided with the distribution.
00029    
00030    - Neither the name of the Xiph.org Foundation nor the names of its
00031    contributors may be used to endorse or promote products derived from
00032    this software without specific prior written permission.
00033    
00034    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00035    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00036    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00037    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
00038    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00039    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00040    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00041    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00042    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00043    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00044    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00045 */
00046 
00047 #ifndef __AK2LSPD__
00048 #define __AK2LSPD__
00049 
00050 int lpc_to_lsp (float *a, int lpcrdr, float *freq, int nb, float delta, char *stack);
00051 void lsp_to_lpc(float *freq, float *ak, int lpcrdr, char *stack);
00052 
00053 /*Added by JMV*/
00054 void lsp_enforce_margin(float *lsp, int len, float margin);
00055 
00056 
00057 #endif  /* __AK2LSPD__ */

Generated on Wed Feb 11 13:48:36 2004 for speex by doxygen1.2.15