Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/opus/src/celt/x86/vq_sse.h

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/opus/src/celt/x86/celt_lpc_sse.c ('k') | third_party/opus/src/celt/x86/vq_sse2.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2009-2010 Xiph.Org Foundation 1 /* Copyright (c) 2016 Jean-Marc Valin */
2 Written by Jean-Marc Valin */
3 /* 2 /*
4 Redistribution and use in source and binary forms, with or without 3 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions 4 modification, are permitted provided that the following conditions
6 are met: 5 are met:
7 6
8 - Redistributions of source code must retain the above copyright 7 - Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer. 8 notice, this list of conditions and the following disclaimer.
10 9
11 - Redistributions in binary form must reproduce the above copyright 10 - Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the 11 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution. 12 documentation and/or other materials provided with the distribution.
14 13
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 15 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 16 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 17 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
19 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 18 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 20 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 21 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 22 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 25 */
27 26
28 #ifndef PLC_H 27 #ifndef VQ_SSE_H
29 #define PLC_H 28 #define VQ_SSE_H
30 29
31 #include "arch.h" 30 #if defined(OPUS_X86_MAY_HAVE_SSE2) && !defined(FIXED_POINT)
32 #include "cpu_support.h" 31 #define OVERRIDE_OP_PVQ_SEARCH
33 32
34 #if defined(OPUS_X86_MAY_HAVE_SSE4_1) 33 opus_val16 op_pvq_search_sse2(celt_norm *_X, int *iy, int K, int N, int arch);
35 #include "x86/celt_lpc_sse.h" 34
35 #if defined(OPUS_X86_PRESUME_SSE2)
36 #define op_pvq_search(x, iy, K, N, arch) \
37 (op_pvq_search_sse2(x, iy, K, N, arch))
38
39 #else
40
41 extern opus_val16 (*const OP_PVQ_SEARCH_IMPL[OPUS_ARCHMASK + 1])(
42 celt_norm *_X, int *iy, int K, int N, int arch);
43
44 # define op_pvq_search(X, iy, K, N, arch) \
45 ((*OP_PVQ_SEARCH_IMPL[(arch) & OPUS_ARCHMASK])(X, iy, K, N, arch))
46
47 #endif
36 #endif 48 #endif
37 49
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 opus_val16 *mem,
49 int arch);
50
51 #if !defined(OVERRIDE_CELT_FIR)
52 #define celt_fir(x, num, y, N, ord, mem, arch) \
53 (celt_fir_c(x, num, y, N, ord, mem, arch))
54 #endif 50 #endif
55
56 void celt_iir(const opus_val32 *x,
57 const opus_val16 *den,
58 opus_val32 *y,
59 int N,
60 int ord,
61 opus_val16 *mem,
62 int arch);
63
64 int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
65 const opus_val16 *window, int overlap, int lag, int n, int arch);
66
67 #endif /* PLC_H */
OLDNEW
« no previous file with comments | « third_party/opus/src/celt/x86/celt_lpc_sse.c ('k') | third_party/opus/src/celt/x86/vq_sse2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698