Mercurial > hg > sv-dependency-builds
comparison src/opus-1.3/celt/celt_lpc.h @ 69:7aeed7906520
Add Opus sources and macOS builds
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 13:48:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:85d5306e114e | 69:7aeed7906520 |
---|---|
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 | |
8 - Redistributions of source code must retain the above copyright | |
9 notice, this list of conditions and the following disclaimer. | |
10 | |
11 - Redistributions in binary form must reproduce the above copyright | |
12 notice, this list of conditions and the following disclaimer in the | |
13 documentation and/or other materials provided with the distribution. | |
14 | |
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
16 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER | |
19 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
20 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
21 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | |
22 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | |
23 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
24 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
26 */ | |
27 | |
28 #ifndef PLC_H | |
29 #define PLC_H | |
30 | |
31 #include "arch.h" | |
32 #include "cpu_support.h" | |
33 | |
34 #if defined(OPUS_X86_MAY_HAVE_SSE4_1) | |
35 #include "x86/celt_lpc_sse.h" | |
36 #endif | |
37 | |
38 #define LPC_ORDER 24 | |
39 | |
40 void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p); | |
41 | |
42 void celt_fir_c( | |
43 const opus_val16 *x, | |
44 const opus_val16 *num, | |
45 opus_val16 *y, | |
46 int N, | |
47 int ord, | |
48 int arch); | |
49 | |
50 #if !defined(OVERRIDE_CELT_FIR) | |
51 #define celt_fir(x, num, y, N, ord, arch) \ | |
52 (celt_fir_c(x, num, y, N, ord, arch)) | |
53 #endif | |
54 | |
55 void celt_iir(const opus_val32 *x, | |
56 const opus_val16 *den, | |
57 opus_val32 *y, | |
58 int N, | |
59 int ord, | |
60 opus_val16 *mem, | |
61 int arch); | |
62 | |
63 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac, | |
64 const opus_val16 *window, int overlap, int lag, int n, int arch); | |
65 | |
66 #endif /* PLC_H */ |