lpc.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
  9. * by the XIPHOPHORUS Company http://www.xiph.org/ *
  10. ********************************************************************
  11. function: LPC low level routines
  12. last mod: $Id: lpc.h,v 1.17 2001/02/26 03:50:42 xiphmont Exp $
  13. ********************************************************************/
  14. #ifndef _V_LPC_H_
  15. #define _V_LPC_H_
  16. #include "vorbis/codec.h"
  17. #include "smallft.h"
  18. typedef struct lpclook{
  19. /* en/decode lookups */
  20. drft_lookup fft;
  21. int ln;
  22. int m;
  23. } lpc_lookup;
  24. extern void lpc_init(lpc_lookup *l,long mapped, int m);
  25. extern void lpc_clear(lpc_lookup *l);
  26. /* simple linear scale LPC code */
  27. extern float vorbis_lpc_from_data(float *data,float *lpc,int n,int m);
  28. extern float vorbis_lpc_from_curve(float *curve,float *lpc,lpc_lookup *l);
  29. extern void vorbis_lpc_predict(float *coeff,float *prime,int m,
  30. float *data,long n);
  31. #endif