celt_lpc.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. opus_val16 *mem,
  40. int arch);
  41. #if !defined(OVERRIDE_CELT_FIR)
  42. #define celt_fir(x, num, y, N, ord, mem, arch) \
  43. (celt_fir_c(x, num, y, N, ord, mem, arch))
  44. #endif
  45. void celt_iir(const opus_val32 *x,
  46. const opus_val16 *den,
  47. opus_val32 *y,
  48. int N,
  49. int ord,
  50. opus_val16 *mem,
  51. int arch);
  52. int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
  53. const opus_val16 *window, int overlap, int lag, int n, int arch);
  54. #endif /* PLC_H */