• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  Pathname: .audio/gsm-amr/c/src/lsp_tab.c
32 
33 ------------------------------------------------------------------------------
34  REVISION HISTORY
35 
36  Description: Added #ifdef __cplusplus and removed "extern" from table
37               definition. Removed corresponding header file from Include
38               section.
39 
40  Description: Put "extern" back.
41 
42  Who:                       Date:
43  Description:
44 
45 ------------------------------------------------------------------------------
46  INPUT AND OUTPUT DEFINITIONS
47 
48  Inputs:
49     None
50 
51  Local Stores/Buffers/Pointers Needed:
52     None
53 
54  Global Stores/Buffers/Pointers Needed:
55     None
56 
57  Outputs:
58     None
59 
60  Pointers and Buffers Modified:
61     None
62 
63  Local Stores Modified:
64     None
65 
66  Global Stores Modified:
67     None
68 
69 ------------------------------------------------------------------------------
70  FUNCTION DESCRIPTION
71 
72    File             : lsp.tab
73    Purpose          : Table for lsp init
74 
75 ------------------------------------------------------------------------------
76  REQUIREMENTS
77 
78  None
79 
80 ------------------------------------------------------------------------------
81  REFERENCES
82 
83  None
84 
85 ------------------------------------------------------------------------------
86  PSEUDO-CODE
87 
88 
89 ------------------------------------------------------------------------------
90  RESOURCES USED
91    When the code is written for a specific target processor the
92      the resources used should be documented below.
93 
94  STACK USAGE: [stack count for this module] + [variable to represent
95           stack usage for each subroutine called]
96 
97      where: [stack usage variable] = stack usage for [subroutine
98          name] (see [filename].ext)
99 
100  DATA MEMORY USED: x words
101 
102  PROGRAM MEMORY USED: x words
103 
104  CLOCK CYCLES: [cycle count equation for this module] + [variable
105            used to represent cycle count for each subroutine
106            called]
107 
108      where: [cycle count variable] = cycle count for [subroutine
109         name] (see [filename].ext)
110 
111 ------------------------------------------------------------------------------
112 */
113 
114 
115 /*----------------------------------------------------------------------------
116 ; INCLUDES
117 ----------------------------------------------------------------------------*/
118 #include    "typedef.h"
119 #include    "cnst.h"
120 #include    "lsp_tab.h"
121 
122 /*--------------------------------------------------------------------------*/
123 #ifdef __cplusplus
124 extern "C"
125 {
126 #endif
127 
128     /*----------------------------------------------------------------------------
129     ; MACROS
130     ; Define module specific macros here
131     ----------------------------------------------------------------------------*/
132 
133 
134     /*----------------------------------------------------------------------------
135     ; DEFINES
136     ; Include all pre-processor statements here. Include conditional
137     ; compile variables also.
138     ----------------------------------------------------------------------------*/
139 
140     /*----------------------------------------------------------------------------
141     ; LOCAL FUNCTION DEFINITIONS
142     ; Function Prototype declaration
143     ----------------------------------------------------------------------------*/
144 
145 
146     /*----------------------------------------------------------------------------
147     ; LOCAL STORE/BUFFER/POINTER DEFINITIONS
148     ; Variable declaration - defined here and used outside this module
149     ----------------------------------------------------------------------------*/
150     const Word16 lsp_init_data[M] = {30000, 26000, 21000, 15000, 8000,
151         0, -8000, -15000, -21000, -26000
152     };
153 
154     /*----------------------------------------------------------------------------
155     ; EXTERNAL FUNCTION REFERENCES
156     ; Declare functions defined elsewhere and referenced in this module
157     ----------------------------------------------------------------------------*/
158 
159 
160     /*----------------------------------------------------------------------------
161     ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES
162     ; Declare variables used in this module but defined elsewhere
163     ----------------------------------------------------------------------------*/
164 
165 
166     /*--------------------------------------------------------------------------*/
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 /*----------------------------------------------------------------------------
172 ; FUNCTION CODE
173 ----------------------------------------------------------------------------*/
174 
175 /*----------------------------------------------------------------------------
176 ; Define all local variables
177 ----------------------------------------------------------------------------*/
178 
179 
180 /*----------------------------------------------------------------------------
181 ; Function body here
182 ----------------------------------------------------------------------------*/
183 
184 
185 /*----------------------------------------------------------------------------
186 ; Return nothing or data or data pointer
187 ----------------------------------------------------------------------------*/
188 
189