webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
mdct_arm.h
Go to the documentation of this file.
1 /* Copyright (c) 2015 Xiph.Org Foundation
2  Written by Viswanath Puttagunta */
8 /*
9  Redistribution and use in source and binary forms, with or without
10  modification, are permitted provided that the following conditions
11  are met:
12 
13  - Redistributions of source code must retain the above copyright
14  notice, this list of conditions and the following disclaimer.
15 
16  - Redistributions in binary form must reproduce the above copyright
17  notice, this list of conditions and the following disclaimer in the
18  documentation and/or other materials provided with the distribution.
19 
20  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
24  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32 
33 #if !defined(MDCT_ARM_H)
34 #define MDCT_ARM_H
35 
36 #include "config.h"
37 #include "mdct.h"
38 
39 #if defined(HAVE_ARM_NE10)
40 
42  kiss_fft_scalar * OPUS_RESTRICT out,
43  const opus_val16 *window, int overlap,
44  int shift, int stride, int arch);
45 
47  kiss_fft_scalar * OPUS_RESTRICT out,
48  const opus_val16 *window, int overlap,
49  int shift, int stride, int arch);
50 
51 #if !defined(OPUS_HAVE_RTCD)
52 #define OVERRIDE_OPUS_MDCT (1)
53 #define clt_mdct_forward(_l, _in, _out, _window, _int, _shift, _stride, _arch) \
54  clt_mdct_forward_neon(_l, _in, _out, _window, _int, _shift, _stride, _arch)
55 #define clt_mdct_backward(_l, _in, _out, _window, _int, _shift, _stride, _arch) \
56  clt_mdct_backward_neon(_l, _in, _out, _window, _int, _shift, _stride, _arch)
57 #endif /* OPUS_HAVE_RTCD */
58 #endif /* HAVE_ARM_NE10 */
59 
60 #endif
float opus_val16
Definition: arch.h:148
void clt_mdct_forward_neon(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar *OPUS_RESTRICT out, const opus_val16 *window, int overlap, int shift, int stride, int arch)
Definition: celt_ne10_mdct.c:44
int int * out
Definition: gcc-loops.cpp:206
#define kiss_fft_scalar
Definition: kiss_fft.h:59
void shift(ExecState *exec, JSObject *thisObj, unsigned header, unsigned currentCount, unsigned resultCount, unsigned length)
Definition: ArrayPrototype.cpp:291
string arch
Definition: runtests.py:65
EGLSurface EGLNativeWindowType * window
Definition: eglext.h:934
void clt_mdct_backward_neon(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar *OPUS_RESTRICT out, const opus_val16 *OPUS_RESTRICT window, int overlap, int shift, int stride, int arch)
Definition: celt_ne10_mdct.c:158
Definition: mdct.h:49
EGLImageKHR EGLint EGLint EGLint * stride
Definition: eglext.h:851