Added baised log frequency scaling and energy normalization to curve
[platform/upstream/libvorbis.git] / lib / lpc.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
6  * PLEASE READ THESE TERMS DISTRIBUTING.                            *
7  *                                                                  *
8  * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999             *
9  * by 1999 Monty <monty@xiph.org> and The XIPHOPHORUS Company       *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14   function: LPC low level routines
15
16  ********************************************************************/
17
18 #ifndef _V_LPC_H_
19 #define _V_LPC_H_
20
21 #include "codec.h"
22
23 extern double lpc_init(lpc_lookup *l,int n, int m, int oct, int encode_p);
24 extern void lpc_clear(lpc_lookup *l);
25
26 extern double vorbis_curve_to_lpc(double *curve,double *lpc,lpc_lookup *l);
27 extern void vorbis_lpc_to_curve(double *curve,double *lpc, double amp,
28                                 lpc_lookup *l);
29 extern void vorbis_lpc_apply(double *residue,double *lpc, double amp,
30                              lpc_lookup *l);
31
32 #endif