X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Flpc.h;h=2091afa171cdd014682148eb1feab2f4acaaddeb;hb=20104ce7e73d9fc0467e0b16f1d0b614836a4f56;hp=fe39ec83446f7c147c97c61327e2135233a64923;hpb=cab466d0585827812b4e562eb41a752dd56f1e53;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/lpc.h b/lib/lpc.h index fe39ec8..2091afa 100644 --- a/lib/lpc.h +++ b/lib/lpc.h @@ -1,18 +1,17 @@ /******************************************************************** * * - * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. * - * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY * - * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. * - * PLEASE READ THESE TERMS DISTRIBUTING. * + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * * * - * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 * - * by Monty and The XIPHOPHORUS Company * - * http://www.xiph.org/ * + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 * + * by the Xiph.Org Foundation http://www.xiph.org/ * * * ******************************************************************** function: LPC low level routines - last mod: $Id: lpc.h,v 1.8 2000/01/22 13:28:22 xiphmont Exp $ + last mod: $Id$ ********************************************************************/ @@ -20,38 +19,11 @@ #define _V_LPC_H_ #include "vorbis/codec.h" -#include "smallft.h" - -typedef struct lpclook{ - /* en/decode lookups */ - int *linearmap; - double *barknorm; - drft_lookup fft; - - int n; - int ln; - int m; - -} lpc_lookup; - -extern void lpc_init(lpc_lookup *l,int n, long mapped, long rate, int m); -extern void lpc_clear(lpc_lookup *l); /* simple linear scale LPC code */ -extern double vorbis_lpc_from_data(double *data,double *lpc,int n,int m); -extern double vorbis_lpc_from_spectrum(double *curve,double *lpc,lpc_lookup *l); - -/* log scale layer */ -extern double vorbis_curve_to_lpc(double *curve,double *lpc,lpc_lookup *l); -extern void vorbis_lpc_to_curve(double *curve,double *lpc, double amp, - lpc_lookup *l); -extern void vorbis_lpc_apply(double *residue,double *lpc, double amp, - lpc_lookup *l); +extern float vorbis_lpc_from_data(float *data,float *lpc,int n,int m); -/* standard lpc stuff */ -extern void vorbis_lpc_residue(double *coeff,double *prime,int m, - double *data,long n); -extern void vorbis_lpc_predict(double *coeff,double *prime,int m, - double *data,long n); +extern void vorbis_lpc_predict(float *coeff,float *prime,int m, + float *data,long n); #endif