cut over to using new VP3 DSP functions and remove the old ones; bring
[libav.git] / libavcodec / vp3data.h
CommitLineData
d86053a4
MM
1#ifndef VP3DATA_H
2#define VP3DATA_H
3
67335dbc
MM
4/* these coefficients dequantize intraframe Y plane coefficients
5 * (note: same as JPEG) */
d86053a4
MM
6static int16_t vp31_intra_y_dequant[64] =
7{ 16, 11, 10, 16, 24, 40, 51, 61,
8 12, 12, 14, 19, 26, 58, 60, 55,
9 14, 13, 16, 24, 40, 57, 69, 56,
10 14, 17, 22, 29, 51, 87, 80, 62,
11 18, 22, 37, 58, 68, 109, 103, 77,
12 24, 35, 55, 64, 81, 104, 113, 92,
13 49, 64, 78, 87, 103, 121, 120, 101,
14 72, 92, 95, 98, 112, 100, 103, 99
15};
16
67335dbc
MM
17/* these coefficients dequantize intraframe C plane coefficients
18 * (note: same as JPEG) */
d86053a4
MM
19static int16_t vp31_intra_c_dequant[64] =
20{ 17, 18, 24, 47, 99, 99, 99, 99,
21 18, 21, 26, 66, 99, 99, 99, 99,
22 24, 26, 56, 99, 99, 99, 99, 99,
23 47, 66, 99, 99, 99, 99, 99, 99,
24 99, 99, 99, 99, 99, 99, 99, 99,
25 99, 99, 99, 99, 99, 99, 99, 99,
26 99, 99, 99, 99, 99, 99, 99, 99,
27 99, 99, 99, 99, 99, 99, 99, 99
28};
29
30/* these coefficients dequantize interframe coefficients (all planes) */
31static int16_t vp31_inter_dequant[64] =
32{ 16, 16, 16, 20, 24, 28, 32, 40,
33 16, 16, 20, 24, 28, 32, 40, 48,
34 16, 20, 24, 28, 32, 40, 48, 64,
35 20, 24, 28, 32, 40, 48, 64, 64,
36 24, 28, 32, 40, 48, 64, 64, 64,
37 28, 32, 40, 48, 64, 64, 64, 96,
38 32, 40, 48, 64, 64, 64, 96, 128,
39 40, 48, 64, 64, 64, 96, 128, 128
40};
41
42static int16_t vp31_dc_scale_factor[64] =
43{ 220, 200, 190, 180, 170, 170, 160, 160,
44 150, 150, 140, 140, 130, 130, 120, 120,
45 110, 110, 100, 100, 90, 90, 90, 80,
46 80, 80, 70, 70, 70, 60, 60, 60,
47 60, 50, 50, 50, 50, 40, 40, 40,
48 40, 40, 30, 30, 30, 30, 30, 30,
49 30, 20, 20, 20, 20, 20, 20, 20,
50 20, 10, 10, 10, 10, 10, 10, 10
51};
52
67335dbc 53static uint32_t vp31_ac_scale_factor[64] =
d86053a4
MM
54{ 500, 450, 400, 370, 340, 310, 285, 265,
55 245, 225, 210, 195, 185, 180, 170, 160,
56 150, 145, 135, 130, 125, 115, 110, 107,
57 100, 96, 93, 89, 85, 82, 75, 74,
58 70, 68, 64, 60, 57, 56, 52, 50,
59 49, 45, 44, 43, 40, 38, 37, 35,
60 33, 32, 30, 29, 28, 25, 24, 22,
61 21, 19, 18, 17, 15, 13, 12, 10
62};
63
64/* table used to convert natural order <-> zigzag order */
463d086b 65static const int dezigzag_index[64] =
d86053a4
MM
66{ 0, 1, 8, 16, 9, 2, 3, 10,
67 17, 24, 32, 25, 18, 11, 4, 5,
68 12, 19, 26, 33, 40, 48, 41, 34,
69 27, 20, 13, 6, 7, 14, 21, 28,
70 35, 42, 49, 56, 57, 50, 43, 36,
71 29, 22, 15, 23, 30, 37, 44, 51,
72 58, 59, 52, 45, 38, 31, 39, 46,
73 53, 60, 61, 54, 47, 55, 62, 63
74};
75
463d086b
MM
76/* inverse of dezigzag index */
77static int zigzag_index[64];
d86053a4
MM
78
79static const uint16_t dc_bias[16][32][2] = {
80 { /* DC bias table 0 */
81 { 0x2D, 6 },
82 { 0x26, 7 },
83 { 0x166, 9 },
84 { 0x4E, 8 },
85 { 0x2CE, 10 },
86 { 0x59E, 11 },
87 { 0x27D, 11 },
88 { 0x8, 5 },
89 { 0x4F9, 12 },
90 { 0xF, 4 },
91 { 0xE, 4 },
92 { 0x1B, 5 },
93 { 0x6, 4 },
94 { 0x8, 4 },
95 { 0x5, 4 },
96 { 0x1A, 5 },
97 { 0x15, 5 },
98 { 0x7, 4 },
99 { 0xC, 4 },
100 { 0x1, 3 },
101 { 0x0, 3 },
102 { 0x9, 4 },
103 { 0x17, 5 },
104 { 0x29, 6 },
105 { 0x28, 6 },
106 { 0xB2, 8 },
107 { 0x4F8, 12 },
108 { 0x59F, 11 },
109 { 0x9E, 9 },
110 { 0x13F, 10 },
111 { 0x12, 6 },
112 { 0x58, 7 }
113 },
114 { /* DC bias table 1 */
115 { 0x10, 5 },
116 { 0x47, 7 },
117 { 0x1FF, 9 },
118 { 0x8C, 8 },
119 { 0x3FC, 10 },
120 { 0x46A, 11 },
121 { 0x469, 11 },
122 { 0x22, 6 },
123 { 0x11A1, 13 },
124 { 0xE, 4 },
125 { 0xD, 4 },
126 { 0x4, 4 },
127 { 0x5, 4 },
128 { 0x9, 4 },
129 { 0x6, 4 },
130 { 0x1E, 5 },
131 { 0x16, 5 },
132 { 0x7, 4 },
133 { 0xC, 4 },
134 { 0x1, 3 },
135 { 0x0, 3 },
136 { 0xA, 4 },
137 { 0x17, 5 },
138 { 0x7D, 7 },
139 { 0x7E, 7 },
140 { 0x11B, 9 },
141 { 0x8D1, 12 },
142 { 0x3FD, 10 },
143 { 0x46B, 11 },
144 { 0x11A0, 13 },
145 { 0x7C, 7 },
146 { 0xFE, 8 }
147 },
148 { /* DC bias table 2 */
149 { 0x16, 5 },
150 { 0x20, 6 },
151 { 0x86, 8 },
152 { 0x87, 8 },
153 { 0x367, 10 },
154 { 0x6CC, 11 },
155 { 0x6CB, 11 },
156 { 0x6E, 7 },
157 { 0x366D, 14 },
158 { 0xF, 4 },
159 { 0xE, 4 },
160 { 0x4, 4 },
161 { 0x5, 4 },
162 { 0xA, 4 },
163 { 0x6, 4 },
164 { 0x1A, 5 },
165 { 0x11, 5 },
166 { 0x7, 4 },
167 { 0xC, 4 },
168 { 0x1, 3 },
169 { 0x0, 3 },
170 { 0x9, 4 },
171 { 0x17, 5 },
172 { 0x6F, 7 },
173 { 0x6D, 7 },
174 { 0x364, 10 },
175 { 0xD9A, 12 },
176 { 0x6CA, 11 },
177 { 0x1B37, 13 },
178 { 0x366C, 14 },
179 { 0x42, 7 },
180 { 0xD8, 8 }
181 },
182 { /* DC bias table 3 */
183 { 0x0, 4 },
184 { 0x2D, 6 },
185 { 0xF7, 8 },
186 { 0x58, 7 },
187 { 0x167, 9 },
188 { 0x2CB, 10 },
189 { 0x2CA, 10 },
190 { 0xE, 6 },
191 { 0x1661, 13 },
192 { 0x3, 3 },
193 { 0x2, 3 },
194 { 0x8, 4 },
195 { 0x9, 4 },
196 { 0xD, 4 },
197 { 0x2, 4 },
198 { 0x1F, 5 },
199 { 0x17, 5 },
200 { 0x1, 4 },
201 { 0xC, 4 },
202 { 0xE, 4 },
203 { 0xA, 4 },
204 { 0x6, 5 },
205 { 0x78, 7 },
206 { 0xF, 6 },
207 { 0x7A, 7 },
208 { 0x164, 9 },
209 { 0x599, 11 },
210 { 0x2CD, 10 },
211 { 0xB31, 12 },
212 { 0x1660, 13 },
213 { 0x79, 7 },
214 { 0xF6, 8 }
215 },
216 { /* DC bias table 4 */
217 { 0x3, 4 },
218 { 0x3C, 6 },
219 { 0xF, 7 },
220 { 0x7A, 7 },
221 { 0x1D, 8 },
222 { 0x20, 9 },
223 { 0x72, 10 },
224 { 0x6, 6 },
225 { 0x399, 13 },
226 { 0x4, 3 },
227 { 0x5, 3 },
228 { 0x5, 4 },
229 { 0x6, 4 },
230 { 0xE, 4 },
231 { 0x4, 4 },
232 { 0x0, 4 },
233 { 0x19, 5 },
234 { 0x2, 4 },
235 { 0xD, 4 },
236 { 0x7, 4 },
237 { 0x1F, 5 },
238 { 0x30, 6 },
239 { 0x11, 8 },
240 { 0x31, 6 },
241 { 0x5, 6 },
242 { 0x21, 9 },
243 { 0xE7, 11 },
244 { 0x38, 9 },
245 { 0x1CD, 12 },
246 { 0x398, 13 },
247 { 0x7B, 7 },
248 { 0x9, 7 }
249 },
250 { /* DC bias table 5 */
251 { 0x9, 4 },
252 { 0x2, 5 },
253 { 0x74, 7 },
254 { 0x7, 6 },
255 { 0xEC, 8 },
256 { 0xD1, 9 },
257 { 0x1A6, 10 },
258 { 0x6, 6 },
259 { 0xD21, 13 },
260 { 0x5, 3 },
261 { 0x6, 3 },
262 { 0x8, 4 },
263 { 0x7, 4 },
264 { 0xF, 4 },
265 { 0x4, 4 },
266 { 0x0, 4 },
267 { 0x1C, 5 },
268 { 0x2, 4 },
269 { 0x5, 4 },
270 { 0x3, 4 },
271 { 0xC, 5 },
272 { 0x35, 7 },
273 { 0x1A7, 10 },
274 { 0x1B, 6 },
275 { 0x77, 7 },
276 { 0x1A5, 10 },
277 { 0x349, 11 },
278 { 0xD0, 9 },
279 { 0x691, 12 },
280 { 0xD20, 13 },
281 { 0x75, 7 },
282 { 0xED, 8 }
283 },
284 { /* DC bias table 6 */
285 { 0xA, 4 },
286 { 0xC, 5 },
287 { 0x12, 6 },
288 { 0x1B, 6 },
289 { 0xB7, 8 },
290 { 0x16C, 9 },
291 { 0x99, 9 },
292 { 0x5A, 7 },
293 { 0x16D8, 13 },
294 { 0x7, 3 },
295 { 0x6, 3 },
296 { 0x9, 4 },
297 { 0x8, 4 },
298 { 0x0, 3 },
299 { 0x5, 4 },
300 { 0x17, 5 },
301 { 0xE, 5 },
302 { 0x2, 4 },
303 { 0x3, 4 },
304 { 0xF, 5 },
305 { 0x1A, 6 },
306 { 0x4D, 8 },
307 { 0x2DB3, 14 },
308 { 0x2C, 6 },
309 { 0x11, 6 },
310 { 0x2DA, 10 },
311 { 0x5B7, 11 },
312 { 0x98, 9 },
313 { 0xB6D, 12 },
314 { 0x2DB2, 14 },
315 { 0x10, 6 },
316 { 0x27, 7 }
317 },
318 { /* DC bias table 7 */
319 { 0xD, 4 },
320 { 0xF, 5 },
321 { 0x1D, 6 },
322 { 0x8, 5 },
323 { 0x51, 7 },
324 { 0x56, 8 },
325 { 0xAF, 9 },
326 { 0x2A, 7 },
327 { 0x148A, 13 },
328 { 0x7, 3 },
329 { 0x0, 2 },
330 { 0x8, 4 },
331 { 0x9, 4 },
332 { 0xC, 4 },
333 { 0x6, 4 },
334 { 0x17, 5 },
335 { 0xB, 5 },
336 { 0x16, 5 },
337 { 0x15, 5 },
338 { 0x9, 5 },
339 { 0x50, 7 },
340 { 0xAE, 9 },
341 { 0x2917, 14 },
342 { 0x1C, 6 },
343 { 0x14, 6 },
344 { 0x290, 10 },
345 { 0x523, 11 },
346 { 0x149, 9 },
347 { 0xA44, 12 },
348 { 0x2916, 14 },
349 { 0x53, 7 },
350 { 0xA5, 8 }
351 },
352 { /* DC bias table 8 */
353 { 0x1, 4 },
354 { 0x1D, 6 },
355 { 0xF5, 8 },
356 { 0xF4, 8 },
357 { 0x24D, 10 },
358 { 0x499, 11 },
359 { 0x498, 11 },
360 { 0x1, 5 },
361 { 0x21, 6 },
362 { 0x6, 3 },
363 { 0x5, 3 },
364 { 0x6, 4 },
365 { 0x5, 4 },
366 { 0x2, 4 },
367 { 0x7, 5 },
368 { 0x25, 6 },
369 { 0x7B, 7 },
370 { 0x1C, 6 },
371 { 0x20, 6 },
372 { 0xD, 6 },
373 { 0x48, 7 },
374 { 0x92, 8 },
375 { 0x127, 9 },
376 { 0xE, 4 },
377 { 0x4, 4 },
378 { 0x11, 5 },
379 { 0xC, 6 },
380 { 0x3C, 6 },
381 { 0xF, 5 },
382 { 0x0, 5 },
383 { 0x1F, 5 },
384 { 0x13, 5 }
385 },
386 { /* DC bias table 9 */
387 { 0x5, 4 },
388 { 0x3C, 6 },
389 { 0x40, 7 },
390 { 0xD, 7 },
391 { 0x31, 9 },
392 { 0x61, 10 },
393 { 0x60, 10 },
394 { 0x2, 5 },
395 { 0xF5, 8 },
396 { 0x6, 3 },
397 { 0x5, 3 },
398 { 0x7, 4 },
399 { 0x6, 4 },
400 { 0x2, 4 },
401 { 0x9, 5 },
402 { 0x25, 6 },
403 { 0x7, 6 },
404 { 0x21, 6 },
405 { 0x24, 6 },
406 { 0x10, 6 },
407 { 0x41, 7 },
408 { 0xF4, 8 },
409 { 0x19, 8 },
410 { 0xE, 4 },
411 { 0x3, 4 },
412 { 0x11, 5 },
413 { 0x11, 6 },
414 { 0x3F, 6 },
415 { 0x3E, 6 },
416 { 0x7B, 7 },
417 { 0x0, 4 },
418 { 0x13, 5 }
419 },
420 { /* DC bias table 10 */
421 { 0xA, 4 },
422 { 0x7, 5 },
423 { 0x1, 6 },
424 { 0x9, 6 },
425 { 0x131, 9 },
426 { 0x261, 10 },
427 { 0x260, 10 },
428 { 0x15, 6 },
429 { 0x1, 7 },
430 { 0x7, 3 },
431 { 0x6, 3 },
432 { 0x8, 4 },
433 { 0x7, 4 },
434 { 0x6, 4 },
435 { 0x12, 5 },
436 { 0x2F, 6 },
437 { 0x14, 6 },
438 { 0x27, 6 },
439 { 0x2D, 6 },
440 { 0x16, 6 },
441 { 0x4D, 7 },
442 { 0x99, 8 },
443 { 0x0, 7 },
444 { 0x4, 4 },
445 { 0x1, 4 },
446 { 0x5, 5 },
447 { 0x17, 6 },
448 { 0x2E, 6 },
449 { 0x2C, 6 },
450 { 0x8, 6 },
451 { 0x6, 5 },
452 { 0x1, 5 }
453 },
454 { /* DC bias table 11 */
455 { 0x0, 3 },
456 { 0xE, 5 },
457 { 0x17, 6 },
458 { 0x2A, 6 },
459 { 0x10, 7 },
460 { 0xF9, 10 },
461 { 0xF8, 10 },
462 { 0x1E, 7 },
463 { 0x3F, 8 },
464 { 0x7, 3 },
465 { 0x6, 3 },
466 { 0x9, 4 },
467 { 0x8, 4 },
468 { 0x6, 4 },
469 { 0xF, 5 },
470 { 0x5, 5 },
471 { 0x16, 6 },
472 { 0x29, 6 },
473 { 0x2B, 6 },
474 { 0x15, 6 },
475 { 0x50, 7 },
476 { 0x11, 7 },
477 { 0x7D, 9 },
478 { 0x4, 4 },
479 { 0x17, 5 },
480 { 0x6, 5 },
481 { 0x14, 6 },
482 { 0x2C, 6 },
483 { 0x2D, 6 },
484 { 0xE, 6 },
485 { 0x9, 6 },
486 { 0x51, 7 }
487 },
488 { /* DC bias table 12 */
489 { 0x2, 3 },
490 { 0x18, 5 },
491 { 0x2F, 6 },
492 { 0xD, 5 },
493 { 0x53, 7 },
494 { 0x295, 10 },
495 { 0x294, 10 },
496 { 0xA4, 8 },
497 { 0x7C, 8 },
498 { 0x0, 2 },
499 { 0x7, 3 },
500 { 0x9, 4 },
501 { 0x8, 4 },
502 { 0x1B, 5 },
503 { 0xC, 5 },
504 { 0x28, 6 },
505 { 0x6A, 7 },
506 { 0x1E, 6 },
507 { 0x1D, 6 },
508 { 0x69, 7 },
509 { 0xD7, 8 },
510 { 0x7D, 8 },
511 { 0x14B, 9 },
512 { 0x19, 5 },
513 { 0x16, 5 },
514 { 0x2E, 6 },
515 { 0x1C, 6 },
516 { 0x2B, 6 },
517 { 0x2A, 6 },
518 { 0x68, 7 },
519 { 0x3F, 7 },
520 { 0xD6, 8 }
521 },
522 { /* DC bias table 13 */
523 { 0x2, 3 },
524 { 0x1B, 5 },
525 { 0xC, 5 },
526 { 0x18, 5 },
527 { 0x29, 6 },
528 { 0x7F, 8 },
529 { 0x2F0, 10 },
530 { 0x198, 9 },
531 { 0x179, 9 },
532 { 0x0, 2 },
533 { 0x7, 3 },
534 { 0x9, 4 },
535 { 0x8, 4 },
536 { 0x1A, 5 },
537 { 0xD, 5 },
538 { 0x2A, 6 },
539 { 0x64, 7 },
540 { 0x1E, 6 },
541 { 0x67, 7 },
542 { 0x5F, 7 },
543 { 0xCD, 8 },
544 { 0x7E, 8 },
545 { 0x2F1, 10 },
546 { 0x16, 5 },
547 { 0xE, 5 },
548 { 0x2E, 6 },
549 { 0x65, 7 },
550 { 0x2B, 6 },
551 { 0x28, 6 },
552 { 0x3E, 7 },
553 { 0xBD, 8 },
554 { 0x199, 9 }
555 },
556 { /* DC bias table 14 */
557 { 0x2, 3 },
558 { 0x7, 4 },
559 { 0x16, 5 },
560 { 0x6, 4 },
561 { 0x36, 6 },
562 { 0x5C, 7 },
563 { 0x15D, 9 },
564 { 0x15C, 9 },
565 { 0x2BF, 10 },
566 { 0x0, 2 },
567 { 0x7, 3 },
568 { 0x9, 4 },
569 { 0x8, 4 },
570 { 0x18, 5 },
571 { 0x34, 6 },
572 { 0x2A, 6 },
573 { 0x5E, 7 },
574 { 0x6A, 7 },
575 { 0x64, 7 },
576 { 0x5D, 7 },
577 { 0xCB, 8 },
578 { 0xAD, 8 },
579 { 0x2BE, 10 },
580 { 0x14, 5 },
581 { 0x33, 6 },
582 { 0x6E, 7 },
583 { 0x5F, 7 },
584 { 0x6F, 7 },
585 { 0x6B, 7 },
586 { 0xCA, 8 },
587 { 0xAC, 8 },
588 { 0x15E, 9 }
589 },
590 { /* DC bias table 15 */
591 { 0xF, 4 },
592 { 0x1D, 5 },
593 { 0x18, 5 },
594 { 0xB, 4 },
595 { 0x19, 5 },
596 { 0x29, 6 },
597 { 0xD6, 8 },
598 { 0x551, 11 },
599 { 0xAA1, 12 },
600 { 0x1, 2 },
601 { 0x0, 2 },
602 { 0x9, 4 },
603 { 0x8, 4 },
604 { 0x1B, 5 },
605 { 0x38, 6 },
606 { 0x28, 6 },
607 { 0x57, 7 },
608 { 0x6A, 7 },
609 { 0x68, 7 },
610 { 0x56, 7 },
611 { 0xE5, 8 },
612 { 0x155, 9 },
613 { 0xAA0, 12 },
614 { 0x73, 7 },
615 { 0x69, 7 },
616 { 0xD7, 8 },
617 { 0xAB, 8 },
618 { 0xE4, 8 },
619 { 0xA9, 8 },
620 { 0x151, 9 },
621 { 0x150, 9 },
622 { 0x2A9, 10 }
623 }
624};
625
626static const uint16_t ac_bias_0[16][32][2] = {
627 { /* AC bias group 1, table 0 */
628 { 0x8, 5 },
629 { 0x25, 7 },
630 { 0x17A, 9 },
631 { 0x2F7, 10 },
632 { 0xBDB, 12 },
633 { 0x17B4, 13 },
634 { 0x2F6B, 14 },
635 { 0x1D, 5 },
636 { 0x2F6A, 14 },
637 { 0x8, 4 },
638 { 0x7, 4 },
639 { 0x1, 4 },
640 { 0x2, 4 },
641 { 0xA, 4 },
642 { 0x6, 4 },
643 { 0x0, 4 },
644 { 0x1C, 5 },
645 { 0x9, 4 },
646 { 0xD, 4 },
647 { 0xF, 4 },
648 { 0xC, 4 },
649 { 0x3, 4 },
650 { 0xA, 5 },
651 { 0x16, 5 },
652 { 0x13, 6 },
653 { 0x5D, 7 },
654 { 0x24, 7 },
655 { 0xBC, 8 },
656 { 0x5C, 7 },
657 { 0x5EC, 11 },
658 { 0xB, 5 },
659 { 0x5F, 7 }
660 },
661 { /* AC bias group 1, table 1 */
662 { 0xF, 5 },
663 { 0x10, 6 },
664 { 0x4B, 8 },
665 { 0xC6, 8 },
666 { 0x31D, 10 },
667 { 0xC71, 12 },
668 { 0xC70, 12 },
669 { 0x1, 4 },
670 { 0xC73, 12 },
671 { 0x8, 4 },
672 { 0x9, 4 },
673 { 0x2, 4 },
674 { 0x3, 4 },
675 { 0xB, 4 },
676 { 0x6, 4 },
677 { 0x0, 4 },
678 { 0x1C, 5 },
679 { 0x5, 4 },
680 { 0xD, 4 },
681 { 0xF, 4 },
682 { 0xA, 4 },
683 { 0x19, 5 },
684 { 0x13, 6 },
685 { 0x1D, 5 },
686 { 0x30, 6 },
687 { 0x62, 7 },
688 { 0x24, 7 },
689 { 0x4A, 8 },
690 { 0x18F, 9 },
691 { 0xC72, 12 },
692 { 0xE, 5 },
693 { 0x11, 6 }
694 },
695 { /* AC bias group 1, table 2 */
696 { 0x1B, 5 },
697 { 0x3, 6 },
698 { 0x8D, 8 },
699 { 0x40, 7 },
700 { 0x239, 10 },
701 { 0x471, 11 },
702 { 0x8E0, 12 },
703 { 0x3, 4 },
704 { 0x11C3, 13 },
705 { 0xA, 4 },
706 { 0x9, 4 },
707 { 0x4, 4 },
708 { 0x5, 4 },
709 { 0xE, 4 },
710 { 0x7, 4 },
711 { 0x1, 4 },
712 { 0x1E, 5 },
713 { 0x6, 4 },
714 { 0xC, 4 },
715 { 0xB, 4 },
716 { 0x2, 4 },
717 { 0x0, 5 },
718 { 0x41, 7 },
719 { 0x1F, 5 },
720 { 0x22, 6 },
721 { 0x2, 6 },
722 { 0x8F, 8 },
723 { 0x8C, 8 },
724 { 0x11D, 9 },
725 { 0x11C2, 13 },
726 { 0x1A, 5 },
727 { 0x21, 6 }
728 },
729 { /* AC bias group 1, table 3 */
730 { 0x1F, 5 },
731 { 0x3, 6 },
732 { 0x3, 7 },
733 { 0x43, 7 },
734 { 0xB, 9 },
735 { 0x15, 10 },
736 { 0x51, 12 },
737 { 0x3, 4 },
738 { 0x50, 12 },
739 { 0xD, 4 },
740 { 0xC, 4 },
741 { 0x4, 4 },
742 { 0x6, 4 },
743 { 0xE, 4 },
744 { 0xA, 4 },
745 { 0x1, 4 },
746 { 0x1E, 5 },
747 { 0x5, 4 },
748 { 0x9, 4 },
749 { 0x7, 4 },
750 { 0x11, 5 },
751 { 0x2, 6 },
752 { 0x4, 8 },
753 { 0x2, 4 },
754 { 0x2D, 6 },
755 { 0x20, 6 },
756 { 0x42, 7 },
757 { 0x1, 7 },
758 { 0x0, 7 },
759 { 0x29, 11 },
760 { 0x17, 5 },
761 { 0x2C, 6 }
762 },
763 { /* AC bias group 1, table 4 */
764 { 0x3, 4 },
765 { 0x1F, 6 },
766 { 0x3A, 7 },
767 { 0x5D, 7 },
768 { 0x173, 9 },
769 { 0x2E4, 10 },
770 { 0x172D, 13 },
771 { 0x4, 4 },
772 { 0x172C, 13 },
773 { 0xF, 4 },
774 { 0xE, 4 },
775 { 0x9, 4 },
776 { 0x8, 4 },
777 { 0xC, 4 },
778 { 0xA, 4 },
779 { 0x1, 4 },
780 { 0x16, 5 },
781 { 0x2, 4 },
782 { 0x5, 4 },
783 { 0x1A, 5 },
784 { 0x2F, 6 },
785 { 0x38, 7 },
786 { 0x5CA, 11 },
787 { 0x6, 4 },
788 { 0x37, 6 },
789 { 0x1E, 6 },
790 { 0x3B, 7 },
791 { 0x39, 7 },
792 { 0xB8, 8 },
793 { 0xB97, 12 },
794 { 0x0, 4 },
795 { 0x36, 6 }
796 },
797 { /* AC bias group 1, table 5 */
798 { 0x6, 4 },
799 { 0x37, 6 },
800 { 0x5D, 7 },
801 { 0xC, 6 },
802 { 0xB9, 8 },
803 { 0x2E3, 10 },
804 { 0x5C4, 11 },
805 { 0x4, 4 },
806 { 0x1715, 13 },
807 { 0x0, 3 },
808 { 0xF, 4 },
809 { 0x8, 4 },
810 { 0x7, 4 },
811 { 0xC, 4 },
812 { 0x9, 4 },
813 { 0x1D, 5 },
814 { 0x16, 5 },
815 { 0x1C, 5 },
816 { 0x1A, 5 },
817 { 0xB, 5 },
818 { 0x5E, 7 },
819 { 0x170, 9 },
820 { 0x1714, 13 },
821 { 0xA, 4 },
822 { 0xA, 5 },
823 { 0x36, 6 },
824 { 0x5F, 7 },
825 { 0x1B, 7 },
826 { 0x1A, 7 },
827 { 0xB8B, 12 },
828 { 0x2, 4 },
829 { 0x7, 5 }
830 },
831 { /* AC bias group 1, table 6 */
832 { 0xC, 4 },
833 { 0xB, 5 },
834 { 0x79, 7 },
835 { 0x22, 6 },
836 { 0xF0, 8 },
837 { 0x119, 9 },
838 { 0x230, 10 },
839 { 0x1D, 5 },
840 { 0x8C4, 12 },
841 { 0x1, 3 },
842 { 0x0, 3 },
843 { 0xA, 4 },
844 { 0x9, 4 },
845 { 0xB, 4 },
846 { 0x7, 4 },
847 { 0x1C, 5 },
848 { 0x3D, 6 },
849 { 0xD, 5 },
850 { 0x8, 5 },
851 { 0x15, 6 },
852 { 0x8D, 8 },
853 { 0x118B, 13 },
854 { 0x118A, 13 },
855 { 0xD, 4 },
856 { 0x10, 5 },
857 { 0x9, 5 },
858 { 0x14, 6 },
859 { 0x47, 7 },
860 { 0xF1, 8 },
861 { 0x463, 11 },
862 { 0x1F, 5 },
863 { 0xC, 5 }
864 },
865 { /* AC bias group 1, table 7 */
866 { 0x0, 3 },
867 { 0x1A, 5 },
868 { 0x33, 6 },
869 { 0xC, 5 },
870 { 0x46, 7 },
871 { 0x1E3, 9 },
872 { 0x3C5, 10 },
873 { 0x17, 5 },
874 { 0x1E21, 13 },
875 { 0x2, 3 },
876 { 0x1, 3 },
877 { 0x9, 4 },
878 { 0xA, 4 },
879 { 0x7, 4 },
880 { 0x1B, 5 },
881 { 0x3D, 6 },
882 { 0x1B, 6 },
883 { 0x22, 6 },
884 { 0x79, 7 },
885 { 0xF0, 8 },
886 { 0x1E20, 13 },
887 { 0x1E23, 13 },
888 { 0x1E22, 13 },
889 { 0xE, 4 },
890 { 0x16, 5 },
891 { 0x18, 5 },
892 { 0x32, 6 },
893 { 0x1A, 6 },
894 { 0x47, 7 },
895 { 0x789, 11 },
896 { 0x1F, 5 },
897 { 0x10, 5 }
898 },
899 { /* AC bias group 1, table 8 */
900 { 0x1D, 5 },
901 { 0x61, 7 },
902 { 0x4E, 8 },
903 { 0x9E, 9 },
904 { 0x27C, 11 },
905 { 0x9F5, 13 },
906 { 0x9F4, 13 },
907 { 0x3, 4 },
908 { 0x60, 7 },
909 { 0x0, 3 },
910 { 0xF, 4 },
911 { 0xB, 4 },
912 { 0xA, 4 },
913 { 0x9, 4 },
914 { 0x5, 4 },
915 { 0xD, 5 },
916 { 0x31, 6 },
917 { 0x8, 5 },
918 { 0x38, 6 },
919 { 0x12, 6 },
920 { 0x26, 7 },
921 { 0x13F, 10 },
922 { 0x4FB, 12 },
923 { 0xD, 4 },
924 { 0x2, 4 },
925 { 0xC, 5 },
926 { 0x39, 6 },
927 { 0x1C, 6 },
928 { 0xF, 5 },
929 { 0x1D, 6 },
930 { 0x8, 4 },
931 { 0x19, 5 }
932 },
933 { /* AC bias group 1, table 9 */
934 { 0x7, 4 },
935 { 0x19, 6 },
936 { 0xAB, 8 },
937 { 0xAA, 8 },
938 { 0x119, 10 },
939 { 0x461, 12 },
940 { 0x460, 12 },
941 { 0x1B, 5 },
942 { 0x47, 8 },
943 { 0x1, 3 },
944 { 0x0, 3 },
945 { 0xC, 4 },
946 { 0xB, 4 },
947 { 0x9, 4 },
948 { 0x5, 4 },
949 { 0xD, 5 },
950 { 0x35, 6 },
951 { 0x3D, 6 },
952 { 0x3C, 6 },
953 { 0x18, 6 },
954 { 0x22, 7 },
955 { 0x8D, 9 },
956 { 0x231, 11 },
957 { 0xE, 4 },
958 { 0x1F, 5 },
959 { 0x9, 5 },
960 { 0x2B, 6 },
961 { 0x10, 6 },
962 { 0x34, 6 },
963 { 0x54, 7 },
964 { 0x8, 4 },
965 { 0x14, 5 }
966 },
967 { /* AC bias group 1, table 10 */
968 { 0xC, 4 },
969 { 0x5, 5 },
970 { 0x8, 6 },
971 { 0x5B, 7 },
972 { 0x4D, 9 },
973 { 0x131, 11 },
974 { 0x261, 12 },
975 { 0x1A, 5 },
976 { 0x12, 7 },
977 { 0x0, 3 },
978 { 0xF, 4 },
979 { 0xA, 4 },
980 { 0x9, 4 },
981 { 0x6, 4 },
982 { 0x1B, 5 },
983 { 0x6, 5 },
984 { 0x1C, 6 },
985 { 0x2C, 6 },
986 { 0x15, 6 },
987 { 0x5A, 7 },
988 { 0x27, 8 },
989 { 0x99, 10 },
990 { 0x260, 12 },
991 { 0xE, 4 },
992 { 0x4, 4 },
993 { 0xF, 5 },
994 { 0x7, 5 },
995 { 0x1D, 6 },
996 { 0xB, 5 },
997 { 0x14, 6 },
998 { 0x8, 4 },
999 { 0x17, 5 }
1000 },
1001 { /* AC bias group 1, table 11 */
1002 { 0xF, 4 },
1003 { 0x13, 5 },
1004 { 0x75, 7 },
1005 { 0x24, 6 },
1006 { 0x95, 8 },
1007 { 0x251, 10 },
1008 { 0x4A0, 11 },
1009 { 0x10, 5 },
1010 { 0xC8, 8 },
1011 { 0x2, 3 },
1012 { 0x1, 3 },
1013 { 0x1, 4 },
1014 { 0x0, 4 },
1015 { 0x1A, 5 },
1016 { 0x11, 5 },
1017 { 0x2C, 6 },
1018 { 0x65, 7 },
1019 { 0x74, 7 },
1020 { 0x4B, 7 },
1021 { 0xC9, 8 },
1022 { 0x129, 9 },
1023 { 0x943, 12 },
1024 { 0x942, 12 },
1025 { 0x3, 3 },
1026 { 0xA, 4 },
1027 { 0x1C, 5 },
1028 { 0x18, 5 },
1029 { 0x33, 6 },
1030 { 0x17, 5 },
1031 { 0x2D, 6 },
1032 { 0x1B, 5 },
1033 { 0x3B, 6 }
1034 },
1035 { /* AC bias group 1, table 12 */
1036 { 0x3, 3 },
1037 { 0x1A, 5 },
1038 { 0x2D, 6 },
1039 { 0x38, 6 },
1040 { 0x28, 7 },
1041 { 0x395, 10 },
1042 { 0xE51, 12 },
1043 { 0x37, 6 },
1044 { 0xE4, 8 },
1045 { 0x1, 3 },
1046 { 0x0, 3 },
1047 { 0x1F, 5 },
1048 { 0x1E, 5 },
1049 { 0x17, 5 },
1050 { 0x3A, 6 },
1051 { 0x73, 7 },
1052 { 0x2A, 7 },
1053 { 0x2B, 7 },
1054 { 0x29, 7 },
1055 { 0x1CB, 9 },
1056 { 0x729, 11 },
1057 { 0x1CA1, 13 },
1058 { 0x1CA0, 13 },
1059 { 0x4, 3 },
1060 { 0xA, 4 },
1061 { 0x4, 4 },
1062 { 0x18, 5 },
1063 { 0x36, 6 },
1064 { 0xB, 5 },
1065 { 0x2C, 6 },
1066 { 0x19, 5 },
1067 { 0x3B, 6 }
1068 },
1069 { /* AC bias group 1, table 13 */
1070 { 0x4, 3 },
1071 { 0x4, 4 },
1072 { 0x3F, 6 },
1073 { 0x17, 5 },
1074 { 0x75, 7 },
1075 { 0x1F5, 9 },
1076 { 0x7D1, 11 },
1077 { 0x17, 6 },
1078 { 0x1F6, 9 },
1079 { 0x1, 3 },
1080 { 0x0, 3 },
1081 { 0x1B, 5 },
1082 { 0x1A, 5 },
1083 { 0xA, 5 },
1084 { 0x32, 6 },
1085 { 0x74, 7 },
1086 { 0xF8, 8 },
1087 { 0xF9, 8 },
1088 { 0x1F7, 9 },
1089 { 0x3E9, 10 },
1090 { 0xFA0, 12 },
1091 { 0x1F43, 13 },
1092 { 0x1F42, 13 },
1093 { 0x3, 3 },
1094 { 0xA, 4 },
1095 { 0x1E, 5 },
1096 { 0x1C, 5 },
1097 { 0x3B, 6 },
1098 { 0x18, 5 },
1099 { 0x16, 6 },
1100 { 0x16, 5 },
1101 { 0x33, 6 }
1102 },
1103 { /* AC bias group 1, table 14 */
1104 { 0x4, 3 },
1105 { 0x7, 4 },
1106 { 0x18, 5 },
1107 { 0x1E, 5 },
1108 { 0x36, 6 },
1109 { 0x31, 7 },
1110 { 0x177, 9 },
1111 { 0x77, 7 },
1112 { 0x176, 9 },
1113 { 0x1, 3 },
1114 { 0x0, 3 },
1115 { 0x1A, 5 },
1116 { 0x19, 5 },
1117 { 0x3A, 6 },
1118 { 0x19, 6 },
1119 { 0x5C, 7 },
1120 { 0xBA, 8 },
1121 { 0x61, 8 },
1122 { 0xC1, 9 },
1123 { 0x180, 10 },
1124 { 0x302, 11 },
1125 { 0x607, 12 },
1126 { 0x606, 12 },
1127 { 0x2, 3 },
1128 { 0xA, 4 },
1129 { 0x1F, 5 },
1130 { 0x1C, 5 },
1131 { 0x37, 6 },
1132 { 0x16, 5 },
1133 { 0x76, 7 },
1134 { 0xD, 5 },
1135 { 0x2F, 6 }
1136 },
1137 { /* AC bias group 1, table 15 */
1138 { 0x0, 3 },
1139 { 0xA, 4 },
1140 { 0x1A, 5 },
1141 { 0xC, 4 },
1142 { 0x1D, 5 },
1143 { 0x39, 6 },
1144 { 0x78, 7 },
1145 { 0x5E, 7 },
1146 { 0x393, 11 },
1147 { 0x2, 3 },
1148 { 0x1, 3 },
1149 { 0x16, 5 },
1150 { 0xF, 5 },
1151 { 0x2E, 6 },
1152 { 0x5F, 7 },
1153 { 0x73, 8 },
1154 { 0xE5, 9 },
1155 { 0x1C8, 10 },
1156 { 0xE4A, 13 },
1157 { 0x1C97, 14 },
1158 { 0x1C96, 14 },
1159 { 0xE49, 13 },
1160 { 0xE48, 13 },
1161 { 0x4, 3 },
1162 { 0x6, 4 },
1163 { 0x1F, 5 },
1164 { 0x1B, 5 },
1165 { 0x1D, 6 },
1166 { 0x38, 6 },
1167 { 0x38, 7 },
1168 { 0x3D, 6 },
1169 { 0x79, 7 }
1170 }
1171};
1172
1173static const uint16_t ac_bias_1[16][32][2] = {
1174 { /* AC bias group 2, table 0 */
1175 { 0xB, 5 },
1176 { 0x2B, 7 },
1177 { 0x54, 8 },
1178 { 0x1B7, 9 },
1179 { 0x6D9, 11 },
1180 { 0xDB1, 12 },
1181 { 0xDB0, 12 },
1182 { 0x2, 4 },
1183 { 0xAB, 9 },
1184 { 0x9, 4 },
1185 { 0xA, 4 },
1186 { 0x7, 4 },
1187 { 0x8, 4 },
1188 { 0xF, 4 },
1189 { 0xC, 4 },
1190 { 0x3, 4 },
1191 { 0x1D, 5 },
1192 { 0x4, 4 },
1193 { 0xB, 4 },
1194 { 0x6, 4 },
1195 { 0x1A, 5 },
1196 { 0x3, 6 },
1197 { 0xAA, 9 },
1198 { 0x1, 4 },
1199 { 0x0, 5 },
1200 { 0x14, 6 },
1201 { 0x6C, 7 },
1202 { 0xDA, 8 },
1203 { 0x2, 6 },
1204 { 0x36D, 10 },
1205 { 0x1C, 5 },
1206 { 0x37, 6 }
1207 },
1208 { /* AC bias group 2, table 1 */
1209 { 0x1D, 5 },
1210 { 0x4, 6 },
1211 { 0xB6, 8 },
1212 { 0x6A, 8 },
1213 { 0x5B9, 11 },
1214 { 0x16E1, 13 },
1215 { 0x16E0, 13 },
1216 { 0x7, 4 },
1217 { 0x16F, 9 },
1218 { 0xC, 4 },
1219 { 0xD, 4 },
1220 { 0x9, 4 },
1221 { 0x8, 4 },
1222 { 0xF, 4 },
1223 { 0xA, 4 },
1224 { 0x3, 4 },
1225 { 0x17, 5 },
1226 { 0x2, 4 },
1227 { 0x4, 4 },
1228 { 0x1C, 5 },
1229 { 0x2C, 6 },
1230 { 0x6B, 8 },
1231 { 0xB71, 12 },
1232 { 0x5, 4 },
1233 { 0x3, 5 },
1234 { 0x1B, 6 },
1235 { 0x5A, 7 },
1236 { 0x34, 7 },
1237 { 0x5, 6 },
1238 { 0x2DD, 10 },
1239 { 0x0, 4 },
1240 { 0xC, 5 }
1241 },
1242 { /* AC bias group 2, table 2 */
1243 { 0x3, 4 },
1244 { 0x7F, 7 },
1245 { 0xA1, 8 },
1246 { 0xA0, 8 },
1247 { 0x20C, 10 },
1248 { 0x834, 12 },
1249 { 0x106B, 13 },
1250 { 0x7, 4 },
1251 { 0x82, 8 },
1252 { 0xE, 4 },
1253 { 0xD, 4 },
1254 { 0xB, 4 },
1255 { 0xC, 4 },
1256 { 0x0, 3 },
1257 { 0x9, 4 },
1258 { 0x2, 4 },
1259 { 0x11, 5 },
1260 { 0x1E, 5 },
1261 { 0x15, 5 },
1262 { 0x3E, 6 },
1263 { 0x40, 7 },
1264 { 0x41B, 11 },
1265 { 0x106A, 13 },
1266 { 0x6, 4 },
1267 { 0xA, 5 },
1268 { 0x29, 6 },
1269 { 0x7E, 7 },
1270 { 0x51, 7 },
1271 { 0x21, 6 },
1272 { 0x107, 9 },
1273 { 0x4, 4 },
1274 { 0xB, 5 }
1275 },
1276 { /* AC bias group 2, table 3 */
1277 { 0x7, 4 },
1278 { 0x1B, 6 },
1279 { 0xF6, 8 },
1280 { 0xE9, 8 },
1281 { 0x3A1, 10 },
1282 { 0x740, 11 },
1283 { 0xE82, 12 },
1284 { 0x1F, 5 },
1285 { 0x1EF, 9 },
1286 { 0x1, 3 },
1287 { 0x2, 3 },
1288 { 0xB, 4 },
1289 { 0xC, 4 },
1290 { 0xD, 4 },
1291 { 0x8, 4 },
1292 { 0x1C, 5 },
1293 { 0x3, 5 },
1294 { 0x12, 5 },
1295 { 0x2, 5 },
1296 { 0x75, 7 },
1297 { 0x1D1, 9 },
1298 { 0x1D07, 13 },
1299 { 0x1D06, 13 },
1300 { 0xA, 4 },
1301 { 0x13, 5 },
1302 { 0x3B, 6 },
1303 { 0x1A, 6 },
1304 { 0x7A, 7 },
1305 { 0x3C, 6 },
1306 { 0x1EE, 9 },
1307 { 0x0, 4 },
1308 { 0xC, 5 }
1309 },
1310 { /* AC bias group 2, table 4 */
1311 { 0xD, 4 },
1312 { 0x3D, 6 },
1313 { 0x42, 7 },
1314 { 0x37, 7 },
1315 { 0xD9, 9 },
1316 { 0x362, 11 },
1317 { 0x6C6, 12 },
1318 { 0x1F, 5 },
1319 { 0x86, 8 },
1320 { 0x1, 3 },
1321 { 0x2, 3 },
1322 { 0xC, 4 },
1323 { 0xB, 4 },
1324 { 0xA, 4 },
1325 { 0x1, 4 },
1326 { 0xF, 5 },
1327 { 0x25, 6 },
1328 { 0x3C, 6 },
1329 { 0x1A, 6 },
1330 { 0x87, 8 },
1331 { 0x1B0, 10 },
1332 { 0xD8F, 13 },
1333 { 0xD8E, 13 },
1334 { 0xE, 4 },
1335 { 0x13, 5 },
1336 { 0xC, 5 },
1337 { 0x24, 6 },
1338 { 0x20, 6 },
1339 { 0x11, 5 },
1340 { 0x6D, 8 },
1341 { 0x0, 4 },
1342 { 0xE, 5 }
1343 },
1344 { /* AC bias group 2, table 5 */
1345 { 0x0, 3 },
1346 { 0x12, 5 },
1347 { 0x76, 7 },
1348 { 0x77, 7 },
1349 { 0x14D, 9 },
1350 { 0x533, 11 },
1351 { 0x14C9, 13 },
1352 { 0x13, 5 },
1353 { 0xA5, 8 },
1354 { 0x2, 3 },
1355 { 0x3, 3 },
1356 { 0xB, 4 },
1357 { 0xC, 4 },
1358 { 0x8, 4 },
1359 { 0x1A, 5 },
1360 { 0x2B, 6 },
1361 { 0x75, 7 },
1362 { 0x74, 7 },
1363 { 0xA7, 8 },
1364 { 0x298, 10 },
1365 { 0x14C8, 13 },
1366 { 0x14CB, 13 },
1367 { 0x14CA, 13 },
1368 { 0xF, 4 },
1369 { 0x1C, 5 },
1370 { 0x7, 5 },
1371 { 0x2A, 6 },
1372 { 0x28, 6 },
1373 { 0x1B, 5 },
1374 { 0xA4, 8 },
1375 { 0x2, 4 },
1376 { 0x6, 5 }
1377 },
1378 { /* AC bias group 2, table 6 */
1379 { 0x2, 3 },
1380 { 0x1A, 5 },
1381 { 0x2B, 6 },
1382 { 0x3A, 6 },
1383 { 0xED, 8 },
1384 { 0x283, 10 },
1385 { 0xA0A, 12 },
1386 { 0x4, 5 },
1387 { 0xA1, 8 },
1388 { 0x4, 3 },
1389 { 0x3, 3 },
1390 { 0xB, 4 },
1391 { 0xC, 4 },
1392 { 0x1F, 5 },
1393 { 0x6, 5 },
1394 { 0x77, 7 },
1395 { 0xA3, 8 },
1396 { 0xA2, 8 },
1397 { 0x140, 9 },
1398 { 0x1417, 13 },
1399 { 0x1416, 13 },
1400 { 0xA09, 12 },
1401 { 0xA08, 12 },
1402 { 0x0, 3 },
1403 { 0x1E, 5 },
1404 { 0x7, 5 },
1405 { 0x2A, 6 },
1406 { 0x29, 6 },
1407 { 0x1C, 5 },
1408 { 0xEC, 8 },
1409 { 0x1B, 5 },
1410 { 0x5, 5 }
1411 },
1412 { /* AC bias group 2, table 7 */
1413 { 0x2, 3 },
1414 { 0x2, 4 },
1415 { 0x18, 5 },
1416 { 0x1D, 5 },
1417 { 0x35, 6 },
1418 { 0xE4, 8 },
1419 { 0x1CF, 11 },
1420 { 0x1D, 7 },
1421 { 0x72, 9 },
1422 { 0x4, 3 },
1423 { 0x5, 3 },
1424 { 0x6, 4 },
1425 { 0x7, 4 },
1426 { 0x6, 5 },
1427 { 0x73, 7 },
1428 { 0x38, 8 },
1429 { 0x1CE, 11 },
1430 { 0x39B, 12 },
1431 { 0x398, 12 },
1432 { 0x733, 13 },
1433 { 0x732, 13 },
1434 { 0x735, 13 },
1435 { 0x734, 13 },
1436 { 0x0, 3 },
1437 { 0x1F, 5 },
1438 { 0x1B, 5 },
1439 { 0x34, 6 },
1440 { 0xF, 6 },
1441 { 0x1E, 5 },
1442 { 0xE5, 8 },
1443 { 0x19, 5 },
1444 { 0x38, 6 }
1445 },
1446 { /* AC bias group 2, table 8 */
1447 { 0x16, 5 },
1448 { 0x50, 7 },
1449 { 0x172, 9 },
1450 { 0x2E7, 10 },
1451 { 0x1732, 13 },
1452 { 0x2E67, 14 },
1453 { 0x2E66, 14 },
1454 { 0x6, 4 },
1455 { 0x51, 7 },
1456 { 0x1, 3 },
1457 { 0x0, 3 },
1458 { 0xD, 4 },
1459 { 0xC, 4 },
1460 { 0x9, 4 },
1461 { 0x1C, 5 },
1462 { 0x9, 5 },
1463 { 0x1C, 6 },
1464 { 0x1D, 6 },
1465 { 0x5D, 7 },
1466 { 0xB8, 8 },
1467 { 0x5CD, 11 },
1468 { 0x1731, 13 },
1469 { 0x1730, 13 },
1470 { 0xF, 4 },
1471 { 0x5, 4 },
1472 { 0xF, 5 },
1473 { 0x8, 5 },
1474 { 0x29, 6 },
1475 { 0x1D, 5 },
1476 { 0x2F, 6 },
1477 { 0x8, 4 },
1478 { 0x15, 5 }
1479 },
1480 { /* AC bias group 2, table 9 */
1481 { 0x9, 4 },
1482 { 0x21, 6 },
1483 { 0x40, 7 },
1484 { 0xAD, 8 },
1485 { 0x2B0, 10 },
1486 { 0x1589, 13 },
1487 { 0x1588, 13 },
1488 { 0x1C, 5 },
1489 { 0x5F, 7 },
1490 { 0x0, 3 },
1491 { 0xF, 4 },
1492 { 0xD, 4 },
1493 { 0xC, 4 },
1494 { 0x6, 4 },
1495 { 0x11, 5 },
1496 { 0x2A, 6 },
1497 { 0x57, 7 },
1498 { 0x5E, 7 },
1499 { 0x41, 7 },
1500 { 0x159, 9 },
1501 { 0x563, 11 },
1502 { 0x158B, 13 },
1503 { 0x158A, 13 },
1504 { 0x1, 3 },
1505 { 0x5, 4 },
1506 { 0x14, 5 },
1507 { 0x3B, 6 },
1508 { 0x2E, 6 },
1509 { 0x4, 4 },
1510 { 0x3A, 6 },
1511 { 0x7, 4 },
1512 { 0x16, 5 }
1513 },
1514 { /* AC bias group 2, table 10 */
1515 { 0xE, 4 },
1516 { 0x7, 5 },
1517 { 0x46, 7 },
1518 { 0x45, 7 },
1519 { 0x64, 9 },
1520 { 0x32A, 12 },
1521 { 0x657, 13 },
1522 { 0x18, 5 },
1523 { 0xD, 6 },
1524 { 0x0, 3 },
1525 { 0xF, 4 },
1526 { 0xA, 4 },
1527 { 0xB, 4 },
1528 { 0x1A, 5 },
1529 { 0x36, 6 },
1530 { 0x47, 7 },
1531 { 0x44, 7 },
1532 { 0x18, 7 },
1533 { 0x33, 8 },
1534 { 0xCB, 10 },
1535 { 0x656, 13 },
1536 { 0x329, 12 },
1537 { 0x328, 12 },
1538 { 0x2, 3 },
1539 { 0x6, 4 },
1540 { 0x19, 5 },
1541 { 0xE, 5 },
1542 { 0x37, 6 },
1543 { 0x9, 4 },
1544 { 0xF, 5 },
1545 { 0x2, 4 },
1546 { 0x10, 5 }
1547 },
1548 { /* AC bias group 2, table 11 */
1549 { 0x3, 3 },
1550 { 0x18, 5 },
1551 { 0x23, 6 },
1552 { 0x77, 7 },
1553 { 0x194, 9 },
1554 { 0x1956, 13 },
1555 { 0x32AF, 14 },
1556 { 0x3A, 6 },
1557 { 0x76, 7 },
1558 { 0x2, 3 },
1559 { 0x1, 3 },
1560 { 0x1F, 5 },
1561 { 0x1E, 5 },
1562 { 0x14, 5 },
1563 { 0x22, 6 },
1564 { 0x64, 7 },
1565 { 0x197, 9 },
1566 { 0x196, 9 },
1567 { 0x32B, 10 },
1568 { 0x654, 11 },
1569 { 0x32AE, 14 },
1570 { 0x1955, 13 },
1571 { 0x1954, 13 },
1572 { 0x0, 3 },
1573 { 0x9, 4 },
1574 { 0x1C, 5 },
1575 { 0x15, 5 },
1576 { 0x10, 5 },
1577 { 0xD, 4 },
1578 { 0x17, 5 },
1579 { 0x16, 5 },
1580 { 0x33, 6 }
1581 },
1582 { /* AC bias group 2, table 12 */
1583 { 0x5, 3 },
1584 { 0x6, 4 },
1585 { 0x3E, 6 },
1586 { 0x10, 5 },
1587 { 0x48, 7 },
1588 { 0x93F, 12 },
1589 { 0x24FA, 14 },
1590 { 0x32, 6 },
1591 { 0x67, 7 },
1592 { 0x2, 3 },
1593 { 0x1, 3 },
1594 { 0x1B, 5 },
1595 { 0x1E, 5 },
1596 { 0x34, 6 },
1597 { 0x66, 7 },
1598 { 0x92, 8 },
1599 { 0x126, 9 },
1600 { 0x24E, 10 },
1601 { 0x49E, 11 },
1602 { 0x49F7, 15 },
1603 { 0x49F6, 15 },
1604 { 0x24F9, 14 },
1605 { 0x24F8, 14 },
1606 { 0x0, 3 },
1607 { 0x7, 4 },
1608 { 0x18, 5 },
1609 { 0x11, 5 },
1610 { 0x3F, 6 },
1611 { 0xE, 4 },
1612 { 0x13, 5 },
1613 { 0x35, 6 },
1614 { 0x25, 6 }
1615 },
1616 { /* AC bias group 2, table 13 */
1617 { 0x5, 3 },
1618 { 0x8, 4 },
1619 { 0x12, 5 },
1620 { 0x1C, 5 },
1621 { 0x1C, 6 },
1622 { 0xEA, 9 },
1623 { 0x1D75, 14 },
1624 { 0x1E, 6 },
1625 { 0x66, 7 },
1626 { 0x1, 3 },
1627 { 0x2, 3 },
1628 { 0x1B, 5 },
1629 { 0x1A, 5 },
1630 { 0x1F, 6 },
1631 { 0x3B, 7 },
1632 { 0x74, 8 },
1633 { 0x1D6, 10 },
1634 { 0x3AF, 11 },
1635 { 0x1D74, 14 },
1636 { 0x1D77, 14 },
1637 { 0x1D76, 14 },
1638 { 0xEB9, 13 },
1639 { 0xEB8, 13 },
1640 { 0xF, 4 },
1641 { 0x6, 4 },
1642 { 0x13, 5 },
1643 { 0x3B, 6 },
1644 { 0x3A, 6 },
1645 { 0x0, 3 },
1646 { 0x18, 5 },
1647 { 0x32, 6 },
1648 { 0x67, 7 }
1649 },
1650 { /* AC bias group 2, table 14 */
1651 { 0x4, 3 },
1652 { 0xA, 4 },
1653 { 0x1B, 5 },
1654 { 0xC, 4 },
1655 { 0xD, 5 },
1656 { 0xE6, 8 },
1657 { 0x684, 11 },
1658 { 0x72, 7 },
1659 { 0xE7, 8 },
1660 { 0x2, 3 },
1661 { 0x1, 3 },
1662 { 0x17, 5 },
1663 { 0x16, 5 },
1664 { 0x18, 6 },
1665 { 0xD1, 8 },
1666 { 0x1A0, 9 },
1667 { 0x686, 11 },
1668 { 0xD0F, 12 },
1669 { 0xD0A, 12 },
1670 { 0x1A17, 13 },
1671 { 0x1A16, 13 },
1672 { 0x1A1D, 13 },
1673 { 0x1A1C, 13 },
1674 { 0xF, 4 },
1675 { 0x1D, 5 },
1676 { 0xE, 5 },
1677 { 0x35, 6 },
1678 { 0x38, 6 },
1679 { 0x0, 3 },
1680 { 0xF, 5 },
1681 { 0x19, 6 },
1682 { 0x69, 7 }
1683 },
1684 { /* AC bias group 2, table 15 */
1685 { 0x3, 3 },
1686 { 0xC, 4 },
1687 { 0x1B, 5 },
1688 { 0x0, 3 },
1689 { 0x3, 4 },
1690 { 0x2E, 6 },
1691 { 0x51, 9 },
1692 { 0xBC, 8 },
1693 { 0x53, 9 },
1694 { 0x4, 3 },
1695 { 0x2, 3 },
1696 { 0x16, 5 },
1697 { 0x15, 5 },
1698 { 0x15, 7 },
1699 { 0x50, 9 },
1700 { 0xA4, 10 },
1701 { 0x294, 12 },
1702 { 0x52B, 13 },
1703 { 0x52A, 13 },
1704 { 0x52D, 13 },
1705 { 0x52C, 13 },
1706 { 0x52F, 13 },
1707 { 0x52E, 13 },
1708 { 0xE, 4 },
1709 { 0x1A, 5 },
1710 { 0x4, 5 },
1711 { 0x28, 6 },
1712 { 0x29, 6 },
1713 { 0xF, 4 },
1714 { 0xB, 6 },
1715 { 0x5F, 7 },
1716 { 0xBD, 8 }
1717 }
1718};
1719
1720static const uint16_t ac_bias_2[16][32][2] = {
1721 { /* AC bias group 3, table 0 */
1722 { 0x3, 4 },
1723 { 0x9, 6 },
1724 { 0xD0, 8 },
1725 { 0x1A3, 9 },
1726 { 0x344, 10 },
1727 { 0xD14, 12 },
1728 { 0x1A2B, 13 },
1729 { 0x4, 4 },
1730 { 0x15, 7 },
1731 { 0x0, 3 },
1732 { 0xF, 4 },
1733 { 0xB, 4 },
1734 { 0xC, 4 },
1735 { 0xE, 4 },
1736 { 0x9, 4 },
1737 { 0x1B, 5 },
1738 { 0xA, 5 },
1739 { 0x14, 5 },
1740 { 0xD, 5 },
1741 { 0x2A, 6 },
1742 { 0x14, 7 },
1743 { 0x68B, 11 },
1744 { 0x1A2A, 13 },
1745 { 0x8, 4 },
1746 { 0xB, 5 },
1747 { 0x2B, 6 },
1748 { 0xB, 6 },
1749 { 0x69, 7 },
1750 { 0x35, 6 },
1751 { 0x8, 6 },
1752 { 0x7, 4 },
1753 { 0xC, 5 }
1754 },
1755 { /* AC bias group 3, table 1 */
1756 { 0xA, 4 },
1757 { 0x3C, 6 },
1758 { 0x32, 7 },
1759 { 0x30, 7 },
1760 { 0xC5, 9 },
1761 { 0x621, 12 },
1762 { 0x620, 12 },
1763 { 0x1F, 5 },
1764 { 0x33, 7 },
1765 { 0x1, 3 },
1766 { 0x0, 3 },
1767 { 0xE, 4 },
1768 { 0xD, 4 },
1769 { 0xC, 4 },
1770 { 0x4, 4 },
1771 { 0xD, 5 },
1772 { 0x26, 6 },
1773 { 0x27, 6 },
1774 { 0x14, 6 },
1775 { 0x63, 8 },
1776 { 0x189, 10 },
1777 { 0x623, 12 },
1778 { 0x622, 12 },
1779 { 0xB, 4 },
1780 { 0x12, 5 },
1781 { 0x3D, 6 },
1782 { 0x22, 6 },
1783 { 0x15, 6 },
1784 { 0xB, 5 },
1785 { 0x23, 6 },
1786 { 0x7, 4 },
1787 { 0x10, 5 }
1788 },
1789 { /* AC bias group 3, table 2 */
1790 { 0xF, 4 },
1791 { 0xC, 5 },
1792 { 0x43, 7 },
1793 { 0x10, 6 },
1794 { 0x44, 8 },
1795 { 0x114, 10 },
1796 { 0x455, 12 },
1797 { 0x18, 5 },
1798 { 0x23, 7 },
1799 { 0x1, 3 },
1800 { 0x0, 3 },
1801 { 0xE, 4 },
1802 { 0xD, 4 },
1803 { 0x9, 4 },
1804 { 0x19, 5 },
1805 { 0x9, 5 },
1806 { 0x17, 6 },
1807 { 0x16, 6 },
1808 { 0x42, 7 },
1809 { 0x8B, 9 },
1810 { 0x454, 12 },
1811 { 0x457, 12 },
1812 { 0x456, 12 },
1813 { 0xB, 4 },
1814 { 0x15, 5 },
1815 { 0xA, 5 },
1816 { 0x29, 6 },
1817 { 0x20, 6 },
1818 { 0xD, 5 },
1819 { 0x28, 6 },
1820 { 0x7, 4 },
1821 { 0x11, 5 }
1822 },
1823 { /* AC bias group 3, table 3 */
1824 { 0x1, 3 },
1825 { 0x1A, 5 },
1826 { 0x29, 6 },
1827 { 0x2A, 6 },
1828 { 0xA0, 8 },
1829 { 0x285, 10 },
1830 { 0x1425, 13 },
1831 { 0x2, 5 },
1832 { 0x0, 7 },
1833 { 0x2, 3 },
1834 { 0x3, 3 },
1835 { 0xC, 4 },
1836 { 0xB, 4 },
1837 { 0x8, 4 },
1838 { 0x12, 5 },
1839 { 0x1, 6 },
1840 { 0x51, 7 },
1841 { 0x1, 7 },
1842 { 0x143, 9 },
1843 { 0x508, 11 },
1844 { 0x1424, 13 },
1845 { 0x1427, 13 },
1846 { 0x1426, 13 },
1847 { 0xF, 4 },
1848 { 0x1C, 5 },
1849 { 0x3, 5 },
1850 { 0x37, 6 },
1851 { 0x2B, 6 },
1852 { 0x13, 5 },
1853 { 0x36, 6 },
1854 { 0x1D, 5 },
1855 { 0x1, 5 }
1856 },
1857 { /* AC bias group 3, table 4 */
1858 { 0x4, 3 },
1859 { 0x1F, 5 },
1860 { 0x3D, 6 },
1861 { 0x6, 5 },
1862 { 0x16, 7 },
1863 { 0x53, 9 },
1864 { 0x14A, 11 },
1865 { 0x34, 6 },
1866 { 0x2A, 8 },
1867 { 0x2, 3 },
1868 { 0x3, 3 },
1869 { 0xB, 4 },
1870 { 0xC, 4 },
1871 { 0x1C, 5 },
1872 { 0x37, 6 },
1873 { 0x17, 7 },
1874 { 0x2B, 8 },
1875 { 0x28, 8 },
1876 { 0xA4, 10 },
1877 { 0x52D, 13 },
1878 { 0x52C, 13 },
1879 { 0x52F, 13 },
1880 { 0x52E, 13 },
1881 { 0x0, 3 },
1882 { 0x1D, 5 },
1883 { 0x7, 5 },
1884 { 0x4, 5 },
1885 { 0x35, 6 },
1886 { 0x14, 5 },
1887 { 0x36, 6 },
1888 { 0x15, 5 },
1889 { 0x3C, 6 }
1890 },
1891 { /* AC bias group 3, table 5 */
1892 { 0x4, 3 },
1893 { 0xA, 4 },
1894 { 0x7, 5 },
1895 { 0x1D, 5 },
1896 { 0x9, 6 },
1897 { 0x1F3, 9 },
1898 { 0x7C7, 11 },
1899 { 0x8, 6 },
1900 { 0x1F0, 9 },
1901 { 0x3, 3 },
1902 { 0x2, 3 },
1903 { 0xD, 4 },
1904 { 0xC, 4 },
1905 { 0x17, 5 },
1906 { 0x7D, 7 },
1907 { 0x1F2, 9 },
1908 { 0x7C6, 11 },
1909 { 0x7C5, 11 },
1910 { 0x1F12, 13 },
1911 { 0x3E27, 14 },
1912 { 0x3E26, 14 },
1913 { 0x1F11, 13 },
1914 { 0x1F10, 13 },
1915 { 0x0, 3 },
1916 { 0x1E, 5 },
1917 { 0x6, 5 },
1918 { 0x39, 6 },
1919 { 0x38, 6 },
1920 { 0x3F, 6 },
1921 { 0x2C, 6 },
1922 { 0x5, 5 },
1923 { 0x2D, 6 }
1924 },
1925 { /* AC bias group 3, table 6 */
1926 { 0x2, 3 },
1927 { 0x7, 4 },
1928 { 0x18, 5 },
1929 { 0x3, 4 },
1930 { 0x5, 5 },
1931 { 0x35, 7 },
1932 { 0x4F, 9 },
1933 { 0x12, 7 },
1934 { 0x4E5, 13 },
1935 { 0x5, 3 },
1936 { 0x4, 3 },
1937 { 0xD, 4 },
1938 { 0xE, 4 },
1939 { 0x33, 6 },
1940 { 0x26, 8 },
1941 { 0x9D, 10 },
1942 { 0x4E4, 13 },
1943 { 0x4E7, 13 },
1944 { 0x4E6, 13 },
1945 { 0x4E1, 13 },
1946 { 0x4E0, 13 },
1947 { 0x4E3, 13 },
1948 { 0x4E2, 13 },
1949 { 0x0, 3 },
1950 { 0x1F, 5 },
1951 { 0xC, 5 },
1952 { 0x3D, 6 },
1953 { 0x3C, 6 },
1954 { 0x32, 6 },
1955 { 0x34, 7 },
1956 { 0x1B, 6 },
1957 { 0x8, 6 }
1958 },
1959 { /* AC bias group 3, table 7 */
1960 { 0x0, 3 },
1961 { 0x4, 4 },
1962 { 0x1C, 5 },
1963 { 0xF, 4 },
1964 { 0x2, 4 },
1965 { 0x7, 5 },
1966 { 0x75, 7 },
1967 { 0xE8, 8 },
1968 { 0x1D2A, 13 },
1969 { 0x5, 3 },
1970 { 0x4, 3 },
1971 { 0xD, 4 },
1972 { 0xC, 4 },
1973 { 0x77, 7 },
1974 { 0xE96, 12 },
1975 { 0x3A57, 14 },
1976 { 0x3A56, 14 },
1977 { 0x3A5D, 14 },
1978 { 0x3A5C, 14 },
1979 { 0x3A5F, 14 },
1980 { 0x3A5E, 14 },
1981 { 0x1D29, 13 },
1982 { 0x1D28, 13 },
1983 { 0x3, 3 },
1984 { 0x6, 5 },
1985 { 0xA, 5 },
1986 { 0x2C, 7 },
1987 { 0x17, 6 },
1988 { 0x76, 7 },
1989 { 0x1D3, 9 },
1990 { 0x3A4, 10 },
1991 { 0x2D, 7 }
1992 },
1993 { /* AC bias group 3, table 8 */
1994 { 0xA, 4 },
1995 { 0x24, 6 },
1996 { 0xBF, 8 },
1997 { 0x85, 8 },
1998 { 0x211, 10 },
1999 { 0x842, 12 },
2000 { 0x1087, 13 },
2001 { 0x18, 5 },
2002 { 0x20, 6 },
2003 { 0x1, 3 },
2004 { 0x2, 3 },
2005 { 0xE, 4 },
2006 { 0xD, 4 },
2007 { 0x7, 4 },
2008 { 0x13, 5 },
2009 { 0x25, 6 },
2010 { 0x5E, 7 },
2011 { 0x43, 7 },
2012 { 0xBE, 8 },
2013 { 0x109, 9 },
2014 { 0x1086, 13 },
2015 { 0x841, 12 },
2016 { 0x840, 12 },
2017 { 0xF, 4 },
2018 { 0x1, 4 },
2019 { 0x11, 5 },
2020 { 0x0, 5 },
2021 { 0x2E, 6 },
2022 { 0x19, 5 },
2023 { 0x1, 5 },
2024 { 0x6, 4 },
2025 { 0x16, 5 }
2026 },
2027 { /* AC bias group 3, table 9 */
2028 { 0x2, 3 },
2029 { 0xF, 5 },
2030 { 0x6F, 7 },
2031 { 0x61, 7 },
2032 { 0x374, 10 },
2033 { 0x1BA8, 13 },
2034 { 0x3753, 14 },
2035 { 0x12, 5 },
2036 { 0x36, 6 },
2037 { 0x0, 3 },
2038 { 0x1, 3 },
2039 { 0xA, 4 },
2040 { 0xB, 4 },
2041 { 0x1A, 5 },
2042 { 0x31, 6 },
2043 { 0x60, 7 },
2044 { 0xDC, 8 },
2045 { 0x1BB, 9 },
2046 { 0x6EB, 11 },
2047 { 0x1BAB, 13 },
2048 { 0x3752, 14 },
2049 { 0x3755, 14 },
2050 { 0x3754, 14 },
2051 { 0xE, 4 },
2052 { 0x6, 4 },
2053 { 0x13, 5 },
2054 { 0xE, 5 },
2055 { 0x3E, 6 },
2056 { 0x8, 4 },
2057 { 0x1E, 5 },
2058 { 0x19, 5 },
2059 { 0x3F, 6 }
2060 },
2061 { /* AC bias group 3, table 10 */
2062 { 0x3, 3 },
2063 { 0x1C, 5 },
2064 { 0x25, 6 },
2065 { 0x24, 6 },
2066 { 0x1DA, 9 },
2067 { 0x1DBD, 13 },
2068 { 0x3B7C, 14 },
2069 { 0x3C, 6 },
2070 { 0x3D, 6 },
2071 { 0x0, 3 },
2072 { 0x1, 3 },
2073 { 0xB, 4 },
2074 { 0xA, 4 },
2075 { 0xB, 5 },
2076 { 0x77, 7 },
2077 { 0xEC, 8 },
2078 { 0x3B6, 10 },
2079 { 0x76E, 11 },
2080 { 0x1DBF, 13 },
2081 { 0x76FB, 15 },
2082 { 0x76FA, 15 },
2083 { 0x3B79, 14 },
2084 { 0x3B78, 14 },
2085 { 0xD, 4 },
2086 { 0x1F, 5 },
2087 { 0x13, 5 },
2088 { 0xA, 5 },
2089 { 0x8, 5 },
2090 { 0xC, 4 },
2091 { 0x8, 4 },
2092 { 0x9, 5 },
2093 { 0x3A, 6 }
2094 },
2095 { /* AC bias group 3, table 11 */
2096 { 0x5, 3 },
2097 { 0x3, 4 },
2098 { 0x4, 5 },
2099 { 0x10, 5 },
2100 { 0x8F, 8 },
2101 { 0x475, 11 },
2102 { 0x11D1, 13 },
2103 { 0x79, 7 },
2104 { 0x27, 6 },
2105 { 0x2, 3 },
2106 { 0x3, 3 },
2107 { 0x1, 4 },
2108 { 0x0, 4 },
2109 { 0x26, 6 },
2110 { 0x46, 7 },
2111 { 0x11C, 9 },
2112 { 0x477, 11 },
2113 { 0x8ED, 12 },
2114 { 0x11D0, 13 },
2115 { 0x11D3, 13 },
2116 { 0x11D2, 13 },
2117 { 0x11D9, 13 },
2118 { 0x11D8, 13 },
2119 { 0xD, 4 },
2120 { 0x1F, 5 },
2121 { 0x12, 5 },
2122 { 0x5, 5 },
2123 { 0x3D, 6 },
2124 { 0xC, 4 },
2125 { 0xE, 4 },
2126 { 0x22, 6 },
2127 { 0x78, 7 }
2128 },
2129 { /* AC bias group 3, table 12 */
2130 { 0x5, 3 },
2131 { 0xC, 4 },
2132 { 0x1B, 5 },
2133 { 0x0, 4 },
2134 { 0x6, 6 },
2135 { 0x3E2, 10 },
2136 { 0x3E3D, 14 },
2137 { 0xF, 7 },
2138 { 0x34, 6 },
2139 { 0x3, 3 },
2140 { 0x2, 3 },
2141 { 0x1E, 5 },
2142 { 0x1D, 5 },
2143 { 0x7D, 7 },
2144 { 0x1F0, 9 },
2145 { 0x7C6, 11 },
2146 { 0x3E3C, 14 },
2147 { 0x3E3F, 14 },
2148 { 0x3E3E, 14 },
2149 { 0x3E39, 14 },
2150 { 0x3E38, 14 },
2151 { 0x3E3B, 14 },
2152 { 0x3E3A, 14 },
2153 { 0x8, 4 },
2154 { 0x1C, 5 },
2155 { 0x2, 5 },
2156 { 0x3F, 6 },
2157 { 0x35, 6 },
2158 { 0x9, 4 },
2159 { 0x1, 3 },
2160 { 0xE, 7 },
2161 { 0xF9, 8 }
2162 },
2163 { /* AC bias group 3, table 13 */
2164 { 0x4, 3 },
2165 { 0xB, 4 },
2166 { 0x1, 4 },
2167 { 0xA, 4 },
2168 { 0x1E, 6 },
2169 { 0xE0, 9 },
2170 { 0xE1E, 13 },
2171 { 0x71, 8 },
2172 { 0x39, 7 },
2173 { 0x7, 3 },
2174 { 0x6, 3 },
2175 { 0xD, 5 },
2176 { 0xC, 5 },
2177 { 0x20, 7 },
2178 { 0x1C2, 10 },
2179 { 0x1C3F, 14 },
2180 { 0x1C3E, 14 },
2181 { 0xE19, 13 },
2182 { 0xE18, 13 },
2183 { 0xE1B, 13 },
2184 { 0xE1A, 13 },
2185 { 0xE1D, 13 },
2186 { 0xE1C, 13 },
2187 { 0x0, 4 },
2188 { 0x9, 5 },
2189 { 0x1D, 6 },
2190 { 0x1F, 6 },
2191 { 0x11, 6 },
2192 { 0x5, 4 },
2193 { 0x1, 3 },
2194 { 0x43, 8 },
2195 { 0x42, 8 }
2196 },
2197 { /* AC bias group 3, table 14 */
2198 { 0x4, 3 },
2199 { 0xD, 4 },
2200 { 0x7, 4 },
2201 { 0x2, 3 },
2202 { 0x14, 5 },
2203 { 0x16C, 9 },
2204 { 0x16D1, 13 },
2205 { 0x2DF, 10 },
2206 { 0x16E, 9 },
2207 { 0x0, 2 },
2208 { 0x7, 3 },
2209 { 0x2C, 6 },
2210 { 0x2B, 6 },
2211 { 0x2DE, 10 },
2212 { 0x16D0, 13 },
2213 { 0x16D3, 13 },
2214 { 0x16D2, 13 },
2215 { 0x2DB5, 14 },
2216 { 0x2DB4, 14 },
2217 { 0x2DB7, 14 },
2218 { 0x2DB6, 14 },
2219 { 0x16D9, 13 },
2220 { 0x16D8, 13 },
2221 { 0xC, 5 },
2222 { 0x2A, 6 },
2223 { 0x5A, 7 },
2224 { 0x1B, 6 },
2225 { 0x1A, 6 },
2226 { 0x17, 5 },
2227 { 0xC, 4 },
2228 { 0x5B7, 11 },
2229 { 0x5B5, 11 }
2230 },
2231 { /* AC bias group 3, table 15 */
2232 { 0x2, 2 },
2233 { 0xF, 4 },
2234 { 0x1C, 5 },
2235 { 0xC, 4 },
2236 { 0x3B, 6 },
2237 { 0x1AC, 9 },
2238 { 0x1AD8, 13 },
2239 { 0x35B3, 14 },
2240 { 0x35B2, 14 },
2241 { 0x1, 2 },
2242 { 0x0, 2 },
2243 { 0x69, 7 },
2244 { 0x68, 7 },
2245 { 0x35BD, 14 },
2246 { 0x35BC, 14 },
2247 { 0x35BF, 14 },
2248 { 0x35BE, 14 },
2249 { 0x35B9, 14 },
2250 { 0x35B8, 14 },
2251 { 0x35BB, 14 },
2252 { 0x35BA, 14 },
2253 { 0x35B5, 14 },
2254 { 0x35B4, 14 },
2255 { 0x1A9, 9 },
2256 { 0x1A8, 9 },
2257 { 0x35A, 10 },
2258 { 0xD7, 8 },
2259 { 0xD5, 8 },
2260 { 0x3A, 6 },
2261 { 0x1B, 5 },
2262 { 0x35B7, 14 },
2263 { 0x35B6, 14 }
2264 }
2265};
2266
2267static const uint16_t ac_bias_3[16][32][2] = {
2268 { /* AC bias group 4, table 0 */
2269 { 0x0, 3 },
2270 { 0x10, 5 },
2271 { 0x72, 7 },
2272 { 0x71, 7 },
2273 { 0x154, 9 },
2274 { 0xAAB, 12 },
2275 { 0xAA8, 12 },
2276 { 0x14, 5 },
2277 { 0x70, 7 },
2278 { 0x2, 3 },
2279 { 0x3, 3 },
2280 { 0xC, 4 },
2281 { 0xB, 4 },
2282 { 0x3, 4 },
2283 { 0x11, 5 },
2284 { 0x73, 7 },
2285 { 0x54, 7 },
2286 { 0xAB, 8 },
2287 { 0x2AB, 10 },
2288 { 0x1553, 13 },
2289 { 0x1552, 13 },
2290 { 0x1555, 13 },
2291 { 0x1554, 13 },
2292 { 0xD, 4 },
2293 { 0x1E, 5 },
2294 { 0x12, 5 },
2295 { 0x3E, 6 },
2296 { 0x2B, 6 },
2297 { 0x2, 4 },
2298 { 0x3F, 6 },
2299 { 0x1D, 5 },
2300 { 0x13, 5 }
2301 },
2302 { /* AC bias group 4, table 1 */
2303 { 0x3, 3 },
2304 { 0x1F, 5 },
2305 { 0x29, 6 },
2306 { 0x3D, 6 },
2307 { 0xC, 7 },
2308 { 0x69, 10 },
2309 { 0x345, 13 },
2310 { 0x2, 5 },
2311 { 0x28, 6 },
2312 { 0x2, 3 },
2313 { 0x1, 3 },
2314 { 0xE, 4 },
2315 { 0xC, 4 },
2316 { 0x15, 5 },
2317 { 0x7, 6 },
2318 { 0x1B, 8 },
2319 { 0x6B, 10 },
2320 { 0x6A, 10 },
2321 { 0x344, 13 },
2322 { 0x347, 13 },
2323 { 0x346, 13 },
2324 { 0x1A1, 12 },
2325 { 0x1A0, 12 },
2326 { 0xB, 4 },
2327 { 0x1A, 5 },
2328 { 0x12, 5 },
2329 { 0x0, 5 },
2330 { 0x3C, 6 },
2331 { 0x8, 4 },
2332 { 0x1B, 5 },
2333 { 0x13, 5 },
2334 { 0x1, 5 }
2335 },
2336 { /* AC bias group 4, table 2 */
2337 { 0x4, 3 },
2338 { 0x4, 4 },
2339 { 0x3F, 6 },
2340 { 0x14, 5 },
2341 { 0x56, 7 },
2342 { 0x15C, 9 },
2343 { 0x15D5, 13 },
2344 { 0x3C, 6 },
2345 { 0x2A, 6 },
2346 { 0x0, 3 },
2347 { 0x1, 3 },
2348 { 0xE, 4 },
2349 { 0xD, 4 },
2350 { 0xC, 5 },
2351 { 0xAF, 8 },
2352 { 0x2BB, 10 },
2353 { 0x15D4, 13 },
2354 { 0x15D7, 13 },
2355 { 0x15D6, 13 },
2356 { 0x15D1, 13 },
2357 { 0x15D0, 13 },
2358 { 0x15D3, 13 },
2359 { 0x15D2, 13 },
2360 { 0xB, 4 },
2361 { 0x19, 5 },
2362 { 0xD, 5 },
2363 { 0x3E, 6 },
2364 { 0x31, 6 },
2365 { 0x7, 4 },
2366 { 0x5, 4 },
2367 { 0x3D, 6 },
2368 { 0x30, 6 }
2369 },
2370 { /* AC bias group 4, table 3 */
2371 { 0x5, 3 },
2372 { 0x8, 4 },
2373 { 0x1A, 5 },
2374 { 0x0, 4 },
2375 { 0x36, 6 },
2376 { 0x11, 8 },
2377 { 0x106, 12 },
2378 { 0xA, 7 },
2379 { 0x6E, 7 },
2380 { 0x2, 3 },
2381 { 0x3, 3 },
2382 { 0x3, 4 },
2383 { 0x2, 4 },
2384 { 0x6F, 7 },
2385 { 0x21, 9 },
2386 { 0x20F, 13 },
2387 { 0x20E, 13 },
2388 { 0x101, 12 },
2389 { 0x100, 12 },
2390 { 0x103, 12 },
2391 { 0x102, 12 },
2392 { 0x105, 12 },
2393 { 0x104, 12 },
2394 { 0xC, 4 },
2395 { 0x1E, 5 },
2396 { 0x3, 5 },
2397 { 0x3E, 6 },
2398 { 0x3F, 6 },
2399 { 0x9, 4 },
2400 { 0xE, 4 },
2401 { 0xB, 7 },
2402 { 0x9, 7 }
2403 },
2404 { /* AC bias group 4, table 4 */
2405 { 0x2, 3 },
2406 { 0xE, 4 },
2407 { 0x1E, 5 },
2408 { 0xC, 4 },
2409 { 0x1F, 5 },
2410 { 0x6E, 7 },
2411 { 0xAD, 10 },
2412 { 0xAF, 10 },
2413 { 0x14, 7 },
2414 { 0x4, 3 },
2415 { 0x3, 3 },
2416 { 0x1A, 5 },
2417 { 0x17, 5 },
2418 { 0x2A, 8 },
2419 { 0x576, 13 },
2420 { 0xAEF, 14 },
2421 { 0xAEE, 14 },
2422 { 0x571, 13 },
2423 { 0x570, 13 },
2424 { 0x573, 13 },
2425 { 0x572, 13 },
2426 { 0x575, 13 },
2427 { 0x574, 13 },
2428 { 0x3, 4 },
2429 { 0x16, 5 },
2430 { 0x4, 5 },
2431 { 0x36, 6 },
2432 { 0xB, 6 },
2433 { 0xA, 4 },
2434 { 0x0, 3 },
2435 { 0x6F, 7 },
2436 { 0xAC, 10 }
2437 },
2438 { /* AC bias group 4, table 5 */
2439 { 0x4, 3 },
2440 { 0x5, 4 },
2441 { 0x3, 3 },
2442 { 0x1, 3 },
2443 { 0x4, 4 },
2444 { 0x2F, 6 },
2445 { 0x526, 11 },
2446 { 0x1495, 13 },
2447 { 0xA6, 8 },
2448 { 0x7, 3 },
2449 { 0x6, 3 },
2450 { 0x2D, 6 },
2451 { 0x2C, 6 },
2452 { 0x1494, 13 },
2453 { 0x1497, 13 },
2454 { 0x1496, 13 },
2455 { 0x1491, 13 },
2456 { 0x1490, 13 },
2457 { 0x1493, 13 },
2458 { 0x1492, 13 },
2459 { 0x293D, 14 },
2460 { 0x293C, 14 },
2461 { 0x293F, 14 },
2462 { 0x0, 3 },
2463 { 0x28, 6 },
2464 { 0xA5, 8 },
2465 { 0x148, 9 },
2466 { 0xA7, 8 },
2467 { 0x2E, 6 },
2468 { 0x15, 5 },
2469 { 0xA4E, 12 },
2470 { 0x293E, 14 }
2471 },
2472 { /* AC bias group 4, table 6 */
2473 { 0x4, 3 },
2474 { 0x5, 4 },
2475 { 0x3, 3 },
2476 { 0x1, 3 },
2477 { 0x4, 4 },
2478 { 0x2F, 6 },
2479 { 0x526, 11 },
2480 { 0x1495, 13 },
2481 { 0xA6, 8 },
2482 { 0x7, 3 },
2483 { 0x6, 3 },
2484 { 0x2D, 6 },
2485 { 0x2C, 6 },
2486 { 0x1494, 13 },
2487 { 0x1497, 13 },
2488 { 0x1496, 13 },
2489 { 0x1491, 13 },
2490 { 0x1490, 13 },
2491 { 0x1493, 13 },
2492 { 0x1492, 13 },
2493 { 0x293D, 14 },
2494 { 0x293C, 14 },
2495 { 0x293F, 14 },
2496 { 0x0, 3 },
2497 { 0x28, 6 },
2498 { 0xA5, 8 },
2499 { 0x148, 9 },
2500 { 0xA7, 8 },
2501 { 0x2E, 6 },
2502 { 0x15, 5 },
2503 { 0xA4E, 12 },
2504 { 0x293E, 14 }
2505 },
2506 { /* AC bias group 4, table 7 */
2507 { 0x4, 3 },
2508 { 0x5, 4 },
2509 { 0x3, 3 },
2510 { 0x1, 3 },
2511 { 0x4, 4 },
2512 { 0x2F, 6 },
2513 { 0x526, 11 },
2514 { 0x1495, 13 },
2515 { 0xA6, 8 },
2516 { 0x7, 3 },
2517 { 0x6, 3 },
2518 { 0x2D, 6 },
2519 { 0x2C, 6 },
2520 { 0x1494, 13 },
2521 { 0x1497, 13 },
2522 { 0x1496, 13 },
2523 { 0x1491, 13 },
2524 { 0x1490, 13 },
2525 { 0x1493, 13 },
2526 { 0x1492, 13 },
2527 { 0x293D, 14 },
2528 { 0x293C, 14 },
2529 { 0x293F, 14 },
2530 { 0x0, 3 },
2531 { 0x28, 6 },
2532 { 0xA5, 8 },
2533 { 0x148, 9 },
2534 { 0xA7, 8 },
2535 { 0x2E, 6 },
2536 { 0x15, 5 },
2537 { 0xA4E, 12 },
2538 { 0x293E, 14 }
2539 },
2540 { /* AC bias group 4, table 8 */
2541 { 0x3, 3 },
2542 { 0x11, 5 },
2543 { 0x20, 6 },
2544 { 0x74, 7 },
2545 { 0x10D, 9 },
2546 { 0x863, 12 },
2547 { 0x860, 12 },
2548 { 0xA, 5 },
2549 { 0x75, 7 },
2550 { 0x1, 3 },
2551 { 0x0, 3 },
2552 { 0xB, 4 },
2553 { 0xA, 4 },
2554 { 0x18, 5 },
2555 { 0x38, 6 },
2556 { 0x42, 7 },
2557 { 0x10F, 9 },
2558 { 0x10E, 9 },
2559 { 0x219, 10 },
2560 { 0x10C3, 13 },
2561 { 0x10C2, 13 },
2562 { 0x10C5, 13 },
2563 { 0x10C4, 13 },
2564 { 0xF, 4 },
2565 { 0x4, 4 },
2566 { 0x19, 5 },
2567 { 0xB, 5 },
2568 { 0x39, 6 },
2569 { 0x9, 4 },
2570 { 0x1B, 5 },
2571 { 0x1A, 5 },
2572 { 0x3B, 6 }
2573 },
2574 { /* AC bias group 4, table 9 */
2575 { 0x5, 3 },
2576 { 0x1, 4 },
2577 { 0x3E, 6 },
2578 { 0x1, 5 },
2579 { 0xE2, 8 },
2580 { 0x1C6F, 13 },
2581 { 0x38D9, 14 },
2582 { 0x39, 6 },
2583 { 0x1F, 6 },
2584 { 0x2, 3 },
2585 { 0x1, 3 },
2586 { 0x9, 4 },
2587 { 0x8, 4 },
2588 { 0x0, 5 },
2589 { 0x70, 7 },
2590 { 0x1C7, 9 },
2591 { 0x38C, 10 },
2592 { 0x71A, 11 },
2593 { 0x38D8, 14 },
2594 { 0x38DB, 14 },
2595 { 0x38DA, 14 },
2596 { 0x38DD, 14 },
2597 { 0x38DC, 14 },
2598 { 0xD, 4 },
2599 { 0x1D, 5 },
2600 { 0xE, 5 },
2601 { 0x3F, 6 },
2602 { 0x3C, 6 },
2603 { 0xC, 4 },
2604 { 0x6, 4 },
2605 { 0x3D, 6 },
2606 { 0x1E, 6 }
2607 },
2608 { /* AC bias group 4, table 10 */
2609 { 0x6, 3 },
2610 { 0xB, 4 },
2611 { 0x11, 5 },
2612 { 0x1E, 5 },
2613 { 0x74, 7 },
2614 { 0x3AA, 10 },
2615 { 0x1D5C, 13 },
2616 { 0x1, 6 },
2617 { 0x21, 6 },
2618 { 0x1, 3 },
2619 { 0x2, 3 },
2620 { 0x7, 4 },
2621 { 0x6, 4 },
2622 { 0x3E, 6 },
2623 { 0xEB, 8 },
2624 { 0x1D4, 9 },
2625 { 0xEAF, 12 },
2626 { 0x3ABB, 14 },
2627 { 0x3ABA, 14 },
2628 { 0x1D59, 13 },
2629 { 0x1D58, 13 },
2630 { 0x1D5B, 13 },
2631 { 0x1D5A, 13 },
2632 { 0xA, 4 },
2633 { 0x1C, 5 },
2634 { 0x1, 5 },
2635 { 0x3F, 6 },
2636 { 0x3B, 6 },
2637 { 0x1, 4 },
2638 { 0x9, 4 },
2639 { 0x20, 6 },
2640 { 0x0, 6 }
2641 },
2642 { /* AC bias group 4, table 11 */
2643 { 0x4, 3 },
2644 { 0xA, 4 },
2645 { 0x17, 5 },
2646 { 0x4, 4 },
2647 { 0x16, 6 },
2648 { 0x16A, 9 },
2649 { 0x16B1, 13 },
2650 { 0x17, 7 },
2651 { 0x5B, 7 },
2652 { 0x6, 3 },
2653 { 0x7, 3 },
2654 { 0x1, 4 },
2655 { 0x0, 4 },
2656 { 0xA, 6 },
2657 { 0x2D7, 10 },
2658 { 0xB5A, 12 },
2659 { 0x16B0, 13 },
2660 { 0x16B3, 13 },
2661 { 0x16B2, 13 },
2662 { 0x2D6D, 14 },
2663 { 0x2D6C, 14 },
2664 { 0x2D6F, 14 },
2665 { 0x2D6E, 14 },
2666 { 0x6, 4 },
2667 { 0xA, 5 },
2668 { 0x4, 5 },
2669 { 0x2C, 6 },
2670 { 0x17, 6 },
2671 { 0x3, 4 },
2672 { 0x7, 4 },
2673 { 0x16, 7 },
2674 { 0xB4, 8 }
2675 },
2676 { /* AC bias group 4, table 12 */
2677 { 0x5, 3 },
2678 { 0xD, 4 },
2679 { 0x5, 4 },
2680 { 0x9, 4 },
2681 { 0x33, 6 },
2682 { 0x193, 9 },
2683 { 0x192C, 13 },
2684 { 0x61, 8 },
2685 { 0x31, 7 },
2686 { 0x0, 2 },
2687 { 0x7, 3 },
2688 { 0x10, 5 },
2689 { 0x11, 5 },
2690 { 0xC8, 8 },
2691 { 0x192F, 13 },
2692 { 0x325B, 14 },
2693 { 0x325A, 14 },
2694 { 0x1929, 13 },
2695 { 0x1928, 13 },
2696 { 0x192B, 13 },
2697 { 0x192A, 13 },
2698 { 0x325D, 14 },
2699 { 0x325C, 14 },
2700 { 0x18, 5 },
2701 { 0x1A, 6 },
2702 { 0x1B, 6 },
2703 { 0x65, 7 },
2704 { 0x19, 6 },
2705 { 0x4, 4 },
2706 { 0x7, 4 },
2707 { 0x60, 8 },
2708 { 0x324, 10 }
2709 },
2710 { /* AC bias group 4, table 13 */
2711 { 0x6, 3 },
2712 { 0x0, 3 },
2713 { 0x2, 4 },
2714 { 0xF, 4 },
2715 { 0x39, 6 },
2716 { 0x1D9, 9 },
2717 { 0x1D82, 13 },
2718 { 0x761, 11 },
2719 { 0x3BE, 10 },
2720 { 0x1, 2 },
2721 { 0x2, 2 },
2722 { 0xF, 6 },
2723 { 0xE, 6 },
2724 { 0x762, 11 },
2725 { 0x3B07, 14 },
2726 { 0x3B06, 14 },
2727 { 0x3B1D, 14 },
2728 { 0x3B1C, 14 },
2729 { 0x3B1F, 14 },
2730 { 0x3B1E, 14 },
2731 { 0x3B19, 14 },
2732 { 0x3B18, 14 },
2733 { 0x3B1B, 14 },
2734 { 0x38, 6 },
2735 { 0x1DE, 9 },
2736 { 0xED, 8 },
2737 { 0x3BF, 10 },
2738 { 0xEE, 8 },
2739 { 0x3A, 6 },
2740 { 0x6, 5 },
2741 { 0xEC0, 12 },
2742 { 0x3B1A, 14 }
2743 },
2744 { /* AC bias group 4, table 14 */
2745 { 0x0, 2 },
2746 { 0x2, 3 },
2747 { 0xF, 5 },
2748 { 0x6, 4 },
2749 { 0x1C, 6 },
2750 { 0x1D0, 10 },
2751 { 0xE8C, 13 },
2752 { 0x1D1B, 14 },
2753 { 0x1D1A, 14 },
2754 { 0x3, 2 },
2755 { 0x2, 2 },
2756 { 0xEA, 9 },
2757 { 0xE9, 9 },
2758 { 0xE89, 13 },
2759 { 0xE88, 13 },
2760 { 0xE8B, 13 },
2761 { 0xE8A, 13 },
2762 { 0x1D65, 14 },
2763 { 0x1D64, 14 },
2764 { 0x1D67, 14 },
2765 { 0x1D66, 14 },
2766 { 0x1D61, 14 },
2767 { 0x1D60, 14 },
2768 { 0x3AD, 11 },
2769 { 0x1D63, 14 },
2770 { 0x1D62, 14 },
2771 { 0x1D1D, 14 },
2772 { 0x1D1C, 14 },
2773 { 0x3B, 7 },
2774 { 0x1D7, 10 },
2775 { 0x1D1F, 14 },
2776 { 0x1D1E, 14 }
2777 },
2778 { /* AC bias group 4, table 15 */
2779 { 0x2, 2 },
2780 { 0xF, 4 },
2781 { 0x1C, 5 },
2782 { 0xC, 4 },
2783 { 0x3B, 6 },
2784 { 0x1AC, 9 },
2785 { 0x1AD8, 13 },
2786 { 0x35B3, 14 },
2787 { 0x35B2, 14 },
2788 { 0x1, 2 },
2789 { 0x0, 2 },
2790 { 0x69, 7 },
2791 { 0x68, 7 },
2792 { 0x35BD, 14 },
2793 { 0x35BC, 14 },
2794 { 0x35BF, 14 },
2795 { 0x35BE, 14 },
2796 { 0x35B9, 14 },
2797 { 0x35B8, 14 },
2798 { 0x35BB, 14 },
2799 { 0x35BA, 14 },
2800 { 0x35B5, 14 },
2801 { 0x35B4, 14 },
2802 { 0x1A9, 9 },
2803 { 0x1A8, 9 },
2804 { 0x35A, 10 },
2805 { 0xD7, 8 },
2806 { 0xD5, 8 },
2807 { 0x3A, 6 },
2808 { 0x1B, 5 },
2809 { 0x35B7, 14 },
2810 { 0x35B6, 14 }
2811 }
2812};
2813
2814#endif /* VP3DATA_H */