Main Page | Class List | Directories | File List | Class 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 #include "misc.h"
00051 
00052 int lpc_to_lsp (spx_coef_t *a, int lpcrdr, spx_lsp_t *freq, int nb, spx_word16_t delta, char *stack);
00053 void lsp_to_lpc(spx_lsp_t *freq, spx_coef_t *ak, int lpcrdr, char *stack);
00054 
00055 /*Added by JMV*/
00056 void lsp_enforce_margin(spx_lsp_t *lsp, int len, spx_word16_t margin);
00057 
00058 void lsp_interpolate(spx_lsp_t *old_lsp, spx_lsp_t *new_lsp, spx_lsp_t *interp_lsp, int len, int subframe, int nb_subframes);
00059 
00060 #endif  /* __AK2LSPD__ */

Generated on Tue May 17 12:46:54 2005 for speex by  doxygen 1.4.2