celt_lpc.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Copyright (c) 2009-2010 Xiph.Org Foundation
  2. Written by Jean-Marc Valin */
  3. /*
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions
  6. are met:
  7. - Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. - Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  13. ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  14. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  15. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  16. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  17. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  18. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  19. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  20. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  21. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  22. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23. */
  24. #ifndef PLC_H
  25. #define PLC_H
  26. #include "arch.h"
  27. #include "cpu_support.h"
  28. #if defined(OPUS_X86_MAY_HAVE_SSE4_1)
  29. #include "x86/celt_lpc_sse.h"
  30. #endif
  31. #define LPC_ORDER 24
  32. void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p);
  33. void celt_fir_c(
  34. const opus_val16 *x,
  35. const opus_val16 *num,
  36. opus_val16 *y,
  37. int N,
  38. int ord,
  39. int arch);
  40. #if !defined(OVERRIDE_CELT_FIR)
  41. #define celt_fir(x, num, y, N, ord, arch) \
  42. (celt_fir_c(x, num, y, N, ord, arch))
  43. #endif
  44. void celt_iir(const opus_val32 *x,
  45. const opus_val16 *den,
  46. opus_val32 *y,
  47. int N,
  48. int ord,
  49. opus_val16 *mem,
  50. int arch);
  51. int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
  52. const opus_val16 *window, int overlap, int lag, int n, int arch);
  53. #endif /* PLC_H */