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: qmf_filterbank_coeff.h
21
22------------------------------------------------------------------------------
23 REVISION HISTORY
24
25
26------------------------------------------------------------------------------
27 INCLUDE DESCRIPTION
28
29 this file declares the scalefactor bands for all sampling rates
30
31------------------------------------------------------------------------------
32*/
33
34
35/*----------------------------------------------------------------------------
36; CONTINUE ONLY IF NOT ALREADY DEFINED
37----------------------------------------------------------------------------*/
38#ifndef QMF_FILTERBANK_COEFF_H
39#define QMF_FILTERBANK_COEFF_H
40
41/*----------------------------------------------------------------------------
42; INCLUDES
43----------------------------------------------------------------------------*/
44#include "pv_audio_type_defs.h"
45
46/*----------------------------------------------------------------------------
47; MACROS
48; Define module specific macros here
49----------------------------------------------------------------------------*/
50
51/*----------------------------------------------------------------------------
52; DEFINES
53; Include all pre-processor statements here.
54----------------------------------------------------------------------------*/
55
56/*----------------------------------------------------------------------------
57; EXTERNAL VARIABLES REFERENCES
58; Declare variables used in this module but defined elsewhere
59----------------------------------------------------------------------------*/
60
61#define Qfmt(x)   (Int16)(x*(((Int32)1<<15)*1.11111111111111111F) + (x>=0?0.5F:-0.5F))
62
63
64#define Qfmt30(x)   (Int32)(x*((Int32)1<<30) + (x>=0?0.5F:-0.5F))
65#define Qfmt27(x)   (Int32)(x*(((Int32)1<<27)) + (x>=0?0.5F:-0.5F))
66
67extern const Int32 sbrDecoderFilterbankCoefficients[155];
68
69
70extern const Int32 sbrDecoderFilterbankCoefficients_down_smpl[160];
71extern const Int32 sbrDecoderFilterbankCoefficients_an_filt_LC[155];
72
73#ifdef HQ_SBR
74extern const Int32 sbrDecoderFilterbankCoefficients_an_filt[155];
75#endif
76
77/*----------------------------------------------------------------------------
78; SIMPLE TYPEDEF'S
79----------------------------------------------------------------------------*/
80
81/*----------------------------------------------------------------------------
82; ENUMERATED TYPEDEF'S
83----------------------------------------------------------------------------*/
84
85/*----------------------------------------------------------------------------
86; STRUCTURES TYPEDEF'S
87----------------------------------------------------------------------------*/
88
89/*----------------------------------------------------------------------------
90; GLOBAL FUNCTION DEFINITIONS
91; Function Prototype declaration
92----------------------------------------------------------------------------*/
93
94/*----------------------------------------------------------------------------
95; END
96----------------------------------------------------------------------------*/
97#endif
98
99
100