1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
22 ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23 Available from http://www.3gpp.org
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 ****************************************************************************************/
30 ------------------------------------------------------------------------------
32 Filename: lag_wind_tab.cpp
34 ------------------------------------------------------------------------------
35 INPUT AND OUTPUT DEFINITIONS
40 Local Stores/Buffers/Pointers Needed:
43 Global Stores/Buffers/Pointers Needed:
49 Pointers and Buffers Modified:
52 Local Stores Modified:
55 Global Stores Modified:
58 ------------------------------------------------------------------------------
62 Purpose : Table of lag_window for autocorrelation.
64 *-----------------------------------------------------*
65 | Table of lag_window for autocorrelation. |
67 | noise floor = 1.0001 = (0.9999 on r[1] ..r[10]) |
68 | Bandwitdh expansion = 60 Hz |
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 -------------------------------------------------------
84 ------------------------------------------------------------------------------
89 ------------------------------------------------------------------------------
94 ------------------------------------------------------------------------------
98 ------------------------------------------------------------------------------
102 /*----------------------------------------------------------------------------
104 ----------------------------------------------------------------------------*/
105 #include "lag_wind_tab.h"
107 /*--------------------------------------------------------------------------*/
113 /*----------------------------------------------------------------------------
115 ; Define module specific macros here
116 ----------------------------------------------------------------------------*/
119 /*----------------------------------------------------------------------------
121 ; Include all pre-processor statements here. Include conditional
122 ; compile variables also.
123 ----------------------------------------------------------------------------*/
125 /*----------------------------------------------------------------------------
126 ; LOCAL FUNCTION DEFINITIONS
127 ; Function Prototype declaration
128 ----------------------------------------------------------------------------*/
131 /*----------------------------------------------------------------------------
132 ; LOCAL STORE/BUFFER/POINTER DEFINITIONS
133 ; Variable declaration - defined here and used outside this module
134 ----------------------------------------------------------------------------*/
135 const Word16 lag_h[10] =
149 const Word16 lag_l[10] =
163 /*----------------------------------------------------------------------------
164 ; EXTERNAL FUNCTION REFERENCES
165 ; Declare functions defined elsewhere and referenced in this module
166 ----------------------------------------------------------------------------*/
169 /*----------------------------------------------------------------------------
170 ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES
171 ; Declare variables used in this module but defined elsewhere
172 ----------------------------------------------------------------------------*/
175 /*--------------------------------------------------------------------------*/
180 /*----------------------------------------------------------------------------
182 ----------------------------------------------------------------------------*/
184 /*----------------------------------------------------------------------------
185 ; Define all local variables
186 ----------------------------------------------------------------------------*/
189 /*----------------------------------------------------------------------------
191 ----------------------------------------------------------------------------*/
194 /*----------------------------------------------------------------------------
195 ; Return nothing or data or data pointer
196 ----------------------------------------------------------------------------*/