lag_wind_tab.cpp revision b841f14f8e51f2365945281fbfa54ef6a1b1b5a6
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/**************************************************************************************** 19Portions 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) 26Permission to distribute, modify and use this file under the standard license 27terms listed above has been obtained from the copyright holder. 28****************************************************************************************/ 29/* 30------------------------------------------------------------------------------ 31 32 Pathname: .audio/gsm-amr/c/src/lag_wind_tab.c 33 34 Date: 01/29/2002 35 36------------------------------------------------------------------------------ 37 REVISION HISTORY 38 39 Description: Added #ifdef __cplusplus and removed "extern" from table 40 definition. Removed corresponding header file from Include 41 section. 42 43 Description: Put "extern" back. 44 45 Description: 46 47------------------------------------------------------------------------------ 48 INPUT AND OUTPUT DEFINITIONS 49 50 Inputs: 51 None 52 53 Local Stores/Buffers/Pointers Needed: 54 None 55 56 Global Stores/Buffers/Pointers Needed: 57 None 58 59 Outputs: 60 None 61 62 Pointers and Buffers Modified: 63 None 64 65 Local Stores Modified: 66 None 67 68 Global Stores Modified: 69 None 70 71------------------------------------------------------------------------------ 72 FUNCTION DESCRIPTION 73 74 File : lag_wind.tab 75 Purpose : Table of lag_window for autocorrelation. 76 77 *-----------------------------------------------------* 78 | Table of lag_window for autocorrelation. | 79 | | 80 | noise floor = 1.0001 = (0.9999 on r[1] ..r[10]) | 81 | Bandwitdh expansion = 60 Hz | 82 | | 83 | | 84 | lag_wind[0] = 1.00000000 (not stored) | 85 | lag_wind[1] = 0.99879038 | 86 | lag_wind[2] = 0.99546897 | 87 | lag_wind[3] = 0.98995781 | 88 | lag_wind[4] = 0.98229337 | 89 | lag_wind[5] = 0.97252619 | 90 | lag_wind[6] = 0.96072036 | 91 | lag_wind[7] = 0.94695264 | 92 | lag_wind[8] = 0.93131179 | 93 | lag_wind[9] = 0.91389757 | 94 | lag_wind[10]= 0.89481968 | 95 ------------------------------------------------------- 96 97------------------------------------------------------------------------------ 98 REQUIREMENTS 99 100 None 101 102------------------------------------------------------------------------------ 103 REFERENCES 104 105 None 106 107------------------------------------------------------------------------------ 108 PSEUDO-CODE 109 110 111------------------------------------------------------------------------------ 112 RESOURCES USED 113 When the code is written for a specific target processor the 114 the resources used should be documented below. 115 116 STACK USAGE: [stack count for this module] + [variable to represent 117 stack usage for each subroutine called] 118 119 where: [stack usage variable] = stack usage for [subroutine 120 name] (see [filename].ext) 121 122 DATA MEMORY USED: x words 123 124 PROGRAM MEMORY USED: x words 125 126 CLOCK CYCLES: [cycle count equation for this module] + [variable 127 used to represent cycle count for each subroutine 128 called] 129 130 where: [cycle count variable] = cycle count for [subroutine 131 name] (see [filename].ext) 132 133------------------------------------------------------------------------------ 134*/ 135 136 137/*---------------------------------------------------------------------------- 138; INCLUDES 139----------------------------------------------------------------------------*/ 140#include "typedef.h" 141 142/*--------------------------------------------------------------------------*/ 143#ifdef __cplusplus 144extern "C" 145{ 146#endif 147 148 /*---------------------------------------------------------------------------- 149 ; MACROS 150 ; Define module specific macros here 151 ----------------------------------------------------------------------------*/ 152 153 154 /*---------------------------------------------------------------------------- 155 ; DEFINES 156 ; Include all pre-processor statements here. Include conditional 157 ; compile variables also. 158 ----------------------------------------------------------------------------*/ 159 160 /*---------------------------------------------------------------------------- 161 ; LOCAL FUNCTION DEFINITIONS 162 ; Function Prototype declaration 163 ----------------------------------------------------------------------------*/ 164 165 166 /*---------------------------------------------------------------------------- 167 ; LOCAL STORE/BUFFER/POINTER DEFINITIONS 168 ; Variable declaration - defined here and used outside this module 169 ----------------------------------------------------------------------------*/ 170 extern const Word16 lag_h[10] = 171 { 172 32728, 173 32619, 174 32438, 175 32187, 176 31867, 177 31480, 178 31029, 179 30517, 180 29946, 181 29321 182 }; 183 184 extern const Word16 lag_l[10] = 185 { 186 11904, 187 17280, 188 30720, 189 25856, 190 24192, 191 28992, 192 24384, 193 7360, 194 19520, 195 14784 196 }; 197 198 /*---------------------------------------------------------------------------- 199 ; EXTERNAL FUNCTION REFERENCES 200 ; Declare functions defined elsewhere and referenced in this module 201 ----------------------------------------------------------------------------*/ 202 203 204 /*---------------------------------------------------------------------------- 205 ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES 206 ; Declare variables used in this module but defined elsewhere 207 ----------------------------------------------------------------------------*/ 208 209 210 /*--------------------------------------------------------------------------*/ 211#ifdef __cplusplus 212} 213#endif 214 215/*---------------------------------------------------------------------------- 216; FUNCTION CODE 217----------------------------------------------------------------------------*/ 218 219/*---------------------------------------------------------------------------- 220; Define all local variables 221----------------------------------------------------------------------------*/ 222 223 224/*---------------------------------------------------------------------------- 225; Function body here 226----------------------------------------------------------------------------*/ 227 228 229/*---------------------------------------------------------------------------- 230; Return nothing or data or data pointer 231----------------------------------------------------------------------------*/ 232 233