corrwght_tab.cpp revision 1ead790eadd0e09a118308caccc7ac37d36f43f3
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
33
34 Filename: /audio/gsm_amr/c/src/corrwght_tab.c
35
36     Date: 02/05/2002
37
38------------------------------------------------------------------------------
39 REVISION HISTORY
40
41 Description: Added #ifdef __cplusplus and removed "extern" from table
42              definition.
43
44 Description: Put "extern" back.
45
46 Description:
47
48------------------------------------------------------------------------------
49 MODULE DESCRIPTION
50
51 This file contains the tables for correlation weights
52
53------------------------------------------------------------------------------
54*/
55
56/*----------------------------------------------------------------------------
57; INCLUDES
58----------------------------------------------------------------------------*/
59#include "typedef.h"
60#include "p_ol_wgh.h"
61
62/*--------------------------------------------------------------------------*/
63#ifdef __cplusplus
64extern "C"
65{
66#endif
67
68    /*----------------------------------------------------------------------------
69    ; MACROS
70    ; [Define module specific macros here]
71    ----------------------------------------------------------------------------*/
72
73    /*----------------------------------------------------------------------------
74    ; DEFINES
75    ; [Include all pre-processor statements here. Include conditional
76    ; compile variables also.]
77    ----------------------------------------------------------------------------*/
78
79    /*----------------------------------------------------------------------------
80    ; LOCAL FUNCTION DEFINITIONS
81    ; [List function prototypes here]
82    ----------------------------------------------------------------------------*/
83
84    /*----------------------------------------------------------------------------
85    ; LOCAL VARIABLE DEFINITIONS
86    ; [Variable declaration - defined here and used outside this module]
87    ----------------------------------------------------------------------------*/
88    const Word16 corrweight[251] =
89    {
90        20473,  20506,  20539,  20572,  20605,  20644,  20677,
91        20716,  20749,  20788,  20821,  20860,  20893,  20932,
92        20972,  21011,  21050,  21089,  21129,  21168,  21207,
93        21247,  21286,  21332,  21371,  21417,  21456,  21502,
94        21542,  21588,  21633,  21679,  21725,  21771,  21817,
95        21863,  21909,  21961,  22007,  22059,  22105,  22158,
96        22210,  22263,  22315,  22367,  22420,  22472,  22531,
97        22584,  22643,  22702,  22761,  22820,  22879,  22938,
98        23003,  23062,  23128,  23193,  23252,  23324,  23390,
99        23455,  23527,  23600,  23665,  23744,  23816,  23888,
100        23967,  24045,  24124,  24202,  24288,  24366,  24451,
101        24537,  24628,  24714,  24805,  24904,  24995,  25094,
102        25192,  25297,  25395,  25500,  25611,  25723,  25834,
103        25952,  26070,  26188,  26313,  26444,  26575,  26706,
104        26844,  26988,  27132,  27283,  27440,  27597,  27761,
105        27931,  28108,  28285,  28475,  28665,  28869,  29078,
106        29295,  29524,  29760,  30002,  30258,  30527,  30808,
107        31457,  32767,  32767,  32767,  32767,  32767,
108        32767,  32767,  31457,  30808,  30527,  30258,  30002,
109        29760,  29524,  29295,  29078,  28869,  28665,  28475,
110        28285,  28108,  27931,  27761,  27597,  27440,  27283,
111        27132,  26988,  26844,  26706,  26575,  26444,  26313,
112        26188,  26070,  25952,  25834,  25723,  25611,  25500,
113        25395,  25297,  25192,  25094,  24995,  24904,  24805,
114        24714,  24628,  24537,  24451,  24366,  24288,  24202,
115        24124,  24045,  23967,  23888,  23816,  23744,  23665,
116        23600,  23527,  23455,  23390,  23324,  23252,  23193,
117        23128,  23062,  23003,  22938,  22879,  22820,  22761,
118        22702,  22643,  22584,  22531,  22472,  22420,  22367,
119        22315,  22263,  22210,  22158,  22105,  22059,  22007,
120        21961,  21909,  21863,  21817,  21771,  21725,  21679,
121        21633,  21588,  21542,  21502,  21456,  21417,  21371,
122        21332,  21286,  21247,  21207,  21168,  21129,  21089,
123        21050,  21011,  20972,  20932,  20893,  20860,  20821,
124        20788,  20749,  20716,  20677,  20644,  20605,  20572,
125        20539,  20506,  20473,  20434,  20401,  20369,  20336
126    };
127
128    /*--------------------------------------------------------------------------*/
129#ifdef __cplusplus
130}
131#endif
132
133/*
134------------------------------------------------------------------------------
135 FUNCTION NAME:
136------------------------------------------------------------------------------
137 INPUT AND OUTPUT DEFINITIONS
138
139 Inputs:
140    None
141
142 Outputs:
143    None
144
145 Returns:
146    None
147
148 Global Variables Used:
149    None
150
151 Local Variables Needed:
152    None
153
154------------------------------------------------------------------------------
155 FUNCTION DESCRIPTION
156
157 None
158
159------------------------------------------------------------------------------
160 REQUIREMENTS
161
162 None
163
164------------------------------------------------------------------------------
165 REFERENCES
166
167 [1] corrwght.tab, UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001
168
169------------------------------------------------------------------------------
170 PSEUDO-CODE
171
172
173------------------------------------------------------------------------------
174 RESOURCES USED [optional]
175
176 When the code is written for a specific target processor the
177 the resources used should be documented below.
178
179 HEAP MEMORY USED: x bytes
180
181 STACK MEMORY USED: x bytes
182
183 CLOCK CYCLES: (cycle count equation for this function) + (variable
184                used to represent cycle count for each subroutine
185                called)
186     where: (cycle count variable) = cycle count for [subroutine
187                                     name]
188
189------------------------------------------------------------------------------
190 CAUTION [optional]
191 [State any special notes, constraints or cautions for users of this function]
192
193------------------------------------------------------------------------------
194*/
195
196/*----------------------------------------------------------------------------
197; FUNCTION CODE
198----------------------------------------------------------------------------*/
199
200