1/* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 * express or implied.
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
17 */
18/*
19
20 Pathname: ./include/fft_rx4.h
21
22------------------------------------------------------------------------------
23 REVISION HISTORY
24
25        (1) modified definition of w_64rx4 from Int to Int16
26
27 Who:                   Date:
28 Description:
29
30------------------------------------------------------------------------------
31 INCLUDE DESCRIPTION
32
33 Header file for functions fft_rx4()
34
35
36------------------------------------------------------------------------------
37*/
38
39/*----------------------------------------------------------------------------
40; CONTINUE ONLY IF NOT ALREADY DEFINED
41----------------------------------------------------------------------------*/
42#ifndef FFT_RX4_H
43#define FFT_RX4_H
44
45/*----------------------------------------------------------------------------
46; INCLUDES
47----------------------------------------------------------------------------*/
48#include "pv_audio_type_defs.h"
49
50/*----------------------------------------------------------------------------
51; MACROS
52; Define module specific macros here
53----------------------------------------------------------------------------*/
54
55/*----------------------------------------------------------------------------
56; DEFINES
57; Include all pre-processor statements here.
58----------------------------------------------------------------------------*/
59#define     FFT_RX4_LONG                256
60#define     ONE_FOURTH_FFT_RX4_LONG     ((FFT_RX4_LONG)>>2)
61#define     FFT_RX4_SHORT               64
62#define     ONE_FOURTH_FFT_RX4_SHORT    ((FFT_RX4_SHORT)>>2)
63
64/*----------------------------------------------------------------------------
65; EXTERNAL VARIABLES REFERENCES
66; Declare variables used in this module but defined elsewhere
67----------------------------------------------------------------------------*/
68extern const Int16 w_64rx4[];
69extern const Int32 W_64rx4[];
70extern const Int32 W_256rx4[];
71extern const Int32 w_512rx2[];
72
73/*----------------------------------------------------------------------------
74; SIMPLE TYPEDEF'S
75----------------------------------------------------------------------------*/
76
77/*----------------------------------------------------------------------------
78; ENUMERATED TYPEDEF'S
79----------------------------------------------------------------------------*/
80
81/*----------------------------------------------------------------------------
82; STRUCTURES TYPEDEF'S
83----------------------------------------------------------------------------*/
84
85/*----------------------------------------------------------------------------
86; GLOBAL FUNCTION DEFINITIONS
87; Function Prototype declaration
88----------------------------------------------------------------------------*/
89
90#ifdef __cplusplus
91extern "C"
92{
93#endif
94
95    void fft_rx4_long(
96        Int32      Data[],
97        Int32      *peak_value);
98
99    Int fft_rx4_short(
100        Int32      Data[],
101        Int32      *peak_value);
102
103#ifdef __cplusplus
104}
105#endif
106
107/*----------------------------------------------------------------------------
108; END
109----------------------------------------------------------------------------*/
110#endif  /* FFT_RX4_H */
111