lpc.h 1.6 KB

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