FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/dhf_tables.c @ 354:e4ce7972737f
libtwamr: add DHF tables
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 05 May 2024 21:34:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
353:b252d74da6c6 | 354:e4ce7972737f |
---|---|
1 /* | |
2 * This module holds const data tables of all supported DHFs: | |
3 * 8 per-mode DHFs for AMR plus the different DHF for GSM-EFR. | |
4 */ | |
5 | |
6 #include "tw_amr.h" | |
7 | |
8 const int16_t amr_dhf_mr475[AMR_MAX_PRM] = | |
9 { | |
10 0x00F8, | |
11 0x009D, | |
12 0x001C, | |
13 0x0066, | |
14 0x0000, | |
15 0x0003, | |
16 0x0028, | |
17 0x000F, | |
18 0x0038, | |
19 0x0001, | |
20 0x000F, | |
21 0x0031, | |
22 0x0002, | |
23 0x0008, | |
24 0x000F, | |
25 0x0026, | |
26 0x0003 | |
27 }; | |
28 | |
29 const int16_t amr_dhf_mr515[AMR_MAX_PRM] = | |
30 { | |
31 0x00F8, | |
32 0x009D, | |
33 0x001C, | |
34 0x0066, | |
35 0x0000, | |
36 0x0003, | |
37 0x0037, | |
38 0x000F, | |
39 0x0000, | |
40 0x0003, | |
41 0x0005, | |
42 0x000F, | |
43 0x0037, | |
44 0x0003, | |
45 0x0037, | |
46 0x000F, | |
47 0x0023, | |
48 0x0003, | |
49 0x001F | |
50 }; | |
51 | |
52 const int16_t amr_dhf_mr59[AMR_MAX_PRM] = | |
53 { | |
54 0x00F8, | |
55 0x00E3, | |
56 0x002F, | |
57 0x00BD, | |
58 0x0000, | |
59 0x0003, | |
60 0x0037, | |
61 0x000F, | |
62 0x0001, | |
63 0x0003, | |
64 0x000F, | |
65 0x0060, | |
66 0x00F9, | |
67 0x0003, | |
68 0x0037, | |
69 0x000F, | |
70 0x0000, | |
71 0x0003, | |
72 0x0037 | |
73 }; | |
74 | |
75 const int16_t amr_dhf_mr67[AMR_MAX_PRM] = | |
76 { | |
77 0x00F8, | |
78 0x00E3, | |
79 0x002F, | |
80 0x00BD, | |
81 0x0002, | |
82 0x0007, | |
83 0x0000, | |
84 0x000F, | |
85 0x0098, | |
86 0x0007, | |
87 0x0061, | |
88 0x0060, | |
89 0x05C5, | |
90 0x0007, | |
91 0x0000, | |
92 0x000F, | |
93 0x0318, | |
94 0x0007, | |
95 0x0000 | |
96 }; | |
97 | |
98 const int16_t amr_dhf_mr74[AMR_MAX_PRM] = | |
99 { | |
100 0x00F8, | |
101 0x00E3, | |
102 0x002F, | |
103 0x00BD, | |
104 0x0006, | |
105 0x000F, | |
106 0x0000, | |
107 0x001B, | |
108 0x0208, | |
109 0x000F, | |
110 0x0062, | |
111 0x0060, | |
112 0x1BA6, | |
113 0x000F, | |
114 0x0000, | |
115 0x001B, | |
116 0x0006, | |
117 0x000F, | |
118 0x0000 | |
119 }; | |
120 | |
121 const int16_t amr_dhf_mr795[AMR_MAX_PRM] = | |
122 { | |
123 0x00C2, | |
124 0x00E3, | |
125 0x002F, | |
126 0x00BD, | |
127 0x0006, | |
128 0x000F, | |
129 0x000A, | |
130 0x0000, | |
131 0x0039, | |
132 0x1C08, | |
133 0x0007, | |
134 0x000A, | |
135 0x000B, | |
136 0x0063, | |
137 0x11A6, | |
138 0x000F, | |
139 0x0001, | |
140 0x0000, | |
141 0x0039, | |
142 0x09A0, | |
143 0x000F, | |
144 0x0002, | |
145 0x0001 | |
146 }; | |
147 | |
148 const int16_t amr_dhf_mr102[AMR_MAX_PRM] = | |
149 { | |
150 0x00F8, | |
151 0x00E3, | |
152 0x002F, | |
153 0x0045, | |
154 0x0000, | |
155 0x0000, | |
156 0x0000, | |
157 0x0000, | |
158 0x0000, | |
159 0x0000, | |
160 0x0000, | |
161 0x0000, | |
162 0x001B, | |
163 0x0000, | |
164 0x0001, | |
165 0x0000, | |
166 0x0001, | |
167 0x0326, | |
168 0x00CE, | |
169 0x007E, | |
170 0x0051, | |
171 0x0062, | |
172 0x0000, | |
173 0x0000, | |
174 0x0000, | |
175 0x0000, | |
176 0x015A, | |
177 0x0359, | |
178 0x0076, | |
179 0x0000, | |
180 0x001B, | |
181 0x0000, | |
182 0x0000, | |
183 0x0000, | |
184 0x0000, | |
185 0x017C, | |
186 0x0215, | |
187 0x0038, | |
188 0x0030 | |
189 }; | |
190 | |
191 const int16_t amr_dhf_mr122[AMR_MAX_PRM] = | |
192 { | |
193 0x0004, | |
194 0x002A, | |
195 0x00DB, | |
196 0x0096, | |
197 0x002A, | |
198 0x0156, | |
199 0x000B, | |
200 0x0000, | |
201 0x0000, | |
202 0x0000, | |
203 0x0000, | |
204 0x0000, | |
205 0x0000, | |
206 0x0000, | |
207 0x0000, | |
208 0x0000, | |
209 0x0000, | |
210 0x0000, | |
211 0x0036, | |
212 0x000B, | |
213 0x0000, | |
214 0x000F, | |
215 0x000E, | |
216 0x000C, | |
217 0x000D, | |
218 0x0000, | |
219 0x0001, | |
220 0x0005, | |
221 0x0007, | |
222 0x0001, | |
223 0x0008, | |
224 0x0024, | |
225 0x0000, | |
226 0x0001, | |
227 0x0000, | |
228 0x0005, | |
229 0x0006, | |
230 0x0001, | |
231 0x0002, | |
232 0x0004, | |
233 0x0007, | |
234 0x0004, | |
235 0x0002, | |
236 0x0003, | |
237 0x0036, | |
238 0x000B, | |
239 0x0000, | |
240 0x0002, | |
241 0x0004, | |
242 0x0000, | |
243 0x0003, | |
244 0x0006, | |
245 0x0001, | |
246 0x0007, | |
247 0x0006, | |
248 0x0005, | |
249 0x0000 | |
250 }; | |
251 | |
252 const int16_t amr_dhf_gsmefr[AMR_MAX_PRM] = | |
253 { | |
254 0x0004, /* LPC 1 */ | |
255 0x002f, /* LPC 2 */ | |
256 0x00b4, /* LPC 3 */ | |
257 0x0090, /* LPC 4 */ | |
258 0x003e, /* LPC 5 */ | |
259 | |
260 0x0156, /* LTP-LAG 1 */ | |
261 0x000b, /* LTP-GAIN 1 */ | |
262 0x0000, /* PULSE 1_1 */ | |
263 0x0001, /* PULSE 1_2 */ | |
264 0x000f, /* PULSE 1_3 */ | |
265 0x0001, /* PULSE 1_4 */ | |
266 0x000d, /* PULSE 1_5 */ | |
267 0x0000, /* PULSE 1_6 */ | |
268 0x0003, /* PULSE 1_7 */ | |
269 0x0000, /* PULSE 1_8 */ | |
270 0x0003, /* PULSE 1_9 */ | |
271 0x0000, /* PULSE 1_10 */ | |
272 0x0003, /* FCB-GAIN 1 */ | |
273 | |
274 0x0036, /* LTP-LAG 2 */ | |
275 0x0001, /* LTP-GAIN 2 */ | |
276 0x0008, /* PULSE 2_1 */ | |
277 0x0008, /* PULSE 2_2 */ | |
278 0x0005, /* PULSE 2_3 */ | |
279 0x0008, /* PULSE 2_4 */ | |
280 0x0001, /* PULSE 2_5 */ | |
281 0x0000, /* PULSE 2_6 */ | |
282 0x0000, /* PULSE 2_7 */ | |
283 0x0001, /* PULSE 2_8 */ | |
284 0x0001, /* PULSE 2_9 */ | |
285 0x0000, /* PULSE 2_10 */ | |
286 0x0000, /* FCB-GAIN 2 */ | |
287 | |
288 0x0156, /* LTP-LAG 3 */ | |
289 0x0000, /* LTP-GAIN 3 */ | |
290 0x0000, /* PULSE 3_1 */ | |
291 0x0000, /* PULSE 3_2 */ | |
292 0x0000, /* PULSE 3_3 */ | |
293 0x0000, /* PULSE 3_4 */ | |
294 0x0000, /* PULSE 3_5 */ | |
295 0x0000, /* PULSE 3_6 */ | |
296 0x0000, /* PULSE 3_7 */ | |
297 0x0000, /* PULSE 3_8 */ | |
298 0x0000, /* PULSE 3_9 */ | |
299 0x0000, /* PULSE 3_10 */ | |
300 0x0000, /* FCB-GAIN 3 */ | |
301 | |
302 0x0036, /* LTP-LAG 4 */ | |
303 0x000b, /* LTP-GAIN 4 */ | |
304 0x0000, /* PULSE 4_1 */ | |
305 0x0000, /* PULSE 4_2 */ | |
306 0x0000, /* PULSE 4_3 */ | |
307 0x0000, /* PULSE 4_4 */ | |
308 0x0000, /* PULSE 4_5 */ | |
309 0x0000, /* PULSE 4_6 */ | |
310 0x0000, /* PULSE 4_7 */ | |
311 0x0000, /* PULSE 4_8 */ | |
312 0x0000, /* PULSE 4_9 */ | |
313 0x0000, /* PULSE 4_10 */ | |
314 0x0000 /* FCB-GAIN 4 */ | |
315 }; |