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; CONTINUE ONLY IF NOT ALREADY DEFINED
20----------------------------------------------------------------------------*/
21#ifndef CALC_SBR_SYNFILTERBANK_H
22#define CALC_SBR_SYNFILTERBANK_H
23
24
25/*----------------------------------------------------------------------------
26; INCLUDES
27----------------------------------------------------------------------------*/
28#include "pv_audio_type_defs.h"
29
30/*----------------------------------------------------------------------------
31; MACROS
32; Define module specific macros here
33----------------------------------------------------------------------------*/
34#ifdef __cplusplus
35extern "C"
36{
37#endif
38
39    /*----------------------------------------------------------------------------
40    ; DEFINES
41    ; Include all pre-processor statements here.
42    ----------------------------------------------------------------------------*/
43#define N  14
44
45#define ROUND_SYNFIL  (32768 + 4096)
46
47    /*----------------------------------------------------------------------------
48    ; EXTERNAL VARIABLES REFERENCES
49    ; Declare variables used in this module but defined elsewhere
50    ----------------------------------------------------------------------------*/
51
52    /*----------------------------------------------------------------------------
53    ; SIMPLE TYPEDEF'S
54    ----------------------------------------------------------------------------*/
55
56    /*----------------------------------------------------------------------------
57    ; ENUMERATED TYPEDEF'S
58    ----------------------------------------------------------------------------*/
59
60    /*----------------------------------------------------------------------------
61    ; STRUCTURES TYPEDEF'S
62    ----------------------------------------------------------------------------*/
63
64    /*----------------------------------------------------------------------------
65    ; GLOBAL FUNCTION DEFINITIONS
66    ; Function Prototype declaration
67    ----------------------------------------------------------------------------*/
68
69
70    void calc_sbr_synfilterbank_LC(Int32 * Sr,
71    Int16 * timeSig,
72    Int16   V[1280],
73    bool bDownSampleSBR);
74
75#ifdef HQ_SBR
76
77
78    void calc_sbr_synfilterbank(Int32 * Sr,
79                                Int32 * Si,
80                                Int16 * timeSig,
81                                Int16   V[1280],
82                                bool bDownSampleSBR);
83
84#endif
85
86#ifdef __cplusplus
87}
88#endif
89
90/*----------------------------------------------------------------------------
91; END
92----------------------------------------------------------------------------*/
93#endif
94
95