Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / openmax_dl / dl / sp / api / mipsSP.h
1 /*
2  *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  *
10  */
11
12 #ifndef _MIPSSP_H_
13 #define _MIPSSP_H_
14
15 #include "dl/api/omxtypes.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /*
22  * Number of sub-transforms performed in the final stage of the 65536-size FFT.
23  * The number of sub-transforms for all other stages can be derived from this
24  * number. This sequence of numbers is equivalent to the Jacobsthal number
25  * sequence (see http://en.wikipedia.org/wiki/Jacobsthal_number).
26  */
27 #define SUBTRANSFORM_CONST (0x2aab)
28 #define SQRT1_2 (0.7071067812f) /* sqrt(0.5f) */
29
30 extern OMX_F32 mipsSP_FFT_F32TwiddleTable[];
31
32 typedef struct MIPSFFTSpec_R_FC32_Tag {
33   OMX_U32 order;
34   OMX_U16* pBitRev;
35   OMX_U16* pBitRevInv;
36   const OMX_U16* pOffset;
37   const OMX_F32* pTwiddle;
38   OMX_F32* pBuf;
39 } MIPSFFTSpec_R_FC32;
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif