Initialize Tizen 2.3
[external/opencore-amr.git] / opencore / codecs_v2 / audio / gsm_amr / amr_nb / enc / src / lag_wind_tab.cpp
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 Portions of this file are derived from the following 3GPP standard:
20
21     3GPP TS 26.073
22     ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23     Available from http://www.3gpp.org
24
25 (C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC)
26 Permission to distribute, modify and use this file under the standard license
27 terms listed above has been obtained from the copyright holder.
28 ****************************************************************************************/
29 /*
30 ------------------------------------------------------------------------------
31
32  Filename: lag_wind_tab.cpp
33
34 ------------------------------------------------------------------------------
35  INPUT AND OUTPUT DEFINITIONS
36
37  Inputs:
38     None
39
40  Local Stores/Buffers/Pointers Needed:
41     None
42
43  Global Stores/Buffers/Pointers Needed:
44     None
45
46  Outputs:
47     None
48
49  Pointers and Buffers Modified:
50     None
51
52  Local Stores Modified:
53     None
54
55  Global Stores Modified:
56     None
57
58 ------------------------------------------------------------------------------
59  FUNCTION DESCRIPTION
60
61       File             : lag_wind.tab
62       Purpose          : Table of lag_window for autocorrelation.
63
64  *-----------------------------------------------------*
65  | Table of lag_window for autocorrelation.            |
66  |                                                     |
67  | noise floor = 1.0001   = (0.9999  on r[1] ..r[10])  |
68  | Bandwitdh expansion = 60 Hz                         |
69  |                                                     |
70  |                                                     |
71  | lag_wind[0] =  1.00000000    (not stored)           |
72  | lag_wind[1] =  0.99879038                           |
73  | lag_wind[2] =  0.99546897                           |
74  | lag_wind[3] =  0.98995781                           |
75  | lag_wind[4] =  0.98229337                           |
76  | lag_wind[5] =  0.97252619                           |
77  | lag_wind[6] =  0.96072036                           |
78  | lag_wind[7] =  0.94695264                           |
79  | lag_wind[8] =  0.93131179                           |
80  | lag_wind[9] =  0.91389757                           |
81  | lag_wind[10]=  0.89481968                           |
82  -------------------------------------------------------
83
84 ------------------------------------------------------------------------------
85  REQUIREMENTS
86
87  None
88
89 ------------------------------------------------------------------------------
90  REFERENCES
91
92  None
93
94 ------------------------------------------------------------------------------
95  PSEUDO-CODE
96
97
98 ------------------------------------------------------------------------------
99 */
100
101
102 /*----------------------------------------------------------------------------
103 ; INCLUDES
104 ----------------------------------------------------------------------------*/
105 #include "lag_wind_tab.h"
106
107 /*--------------------------------------------------------------------------*/
108 #ifdef __cplusplus
109 extern "C"
110 {
111 #endif
112
113     /*----------------------------------------------------------------------------
114     ; MACROS
115     ; Define module specific macros here
116     ----------------------------------------------------------------------------*/
117
118
119     /*----------------------------------------------------------------------------
120     ; DEFINES
121     ; Include all pre-processor statements here. Include conditional
122     ; compile variables also.
123     ----------------------------------------------------------------------------*/
124
125     /*----------------------------------------------------------------------------
126     ; LOCAL FUNCTION DEFINITIONS
127     ; Function Prototype declaration
128     ----------------------------------------------------------------------------*/
129
130
131     /*----------------------------------------------------------------------------
132     ; LOCAL STORE/BUFFER/POINTER DEFINITIONS
133     ; Variable declaration - defined here and used outside this module
134     ----------------------------------------------------------------------------*/
135     const Word16 lag_h[10] =
136     {
137         32728,
138         32619,
139         32438,
140         32187,
141         31867,
142         31480,
143         31029,
144         30517,
145         29946,
146         29321
147     };
148
149     const Word16 lag_l[10] =
150     {
151         11904,
152         17280,
153         30720,
154         25856,
155         24192,
156         28992,
157         24384,
158         7360,
159         19520,
160         14784
161     };
162
163     /*----------------------------------------------------------------------------
164     ; EXTERNAL FUNCTION REFERENCES
165     ; Declare functions defined elsewhere and referenced in this module
166     ----------------------------------------------------------------------------*/
167
168
169     /*----------------------------------------------------------------------------
170     ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES
171     ; Declare variables used in this module but defined elsewhere
172     ----------------------------------------------------------------------------*/
173
174
175     /*--------------------------------------------------------------------------*/
176 #ifdef __cplusplus
177 }
178 #endif
179
180 /*----------------------------------------------------------------------------
181 ; FUNCTION CODE
182 ----------------------------------------------------------------------------*/
183
184 /*----------------------------------------------------------------------------
185 ; Define all local variables
186 ----------------------------------------------------------------------------*/
187
188
189 /*----------------------------------------------------------------------------
190 ; Function body here
191 ----------------------------------------------------------------------------*/
192
193
194 /*----------------------------------------------------------------------------
195 ; Return nothing or data or data pointer
196 ----------------------------------------------------------------------------*/
197