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: mdct_fxp.h
21
22------------------------------------------------------------------------------
23 REVISION HISTORY
24
25 Description: This extern had the incorrect length of the arrays.  The true
26 lengths are 128 and 1024, not 64 and 512.
27
28 Description:  Modified interface so a vector with extended precision is
29               returned. Added copyright notice.
30
31 Who:                       Date:
32 Description:
33
34------------------------------------------------------------------------------
35 INCLUDE DESCRIPTION
36
37 Header file for function mdct_fxp()
38
39
40------------------------------------------------------------------------------
41*/
42
43/*----------------------------------------------------------------------------
44; CONTINUE ONLY IF NOT ALREADY DEFINED
45----------------------------------------------------------------------------*/
46#ifndef MDCT_FXP_H
47#define MDCT_FXP_H
48
49#ifdef __cplusplus
50extern "C"
51{
52#endif
53
54    /*----------------------------------------------------------------------------
55    ; INCLUDES
56    ----------------------------------------------------------------------------*/
57#include "pv_audio_type_defs.h"
58
59    /*----------------------------------------------------------------------------
60    ; MACROS
61    ; Define module specific macros here
62    ----------------------------------------------------------------------------*/
63
64    /*----------------------------------------------------------------------------
65    ; DEFINES
66    ; Include all pre-processor statements here.
67    ----------------------------------------------------------------------------*/
68#define     LONG_WINDOW_TYPE  2048
69#define     SHORT_WINDOW_TYPE  256
70
71    /*----------------------------------------------------------------------------
72    ; EXTERNAL VARIABLES REFERENCES
73    ; Declare variables used in this module but defined elsewhere
74    ----------------------------------------------------------------------------*/
75
76    extern const Int exp_rotation_N_256[128];
77    extern const Int exp_rotation_N_2048[1024];
78
79    /*----------------------------------------------------------------------------
80    ; SIMPLE TYPEDEF'S
81    ----------------------------------------------------------------------------*/
82
83    /*----------------------------------------------------------------------------
84    ; ENUMERATED TYPEDEF'S
85    ----------------------------------------------------------------------------*/
86
87    /*----------------------------------------------------------------------------
88    ; STRUCTURES TYPEDEF'S
89    ----------------------------------------------------------------------------*/
90
91    /*----------------------------------------------------------------------------
92    ; GLOBAL FUNCTION DEFINITIONS
93    ; Function Prototype declaration
94    ----------------------------------------------------------------------------*/
95    Int mdct_fxp(
96        Int32   data_quant[],
97        Int32   Q_FFTarray[],
98        Int     n);
99
100#ifdef __cplusplus
101}
102#endif
103
104/*----------------------------------------------------------------------------
105; END
106----------------------------------------------------------------------------*/
107#endif  /* MDCT_FXP_H */
108