Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2436 lines
36 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1995 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. ;// $Author: KMILLS $
  15. ;// $Date: 22 Dec 1995 14:41:08 $
  16. ;// $Archive: S:\h26x\src\dec\d1tables.cpv $
  17. ;// $Header: S:\h26x\src\dec\d1tables.cpv 1.11 22 Dec 1995 14:41:08 KMILLS $
  18. ;// $Log: S:\h26x\src\dec\d1tables.cpv $
  19. //
  20. // Rev 1.11 22 Dec 1995 14:41:08 KMILLS
  21. //
  22. // added new copyright notice
  23. //
  24. // Rev 1.10 26 Oct 1995 15:31:18 SCDAY
  25. // Changed MV tables
  26. //
  27. // Rev 1.9 23 Oct 1995 16:14:20 SCDAY
  28. // changed minor tables for >8 bit processing
  29. //
  30. // Rev 1.8 20 Oct 1995 13:16:52 SCDAY
  31. //
  32. // Changed motion vector tables and the type for gTAB_MV_ADJUST
  33. //
  34. // Rev 1.7 18 Oct 1995 14:50:26 AKASAI
  35. // Fixed bug in tcoeff tables. tc1a table was missing a set of 8 entries.
  36. // Had only 504 entries instead of 512.
  37. //
  38. // Rev 1.6 18 Oct 1995 11:01:26 SCDAY
  39. //
  40. // Added motion vector table
  41. //
  42. // Rev 1.5 16 Oct 1995 13:51:02 SCDAY
  43. // Merged in d1akktbl.cpp
  44. //
  45. // Rev 1.4 09 Oct 1995 08:21:30 SCDAY
  46. // fixed gTAB_ZZ_RUN
  47. //
  48. // Rev 1.3 21 Sep 1995 18:05:00 AKASAI
  49. // Updated Inverse quantization table, should now match version in d3tables.cp
  50. //
  51. // Rev 1.2 20 Sep 1995 15:34:14 SCDAY
  52. //
  53. // added Mtype, MVD, CBP tables
  54. //
  55. // Rev 1.1 19 Sep 1995 15:22:14 SCDAY
  56. // added MBA tables
  57. //
  58. // Rev 1.0 11 Sep 1995 13:51:54 SCDAY
  59. // Initial revision.
  60. //
  61. // Rev 1.5 31 Aug 1995 16:42:48 CZHU
  62. // Changed the format of MVD variable length decoder tables: major and minor
  63. //
  64. // Rev 1.4 24 Aug 1995 15:34:28 CZHU
  65. // Fixed bugs in the inverse quant table, and TCOEFF minor tables
  66. //
  67. // Rev 1.3 22 Aug 1995 17:39:00 CZHU
  68. //
  69. // Modified the TCOEFF_MAJOR and MINOR tables for embedded run values.
  70. //
  71. // Rev 1.2 18 Aug 1995 15:01:00 CZHU
  72. // Added run length tables ready for joint opt IDCT and RLD+ZZ
  73. //
  74. // Rev 1.1 16 Aug 1995 14:25:10 CZHU
  75. //
  76. // Rebuild the tables for IQ, RLD for Transform coefficients
  77. //
  78. // Rev 1.0 11 Aug 1995 15:50:56 CZHU
  79. // Initial revision.
  80. ;//
  81. ;// Rev 1.1 02 Aug 1995 11:47:04 CZHU
  82. ;//
  83. ;// Added table for inverse quantization and RLD-ZZ
  84. ;//
  85. ;// Rev 1.0 31 Jul 1995 15:46:20 CZHU
  86. ;// Initial revision.
  87. //Initialize global tables shared by all decoder instances:
  88. //Huffman tables, etc
  89. //declare the global static tables here
  90. #include "precomp.h"
  91. /* H261 tables */
  92. U16 gTAB_MBA_MAJOR[256]= {
  93. 0xff18, /* 0x00 */
  94. 0x0b22,
  95. 0xff00,
  96. 0xff10,
  97. 0xff08,
  98. 0xff00,
  99. 0x080f,
  100. 0x080e,
  101. 0x080d,
  102. 0x080c,
  103. 0x080b,
  104. 0x080a,
  105. 0x0709,
  106. 0x0709,
  107. 0x0708,
  108. 0x0708,
  109. 0x0507, /* 0x10 */
  110. 0x0507,
  111. 0x0507,
  112. 0x0507,
  113. 0x0507,
  114. 0x0507,
  115. 0x0507,
  116. 0x0507,
  117. 0x0506,
  118. 0x0506,
  119. 0x0506,
  120. 0x0506,
  121. 0x0506,
  122. 0x0506,
  123. 0x0506,
  124. 0x0506,
  125. 0x0405, /* 0x20 */
  126. 0x0405,
  127. 0x0405,
  128. 0x0405,
  129. 0x0405,
  130. 0x0405,
  131. 0x0405,
  132. 0x0405,
  133. 0x0405,
  134. 0x0405,
  135. 0x0405,
  136. 0x0405,
  137. 0x0405,
  138. 0x0405,
  139. 0x0405,
  140. 0x0405,
  141. 0x0404, /* 0x30 */
  142. 0x0404,
  143. 0x0404,
  144. 0x0404,
  145. 0x0404,
  146. 0x0404,
  147. 0x0404,
  148. 0x0404,
  149. 0x0404,
  150. 0x0404,
  151. 0x0404,
  152. 0x0404,
  153. 0x0404,
  154. 0x0404,
  155. 0x0404,
  156. 0x0404,
  157. 0x0303, /* 0x40 */
  158. 0x0303,
  159. 0x0303,
  160. 0x0303,
  161. 0x0303,
  162. 0x0303,
  163. 0x0303,
  164. 0x0303,
  165. 0x0303,
  166. 0x0303,
  167. 0x0303,
  168. 0x0303,
  169. 0x0303,
  170. 0x0303,
  171. 0x0303,
  172. 0x0303,
  173. 0x0303, /* 0x50 */
  174. 0x0303,
  175. 0x0303,
  176. 0x0303,
  177. 0x0303,
  178. 0x0303,
  179. 0x0303,
  180. 0x0303,
  181. 0x0303,
  182. 0x0303,
  183. 0x0303,
  184. 0x0303,
  185. 0x0303,
  186. 0x0303,
  187. 0x0303,
  188. 0x0303,
  189. 0x0302, /* 0x60 */
  190. 0x0302,
  191. 0x0302,
  192. 0x0302,
  193. 0x0302,
  194. 0x0302,
  195. 0x0302,
  196. 0x0302,
  197. 0x0302,
  198. 0x0302,
  199. 0x0302,
  200. 0x0302,
  201. 0x0302,
  202. 0x0302,
  203. 0x0302,
  204. 0x0302,
  205. 0x0302, /* 0x70 */
  206. 0x0302,
  207. 0x0302,
  208. 0x0302,
  209. 0x0302,
  210. 0x0302,
  211. 0x0302,
  212. 0x0302,
  213. 0x0302,
  214. 0x0302,
  215. 0x0302,
  216. 0x0302,
  217. 0x0302,
  218. 0x0302,
  219. 0x0302,
  220. 0x0302,
  221. 0x0101, /* 0x80 */
  222. 0x0101,
  223. 0x0101,
  224. 0x0101,
  225. 0x0101,
  226. 0x0101,
  227. 0x0101,
  228. 0x0101,
  229. 0x0101,
  230. 0x0101,
  231. 0x0101,
  232. 0x0101,
  233. 0x0101,
  234. 0x0101,
  235. 0x0101,
  236. 0x0101,
  237. 0x0101, /* 0x90 */
  238. 0x0101,
  239. 0x0101,
  240. 0x0101,
  241. 0x0101,
  242. 0x0101,
  243. 0x0101,
  244. 0x0101,
  245. 0x0101,
  246. 0x0101,
  247. 0x0101,
  248. 0x0101,
  249. 0x0101,
  250. 0x0101,
  251. 0x0101,
  252. 0x0101,
  253. 0x0101, /* 0xa0 */
  254. 0x0101,
  255. 0x0101,
  256. 0x0101,
  257. 0x0101,
  258. 0x0101,
  259. 0x0101,
  260. 0x0101,
  261. 0x0101,
  262. 0x0101,
  263. 0x0101,
  264. 0x0101,
  265. 0x0101,
  266. 0x0101,
  267. 0x0101,
  268. 0x0101,
  269. 0x0101, /* 0xb0 */
  270. 0x0101,
  271. 0x0101,
  272. 0x0101,
  273. 0x0101,
  274. 0x0101,
  275. 0x0101,
  276. 0x0101,
  277. 0x0101,
  278. 0x0101,
  279. 0x0101,
  280. 0x0101,
  281. 0x0101,
  282. 0x0101,
  283. 0x0101,
  284. 0x0101,
  285. 0x0101, /* 0xc0 */
  286. 0x0101,
  287. 0x0101,
  288. 0x0101,
  289. 0x0101,
  290. 0x0101,
  291. 0x0101,
  292. 0x0101,
  293. 0x0101,
  294. 0x0101,
  295. 0x0101,
  296. 0x0101,
  297. 0x0101,
  298. 0x0101,
  299. 0x0101,
  300. 0x0101,
  301. 0x0101, /* 0xd0 */
  302. 0x0101,
  303. 0x0101,
  304. 0x0101,
  305. 0x0101,
  306. 0x0101,
  307. 0x0101,
  308. 0x0101,
  309. 0x0101,
  310. 0x0101,
  311. 0x0101,
  312. 0x0101,
  313. 0x0101,
  314. 0x0101,
  315. 0x0101,
  316. 0x0101,
  317. 0x0101, /* 0xe0 */
  318. 0x0101,
  319. 0x0101,
  320. 0x0101,
  321. 0x0101,
  322. 0x0101,
  323. 0x0101,
  324. 0x0101,
  325. 0x0101,
  326. 0x0101,
  327. 0x0101,
  328. 0x0101,
  329. 0x0101,
  330. 0x0101,
  331. 0x0101,
  332. 0x0101,
  333. 0x0101, /* 0xf0 */
  334. 0x0101,
  335. 0x0101,
  336. 0x0101,
  337. 0x0101,
  338. 0x0101,
  339. 0x0101,
  340. 0x0101,
  341. 0x0101,
  342. 0x0101,
  343. 0x0101,
  344. 0x0101,
  345. 0x0101,
  346. 0x0101,
  347. 0x0101,
  348. 0x0101
  349. };
  350. U16 gTAB_MBA_MINOR[32]= {
  351. 0x0a13, /* 16 - 19 */
  352. 0x0a13,
  353. 0x0a12,
  354. 0x0a12,
  355. 0x0a11,
  356. 0x0a11,
  357. 0x0a10,
  358. 0x0a10,
  359. 0x0b19, /* 20 - 25 */
  360. 0x0b18,
  361. 0x0b17,
  362. 0x0b16,
  363. 0x0a15,
  364. 0x0a15,
  365. 0x0a14,
  366. 0x0a14,
  367. 0x0b21, /* 26 - 33 */
  368. 0x0b20,
  369. 0x0b1f,
  370. 0x0b1e,
  371. 0x0b1d,
  372. 0x0b1c,
  373. 0x0b1b,
  374. 0x0b1a,
  375. 0x1023, /* code 35 */
  376. 0x1023,
  377. 0x1023,
  378. 0x1023,
  379. 0x1023,
  380. 0x1023,
  381. 0x1023,
  382. 0x1023
  383. };
  384. U16 gTAB_MTYPE_MAJOR[]={
  385. 0xff00, /* 0x00 */
  386. 0x0805,
  387. 0x0701,
  388. 0x0701,
  389. 0x0609,
  390. 0x0609,
  391. 0x0609,
  392. 0x0609,
  393. 0x0503,
  394. 0x0503,
  395. 0x0503,
  396. 0x0503,
  397. 0x0503,
  398. 0x0503,
  399. 0x0503,
  400. 0x0503,
  401. 0x0400, /* 0x10 */
  402. 0x0400,
  403. 0x0400,
  404. 0x0400,
  405. 0x0400,
  406. 0x0400,
  407. 0x0400,
  408. 0x0400,
  409. 0x0400,
  410. 0x0400,
  411. 0x0400,
  412. 0x0400,
  413. 0x0400,
  414. 0x0400,
  415. 0x0400,
  416. 0x0400,
  417. 0x0307, /* 0x20 */
  418. 0x0307,
  419. 0x0307,
  420. 0x0307,
  421. 0x0307,
  422. 0x0307,
  423. 0x0307,
  424. 0x0307,
  425. 0x0307,
  426. 0x0307,
  427. 0x0307,
  428. 0x0307,
  429. 0x0307,
  430. 0x0307,
  431. 0x0307,
  432. 0x0307,
  433. 0x0307, /* 0x30 */
  434. 0x0307,
  435. 0x0307,
  436. 0x0307,
  437. 0x0307,
  438. 0x0307,
  439. 0x0307,
  440. 0x0307,
  441. 0x0307,
  442. 0x0307,
  443. 0x0307,
  444. 0x0307,
  445. 0x0307,
  446. 0x0307,
  447. 0x0307,
  448. 0x0307,
  449. 0x0208, /* 0x40 */
  450. 0x0208,
  451. 0x0208,
  452. 0x0208,
  453. 0x0208,
  454. 0x0208,
  455. 0x0208,
  456. 0x0208,
  457. 0x0208,
  458. 0x0208,
  459. 0x0208,
  460. 0x0208,
  461. 0x0208,
  462. 0x0208,
  463. 0x0208,
  464. 0x0208,
  465. 0x0208, /* 0x50 */
  466. 0x0208,
  467. 0x0208,
  468. 0x0208,
  469. 0x0208,
  470. 0x0208,
  471. 0x0208,
  472. 0x0208,
  473. 0x0208,
  474. 0x0208,
  475. 0x0208,
  476. 0x0208,
  477. 0x0208,
  478. 0x0208,
  479. 0x0208,
  480. 0x0208,
  481. 0x0208, /* 0x60 */
  482. 0x0208,
  483. 0x0208,
  484. 0x0208,
  485. 0x0208,
  486. 0x0208,
  487. 0x0208,
  488. 0x0208,
  489. 0x0208,
  490. 0x0208,
  491. 0x0208,
  492. 0x0208,
  493. 0x0208,
  494. 0x0208,
  495. 0x0208,
  496. 0x0208,
  497. 0x0208, /* 0x70 */
  498. 0x0208,
  499. 0x0208,
  500. 0x0208,
  501. 0x0208,
  502. 0x0208,
  503. 0x0208,
  504. 0x0208,
  505. 0x0208,
  506. 0x0208,
  507. 0x0208,
  508. 0x0208,
  509. 0x0208,
  510. 0x0208,
  511. 0x0208,
  512. 0x0208,
  513. 0x0102, /* 0x80 */
  514. 0x0102,
  515. 0x0102,
  516. 0x0102,
  517. 0x0102,
  518. 0x0102,
  519. 0x0102,
  520. 0x0102,
  521. 0x0102,
  522. 0x0102,
  523. 0x0102,
  524. 0x0102,
  525. 0x0102,
  526. 0x0102,
  527. 0x0102,
  528. 0x0102,
  529. 0x0102, /* 0x90 */
  530. 0x0102,
  531. 0x0102,
  532. 0x0102,
  533. 0x0102,
  534. 0x0102,
  535. 0x0102,
  536. 0x0102,
  537. 0x0102,
  538. 0x0102,
  539. 0x0102,
  540. 0x0102,
  541. 0x0102,
  542. 0x0102,
  543. 0x0102,
  544. 0x0102,
  545. 0x0102, /* 0xa0 */
  546. 0x0102,
  547. 0x0102,
  548. 0x0102,
  549. 0x0102,
  550. 0x0102,
  551. 0x0102,
  552. 0x0102,
  553. 0x0102,
  554. 0x0102,
  555. 0x0102,
  556. 0x0102,
  557. 0x0102,
  558. 0x0102,
  559. 0x0102,
  560. 0x0102,
  561. 0x0102, /* 0xb0 */
  562. 0x0102,
  563. 0x0102,
  564. 0x0102,
  565. 0x0102,
  566. 0x0102,
  567. 0x0102,
  568. 0x0102,
  569. 0x0102,
  570. 0x0102,
  571. 0x0102,
  572. 0x0102,
  573. 0x0102,
  574. 0x0102,
  575. 0x0102,
  576. 0x0102,
  577. 0x0102, /* 0xc0 */
  578. 0x0102,
  579. 0x0102,
  580. 0x0102,
  581. 0x0102,
  582. 0x0102,
  583. 0x0102,
  584. 0x0102,
  585. 0x0102,
  586. 0x0102,
  587. 0x0102,
  588. 0x0102,
  589. 0x0102,
  590. 0x0102,
  591. 0x0102,
  592. 0x0102,
  593. 0x0102, /* 0xd0 */
  594. 0x0102,
  595. 0x0102,
  596. 0x0102,
  597. 0x0102,
  598. 0x0102,
  599. 0x0102,
  600. 0x0102,
  601. 0x0102,
  602. 0x0102,
  603. 0x0102,
  604. 0x0102,
  605. 0x0102,
  606. 0x0102,
  607. 0x0102,
  608. 0x0102,
  609. 0x0102, /* 0xe0 */
  610. 0x0102,
  611. 0x0102,
  612. 0x0102,
  613. 0x0102,
  614. 0x0102,
  615. 0x0102,
  616. 0x0102,
  617. 0x0102,
  618. 0x0102,
  619. 0x0102,
  620. 0x0102,
  621. 0x0102,
  622. 0x0102,
  623. 0x0102,
  624. 0x0102,
  625. 0x0102, /* 0xf0 */
  626. 0x0102,
  627. 0x0102,
  628. 0x0102,
  629. 0x0102,
  630. 0x0102,
  631. 0x0102,
  632. 0x0102,
  633. 0x0102,
  634. 0x0102,
  635. 0x0102,
  636. 0x0102,
  637. 0x0102,
  638. 0x0102,
  639. 0x0102,
  640. 0x0102
  641. };
  642. U16 gTAB_MTYPE_MINOR[]={
  643. 0x0800,
  644. 0x0a06,
  645. 0x0904,
  646. 0x0904
  647. };
  648. U16 gTAB_MVD_MAJOR[]={
  649. 0xffff, /* 0x00 */
  650. 0xffff,
  651. 0xffff,
  652. 0xff00,
  653. 0xff08,
  654. 0xff10,
  655. 0x0807,
  656. 0x08f9,
  657. 0x0806,
  658. 0x08fa,
  659. 0x0805,
  660. 0x08fb,
  661. 0x0704,
  662. 0x0704,
  663. 0x07fc,
  664. 0x07fc,
  665. 0x0503, /* 0x10 */
  666. 0x0503,
  667. 0x0503,
  668. 0x0503,
  669. 0x0503,
  670. 0x0503,
  671. 0x0503,
  672. 0x0503,
  673. 0x05fd,
  674. 0x05fd,
  675. 0x05fd,
  676. 0x05fd,
  677. 0x05fd,
  678. 0x05fd,
  679. 0x05fd,
  680. 0x05fd,
  681. 0x0402, /* 0x20 */
  682. 0x0402,
  683. 0x0402,
  684. 0x0402,
  685. 0x0402,
  686. 0x0402,
  687. 0x0402,
  688. 0x0402,
  689. 0x0402,
  690. 0x0402,
  691. 0x0402,
  692. 0x0402,
  693. 0x0402,
  694. 0x0402,
  695. 0x0402,
  696. 0x0402,
  697. 0x04fe, /* 0x30 */
  698. 0x04fe,
  699. 0x04fe,
  700. 0x04fe,
  701. 0x04fe,
  702. 0x04fe,
  703. 0x04fe,
  704. 0x04fe,
  705. 0x04fe,
  706. 0x04fe,
  707. 0x04fe,
  708. 0x04fe,
  709. 0x04fe,
  710. 0x04fe,
  711. 0x04fe,
  712. 0x04fe,
  713. 0x0301, /* 0x40 */
  714. 0x0301,
  715. 0x0301,
  716. 0x0301,
  717. 0x0301,
  718. 0x0301,
  719. 0x0301,
  720. 0x0301,
  721. 0x0301,
  722. 0x0301,
  723. 0x0301,
  724. 0x0301,
  725. 0x0301,
  726. 0x0301,
  727. 0x0301,
  728. 0x0301,
  729. 0x0301, /* 0x50 */
  730. 0x0301,
  731. 0x0301,
  732. 0x0301,
  733. 0x0301,
  734. 0x0301,
  735. 0x0301,
  736. 0x0301,
  737. 0x0301,
  738. 0x0301,
  739. 0x0301,
  740. 0x0301,
  741. 0x0301,
  742. 0x0301,
  743. 0x0301,
  744. 0x0301,
  745. 0x03ff, /* 0x60 */
  746. 0x03ff,
  747. 0x03ff,
  748. 0x03ff,
  749. 0x03ff,
  750. 0x03ff,
  751. 0x03ff,
  752. 0x03ff,
  753. 0x03ff,
  754. 0x03ff,
  755. 0x03ff,
  756. 0x03ff,
  757. 0x03ff,
  758. 0x03ff,
  759. 0x03ff,
  760. 0x03ff,
  761. 0x03ff, /* 0x70 */
  762. 0x03ff,
  763. 0x03ff,
  764. 0x03ff,
  765. 0x03ff,
  766. 0x03ff,
  767. 0x03ff,
  768. 0x03ff,
  769. 0x03ff,
  770. 0x03ff,
  771. 0x03ff,
  772. 0x03ff,
  773. 0x03ff,
  774. 0x03ff,
  775. 0x03ff,
  776. 0x03ff,
  777. 0x0100, /* 0x80 */
  778. 0x0100,
  779. 0x0100,
  780. 0x0100,
  781. 0x0100,
  782. 0x0100,
  783. 0x0100,
  784. 0x0100,
  785. 0x0100,
  786. 0x0100,
  787. 0x0100,
  788. 0x0100,
  789. 0x0100,
  790. 0x0100,
  791. 0x0100,
  792. 0x0100,
  793. 0x0100, /* 0x90 */
  794. 0x0100,
  795. 0x0100,
  796. 0x0100,
  797. 0x0100,
  798. 0x0100,
  799. 0x0100,
  800. 0x0100,
  801. 0x0100,
  802. 0x0100,
  803. 0x0100,
  804. 0x0100,
  805. 0x0100,
  806. 0x0100,
  807. 0x0100,
  808. 0x0100,
  809. 0x0100, /* 0xa0 */
  810. 0x0100,
  811. 0x0100,
  812. 0x0100,
  813. 0x0100,
  814. 0x0100,
  815. 0x0100,
  816. 0x0100,
  817. 0x0100,
  818. 0x0100,
  819. 0x0100,
  820. 0x0100,
  821. 0x0100,
  822. 0x0100,
  823. 0x0100,
  824. 0x0100,
  825. 0x0100, /* 0xb0 */
  826. 0x0100,
  827. 0x0100,
  828. 0x0100,
  829. 0x0100,
  830. 0x0100,
  831. 0x0100,
  832. 0x0100,
  833. 0x0100,
  834. 0x0100,
  835. 0x0100,
  836. 0x0100,
  837. 0x0100,
  838. 0x0100,
  839. 0x0100,
  840. 0x0100,
  841. 0x0100, /* 0xc0 */
  842. 0x0100,
  843. 0x0100,
  844. 0x0100,
  845. 0x0100,
  846. 0x0100,
  847. 0x0100,
  848. 0x0100,
  849. 0x0100,
  850. 0x0100,
  851. 0x0100,
  852. 0x0100,
  853. 0x0100,
  854. 0x0100,
  855. 0x0100,
  856. 0x0100,
  857. 0x0100, /* 0xd0 */
  858. 0x0100,
  859. 0x0100,
  860. 0x0100,
  861. 0x0100,
  862. 0x0100,
  863. 0x0100,
  864. 0x0100,
  865. 0x0100,
  866. 0x0100,
  867. 0x0100,
  868. 0x0100,
  869. 0x0100,
  870. 0x0100,
  871. 0x0100,
  872. 0x0100,
  873. 0x0100, /* 0xe0 */
  874. 0x0100,
  875. 0x0100,
  876. 0x0100,
  877. 0x0100,
  878. 0x0100,
  879. 0x0100,
  880. 0x0100,
  881. 0x0100,
  882. 0x0100,
  883. 0x0100,
  884. 0x0100,
  885. 0x0100,
  886. 0x0100,
  887. 0x0100,
  888. 0x0100,
  889. 0x0100, /* 0xf0 */
  890. 0x0100,
  891. 0x0100,
  892. 0x0100,
  893. 0x0100,
  894. 0x0100,
  895. 0x0100,
  896. 0x0100,
  897. 0x0100,
  898. 0x0100,
  899. 0x0100,
  900. 0x0100,
  901. 0x0100,
  902. 0x0100,
  903. 0x0100,
  904. 0x0100
  905. };
  906. U16 gTAB_MVD_MINOR[]={
  907. 0x0bff, /* 0000 0011 */
  908. 0x0bf0,
  909. 0x0b0f,
  910. 0x0bf1,
  911. 0x0b0e,
  912. 0x0bf2,
  913. 0x0b0d,
  914. 0x0bf3,
  915. 0x0b0c, /* 0000 0100 */
  916. 0x0bf4,
  917. 0x0b0b,
  918. 0x0bf5,
  919. 0x0a0a,
  920. 0x0a0a,
  921. 0x0af6,
  922. 0x0af6,
  923. 0x0a09, /* 0000 0101 */
  924. 0x0a09,
  925. 0x0af7,
  926. 0x0af7,
  927. 0x0a08,
  928. 0x0a08,
  929. 0x0af8,
  930. 0x0af8
  931. };
  932. U16 gTAB_CBP[]={
  933. 0x00ff, /* 0000 0000 x */
  934. 0x00ff,
  935. 0x0927, /* 0000 0001 0 */
  936. 0x091b, /* 0000 0001 1 */
  937. 0x093b, /* 0000 0010 0 */
  938. 0x0937, /* 0000 0010 1 */
  939. 0x092f, /* 0000 0011 0 */
  940. 0x091f, /* 0000 0011 1 */
  941. 0x083a, /* 0000 0100 x */
  942. 0x083a,
  943. 0x0836, /* 0000 0101 x */
  944. 0x0836,
  945. 0x082e, /* 0000 0110 x */
  946. 0x082e,
  947. 0x081e, /* 0000 0111 x */
  948. 0x081e,
  949. 0x0839, /* 0000 1000 x */
  950. 0x0839,
  951. 0x0835, /* 0000 1001 x */
  952. 0x0835,
  953. 0x082d, /* 0000 1010 x */
  954. 0x082d,
  955. 0x081d, /* 0000 1011 x */
  956. 0x081d,
  957. 0x0826, /* 0000 1100 x */
  958. 0x0826,
  959. 0x081a, /* 0000 1101 x */
  960. 0x081a,
  961. 0x0825, /* 0000 1110 x */
  962. 0x0825,
  963. 0x0819, /* 0000 1111 x */
  964. 0x0819,
  965. 0x082b, /* 0001 0000 x */
  966. 0x082b,
  967. 0x0817, /* 0001 0001 x */
  968. 0x0817,
  969. 0x0833, /* 0001 0010 x */
  970. 0x0833,
  971. 0x080f, /* 0001 0011 x */
  972. 0x080f,
  973. 0x082a, /* 0001 0100 x */
  974. 0x082a,
  975. 0x0816, /* 0001 0101 x */
  976. 0x0816,
  977. 0x0832, /* 0001 0110 x */
  978. 0x0832,
  979. 0x080e, /* 0001 0111 x */
  980. 0x080e,
  981. 0x0829, /* 0001 1000 x */
  982. 0x0829,
  983. 0x0815, /* 0001 1001 x */
  984. 0x0815,
  985. 0x0831, /* 0001 1010 x */
  986. 0x0831,
  987. 0x080d, /* 0001 1011 x */
  988. 0x080d,
  989. 0x0823, /* 0001 1100 x */
  990. 0x0823,
  991. 0x0813, /* 0001 1101 x */
  992. 0x0813,
  993. 0x080b, /* 0001 1110 x */
  994. 0x080b,
  995. 0x0807, /* 0001 1111 x */
  996. 0x0807,
  997. 0x0722, /* 0010 000x x */
  998. 0x0722,
  999. 0x0722,
  1000. 0x0722,
  1001. 0x0712, /* 0010 001x x */
  1002. 0x0712,
  1003. 0x0712,
  1004. 0x0712,
  1005. 0x070a, /* 0010 010x x */
  1006. 0x070a,
  1007. 0x070a,
  1008. 0x070a,
  1009. 0x0706, /* 0010 011x x */
  1010. 0x0706,
  1011. 0x0706,
  1012. 0x0706,
  1013. 0x0721, /* 0010 100x x */
  1014. 0x0721,
  1015. 0x0721,
  1016. 0x0721,
  1017. 0x0711, /* 0010 101x x */
  1018. 0x0711,
  1019. 0x0711,
  1020. 0x0711,
  1021. 0x0709, /* 0010 110x x */
  1022. 0x0709,
  1023. 0x0709,
  1024. 0x0709,
  1025. 0x0705, /* 0010 111x x */
  1026. 0x0705,
  1027. 0x0705,
  1028. 0x0705,
  1029. 0x063f, /* 0011 00xx x */
  1030. 0x063f,
  1031. 0x063f,
  1032. 0x063f,
  1033. 0x063f,
  1034. 0x063f,
  1035. 0x063f,
  1036. 0x063f,
  1037. 0x0603, /* 0011 01xx x */
  1038. 0x0603,
  1039. 0x0603,
  1040. 0x0603,
  1041. 0x0603,
  1042. 0x0603,
  1043. 0x0603,
  1044. 0x0603,
  1045. 0x0624, /* 0011 10xx x */
  1046. 0x0624,
  1047. 0x0624,
  1048. 0x0624,
  1049. 0x0624,
  1050. 0x0624,
  1051. 0x0624,
  1052. 0x0624,
  1053. 0x0618, /* 0011 11xx x */
  1054. 0x0618,
  1055. 0x0618,
  1056. 0x0618,
  1057. 0x0618,
  1058. 0x0618,
  1059. 0x0618,
  1060. 0x0618,
  1061. 0x053e, /* 0100 0xxx x */
  1062. 0x053e,
  1063. 0x053e,
  1064. 0x053e,
  1065. 0x053e,
  1066. 0x053e,
  1067. 0x053e,
  1068. 0x053e,
  1069. 0x053e,
  1070. 0x053e,
  1071. 0x053e,
  1072. 0x053e,
  1073. 0x053e,
  1074. 0x053e,
  1075. 0x053e,
  1076. 0x053e,
  1077. 0x0502, /* 0100 1xxx x */
  1078. 0x0502,
  1079. 0x0502,
  1080. 0x0502,
  1081. 0x0502,
  1082. 0x0502,
  1083. 0x0502,
  1084. 0x0502,
  1085. 0x0502,
  1086. 0x0502,
  1087. 0x0502,
  1088. 0x0502,
  1089. 0x0502,
  1090. 0x0502,
  1091. 0x0502,
  1092. 0x0502,
  1093. 0x053d, /* 0101 0xxx x */
  1094. 0x053d,
  1095. 0x053d,
  1096. 0x053d,
  1097. 0x053d,
  1098. 0x053d,
  1099. 0x053d,
  1100. 0x053d,
  1101. 0x053d,
  1102. 0x053d,
  1103. 0x053d,
  1104. 0x053d,
  1105. 0x053d,
  1106. 0x053d,
  1107. 0x053d,
  1108. 0x053d,
  1109. 0x0501, /* 0101 1xxx x */
  1110. 0x0501,
  1111. 0x0501,
  1112. 0x0501,
  1113. 0x0501,
  1114. 0x0501,
  1115. 0x0501,
  1116. 0x0501,
  1117. 0x0501,
  1118. 0x0501,
  1119. 0x0501,
  1120. 0x0501,
  1121. 0x0501,
  1122. 0x0501,
  1123. 0x0501,
  1124. 0x0501,
  1125. 0x0538, /* 0110 0xxx x */
  1126. 0x0538,
  1127. 0x0538,
  1128. 0x0538,
  1129. 0x0538,
  1130. 0x0538,
  1131. 0x0538,
  1132. 0x0538,
  1133. 0x0538,
  1134. 0x0538,
  1135. 0x0538,
  1136. 0x0538,
  1137. 0x0538,
  1138. 0x0538,
  1139. 0x0538,
  1140. 0x0538,
  1141. 0x0534, /* 0110 1xxx x */
  1142. 0x0534,
  1143. 0x0534,
  1144. 0x0534,
  1145. 0x0534,
  1146. 0x0534,
  1147. 0x0534,
  1148. 0x0534,
  1149. 0x0534,
  1150. 0x0534,
  1151. 0x0534,
  1152. 0x0534,
  1153. 0x0534,
  1154. 0x0534,
  1155. 0x0534,
  1156. 0x0534,
  1157. 0x052c, /* 0111 0xxx x */
  1158. 0x052c,
  1159. 0x052c,
  1160. 0x052c,
  1161. 0x052c,
  1162. 0x052c,
  1163. 0x052c,
  1164. 0x052c,
  1165. 0x052c,
  1166. 0x052c,
  1167. 0x052c,
  1168. 0x052c,
  1169. 0x052c,
  1170. 0x052c,
  1171. 0x052c,
  1172. 0x052c,
  1173. 0x051c, /* 0111 1xxx x */
  1174. 0x051c,
  1175. 0x051c,
  1176. 0x051c,
  1177. 0x051c,
  1178. 0x051c,
  1179. 0x051c,
  1180. 0x051c,
  1181. 0x051c,
  1182. 0x051c,
  1183. 0x051c,
  1184. 0x051c,
  1185. 0x051c,
  1186. 0x051c,
  1187. 0x051c,
  1188. 0x051c,
  1189. 0x0528, /* 1000 0xxx x */
  1190. 0x0528,
  1191. 0x0528,
  1192. 0x0528,
  1193. 0x0528,
  1194. 0x0528,
  1195. 0x0528,
  1196. 0x0528,
  1197. 0x0528,
  1198. 0x0528,
  1199. 0x0528,
  1200. 0x0528,
  1201. 0x0528,
  1202. 0x0528,
  1203. 0x0528,
  1204. 0x0528,
  1205. 0x0514, /* 1000 1xxx x */
  1206. 0x0514,
  1207. 0x0514,
  1208. 0x0514,
  1209. 0x0514,
  1210. 0x0514,
  1211. 0x0514,
  1212. 0x0514,
  1213. 0x0514,
  1214. 0x0514,
  1215. 0x0514,
  1216. 0x0514,
  1217. 0x0514,
  1218. 0x0514,
  1219. 0x0514,
  1220. 0x0514,
  1221. 0x0530, /* 1001 0xxx x */
  1222. 0x0530,
  1223. 0x0530,
  1224. 0x0530,
  1225. 0x0530,
  1226. 0x0530,
  1227. 0x0530,
  1228. 0x0530,
  1229. 0x0530,
  1230. 0x0530,
  1231. 0x0530,
  1232. 0x0530,
  1233. 0x0530,
  1234. 0x0530,
  1235. 0x0530,
  1236. 0x0530,
  1237. 0x050c, /* 1001 1xxx x */
  1238. 0x050c,
  1239. 0x050c,
  1240. 0x050c,
  1241. 0x050c,
  1242. 0x050c,
  1243. 0x050c,
  1244. 0x050c,
  1245. 0x050c,
  1246. 0x050c,
  1247. 0x050c,
  1248. 0x050c,
  1249. 0x050c,
  1250. 0x050c,
  1251. 0x050c,
  1252. 0x050c,
  1253. 0x0420, /* 1010 xxxx x */
  1254. 0x0420,
  1255. 0x0420,
  1256. 0x0420,
  1257. 0x0420,
  1258. 0x0420,
  1259. 0x0420,
  1260. 0x0420,
  1261. 0x0420,
  1262. 0x0420,
  1263. 0x0420,
  1264. 0x0420,
  1265. 0x0420,
  1266. 0x0420,
  1267. 0x0420,
  1268. 0x0420,
  1269. 0x0420,
  1270. 0x0420,
  1271. 0x0420,
  1272. 0x0420,
  1273. 0x0420,
  1274. 0x0420,
  1275. 0x0420,
  1276. 0x0420,
  1277. 0x0420,
  1278. 0x0420,
  1279. 0x0420,
  1280. 0x0420,
  1281. 0x0420,
  1282. 0x0420,
  1283. 0x0420,
  1284. 0x0420,
  1285. 0x0410, /* 1011 xxxx x */
  1286. 0x0410,
  1287. 0x0410,
  1288. 0x0410,
  1289. 0x0410,
  1290. 0x0410,
  1291. 0x0410,
  1292. 0x0410,
  1293. 0x0410,
  1294. 0x0410,
  1295. 0x0410,
  1296. 0x0410,
  1297. 0x0410,
  1298. 0x0410,
  1299. 0x0410,
  1300. 0x0410,
  1301. 0x0410,
  1302. 0x0410,
  1303. 0x0410,
  1304. 0x0410,
  1305. 0x0410,
  1306. 0x0410,
  1307. 0x0410,
  1308. 0x0410,
  1309. 0x0410,
  1310. 0x0410,
  1311. 0x0410,
  1312. 0x0410,
  1313. 0x0410,
  1314. 0x0410,
  1315. 0x0410,
  1316. 0x0410,
  1317. 0x0408, /* 1100 xxxx x */
  1318. 0x0408,
  1319. 0x0408,
  1320. 0x0408,
  1321. 0x0408,
  1322. 0x0408,
  1323. 0x0408,
  1324. 0x0408,
  1325. 0x0408,
  1326. 0x0408,
  1327. 0x0408,
  1328. 0x0408,
  1329. 0x0408,
  1330. 0x0408,
  1331. 0x0408,
  1332. 0x0408,
  1333. 0x0408,
  1334. 0x0408,
  1335. 0x0408,
  1336. 0x0408,
  1337. 0x0408,
  1338. 0x0408,
  1339. 0x0408,
  1340. 0x0408,
  1341. 0x0408,
  1342. 0x0408,
  1343. 0x0408,
  1344. 0x0408,
  1345. 0x0408,
  1346. 0x0408,
  1347. 0x0408,
  1348. 0x0408,
  1349. 0x0404, /* 1101 xxxx x */
  1350. 0x0404,
  1351. 0x0404,
  1352. 0x0404,
  1353. 0x0404,
  1354. 0x0404,
  1355. 0x0404,
  1356. 0x0404,
  1357. 0x0404,
  1358. 0x0404,
  1359. 0x0404,
  1360. 0x0404,
  1361. 0x0404,
  1362. 0x0404,
  1363. 0x0404,
  1364. 0x0404,
  1365. 0x0404,
  1366. 0x0404,
  1367. 0x0404,
  1368. 0x0404,
  1369. 0x0404,
  1370. 0x0404,
  1371. 0x0404,
  1372. 0x0404,
  1373. 0x0404,
  1374. 0x0404,
  1375. 0x0404,
  1376. 0x0404,
  1377. 0x0404,
  1378. 0x0404,
  1379. 0x0404,
  1380. 0x0404,
  1381. 0x033c, /* 111x xxxx x */
  1382. 0x033c,
  1383. 0x033c,
  1384. 0x033c,
  1385. 0x033c,
  1386. 0x033c,
  1387. 0x033c,
  1388. 0x033c,
  1389. 0x033c,
  1390. 0x033c,
  1391. 0x033c,
  1392. 0x033c,
  1393. 0x033c,
  1394. 0x033c,
  1395. 0x033c,
  1396. 0x033c,
  1397. 0x033c,
  1398. 0x033c,
  1399. 0x033c,
  1400. 0x033c,
  1401. 0x033c,
  1402. 0x033c,
  1403. 0x033c,
  1404. 0x033c,
  1405. 0x033c,
  1406. 0x033c,
  1407. 0x033c,
  1408. 0x033c,
  1409. 0x033c,
  1410. 0x033c,
  1411. 0x033c,
  1412. 0x033c,
  1413. 0x033c,
  1414. 0x033c,
  1415. 0x033c,
  1416. 0x033c,
  1417. 0x033c,
  1418. 0x033c,
  1419. 0x033c,
  1420. 0x033c,
  1421. 0x033c,
  1422. 0x033c,
  1423. 0x033c,
  1424. 0x033c,
  1425. 0x033c,
  1426. 0x033c,
  1427. 0x033c,
  1428. 0x033c,
  1429. 0x033c,
  1430. 0x033c,
  1431. 0x033c,
  1432. 0x033c,
  1433. 0x033c,
  1434. 0x033c,
  1435. 0x033c,
  1436. 0x033c,
  1437. 0x033c,
  1438. 0x033c,
  1439. 0x033c,
  1440. 0x033c,
  1441. 0x033c,
  1442. 0x033c,
  1443. 0x033c,
  1444. 0x033c
  1445. };
  1446. U8 gTAB_TCOEFF_tc1[512]={
  1447. 0xa0, 0x00, // prefix 0000 0000
  1448. 0xb0, 0x40, // prefix 0000 0001
  1449. 0xd0, 0x00, // prefix 0000 0010
  1450. 0xd0, 0x08, // prefix 0000 0011
  1451. 0x5f, 0x02, // escape
  1452. 0x5f, 0x02,
  1453. 0x5f, 0x02,
  1454. 0x5f, 0x02,
  1455. 0x72, 0x02, // 0000 100s
  1456. 0x72, 0xfe,
  1457. 0x79, 0x01, // 0000 101s
  1458. 0x79, 0xff,
  1459. 0x70, 0x04, // 0000 110s
  1460. 0x70, 0xfc,
  1461. 0x78, 0x01, // 0000 111s
  1462. 0x78, 0xff,
  1463. 0x67, 0x01, // 0001 00s
  1464. 0x67, 0x01,
  1465. 0x67, 0xff,
  1466. 0x67, 0xff,
  1467. 0x66, 0x01, // 0001 01s
  1468. 0x66, 0x01,
  1469. 0x66, 0xff,
  1470. 0x66, 0xff,
  1471. 0x61, 0x02, // 0001 10s
  1472. 0x61, 0x02,
  1473. 0x61, 0xfe,
  1474. 0x61, 0xfe,
  1475. 0x65, 0x01, // 0001 11s
  1476. 0x65, 0x01,
  1477. 0x65, 0xff,
  1478. 0x65, 0xff,
  1479. 0xf0, 0x10, // prefix 0010 0000
  1480. 0xf0, 0x12, // prefix 0010 0001
  1481. 0xf0, 0x14, // prefix 0010 0010
  1482. 0xf0, 0x16, // prefix 0010 0011
  1483. 0xf0, 0x18, // prefix 0010 0100
  1484. 0xf0, 0x1a, // prefix 0010 0101
  1485. 0xf0, 0x1c, // prefix 0010 0110
  1486. 0xf0, 0x1e, // prefix 0010 0111
  1487. 0x50, 0x03, // 0010 1s
  1488. 0x50, 0x03,
  1489. 0x50, 0x03,
  1490. 0x50, 0x03,
  1491. 0x50, 0xfd,
  1492. 0x50, 0xfd,
  1493. 0x50, 0xfd,
  1494. 0x50, 0xfd,
  1495. 0x54, 0x01, // 0011 0s
  1496. 0x54, 0x01,
  1497. 0x54, 0x01,
  1498. 0x54, 0x01,
  1499. 0x54, 0xff,
  1500. 0x54, 0xff,
  1501. 0x54, 0xff,
  1502. 0x54, 0xff,
  1503. 0x53, 0x01, // 0011 1s
  1504. 0x53, 0x01,
  1505. 0x53, 0x01,
  1506. 0x53, 0x01,
  1507. 0x53, 0xff,
  1508. 0x53, 0xff,
  1509. 0x53, 0xff,
  1510. 0x53, 0xff,
  1511. 0x40, 0x02, // 0100 s
  1512. 0x40, 0x02,
  1513. 0x40, 0x02,
  1514. 0x40, 0x02,
  1515. 0x40, 0x02,
  1516. 0x40, 0x02,
  1517. 0x40, 0x02,
  1518. 0x40, 0x02,
  1519. 0x40, 0xfe,
  1520. 0x40, 0xfe,
  1521. 0x40, 0xfe,
  1522. 0x40, 0xfe,
  1523. 0x40, 0xfe,
  1524. 0x40, 0xfe,
  1525. 0x40, 0xfe,
  1526. 0x40, 0xfe,
  1527. 0x42, 0x01, // 0101 s
  1528. 0x42, 0x01,
  1529. 0x42, 0x01,
  1530. 0x42, 0x01,
  1531. 0x42, 0x01,
  1532. 0x42, 0x01,
  1533. 0x42, 0x01,
  1534. 0x42, 0x01,
  1535. 0x42, 0xff,
  1536. 0x42, 0xff,
  1537. 0x42, 0xff,
  1538. 0x42, 0xff,
  1539. 0x42, 0xff,
  1540. 0x42, 0xff,
  1541. 0x42, 0xff,
  1542. 0x42, 0xff,
  1543. 0x31, 0x01, // 011s
  1544. 0x31, 0x01,
  1545. 0x31, 0x01,
  1546. 0x31, 0x01,
  1547. 0x31, 0x01,
  1548. 0x31, 0x01,
  1549. 0x31, 0x01,
  1550. 0x31, 0x01,
  1551. 0x31, 0x01,
  1552. 0x31, 0x01,
  1553. 0x31, 0x01,
  1554. 0x31, 0x01,
  1555. 0x31, 0x01,
  1556. 0x31, 0x01,
  1557. 0x31, 0x01,
  1558. 0x31, 0x01,
  1559. 0x31, 0xff,
  1560. 0x31, 0xff,
  1561. 0x31, 0xff,
  1562. 0x31, 0xff,
  1563. 0x31, 0xff,
  1564. 0x31, 0xff,
  1565. 0x31, 0xff,
  1566. 0x31, 0xff,
  1567. 0x31, 0xff,
  1568. 0x31, 0xff,
  1569. 0x31, 0xff,
  1570. 0x31, 0xff,
  1571. 0x31, 0xff,
  1572. 0x31, 0xff,
  1573. 0x31, 0xff,
  1574. 0x31, 0xff,
  1575. 0x10, 0x00, // EOB dw 080
  1576. 0x10, 0x00,
  1577. 0x10, 0x00,
  1578. 0x10, 0x00,
  1579. 0x10, 0x00,
  1580. 0x10, 0x00,
  1581. 0x10, 0x00,
  1582. 0x10, 0x00,
  1583. 0x10, 0x00,
  1584. 0x10, 0x00,
  1585. 0x10, 0x00,
  1586. 0x10, 0x00,
  1587. 0x10, 0x00,
  1588. 0x10, 0x00,
  1589. 0x10, 0x00,
  1590. 0x10, 0x00,
  1591. 0x10, 0x00, // dw 090
  1592. 0x10, 0x00,
  1593. 0x10, 0x00,
  1594. 0x10, 0x00,
  1595. 0x10, 0x00,
  1596. 0x10, 0x00,
  1597. 0x10, 0x00,
  1598. 0x10, 0x00,
  1599. 0x10, 0x00,
  1600. 0x10, 0x00,
  1601. 0x10, 0x00,
  1602. 0x10, 0x00,
  1603. 0x10, 0x00,
  1604. 0x10, 0x00,
  1605. 0x10, 0x00,
  1606. 0x10, 0x00,
  1607. 0x10, 0x00, // dw 0a0
  1608. 0x10, 0x00,
  1609. 0x10, 0x00,
  1610. 0x10, 0x00,
  1611. 0x10, 0x00,
  1612. 0x10, 0x00,
  1613. 0x10, 0x00,
  1614. 0x10, 0x00,
  1615. 0x10, 0x00,
  1616. 0x10, 0x00,
  1617. 0x10, 0x00,
  1618. 0x10, 0x00,
  1619. 0x10, 0x00,
  1620. 0x10, 0x00,
  1621. 0x10, 0x00,
  1622. 0x10, 0x00,
  1623. 0x10, 0x00, // dw 0b0
  1624. 0x10, 0x00,
  1625. 0x10, 0x00,
  1626. 0x10, 0x00,
  1627. 0x10, 0x00,
  1628. 0x10, 0x00,
  1629. 0x10, 0x00,
  1630. 0x10, 0x00,
  1631. 0x10, 0x00,
  1632. 0x10, 0x00,
  1633. 0x10, 0x00,
  1634. 0x10, 0x00,
  1635. 0x10, 0x00,
  1636. 0x10, 0x00,
  1637. 0x10, 0x00,
  1638. 0x10, 0x00,
  1639. 0x20, 0x01, // 11s
  1640. 0x20, 0x01,
  1641. 0x20, 0x01,
  1642. 0x20, 0x01,
  1643. 0x20, 0x01,
  1644. 0x20, 0x01,
  1645. 0x20, 0x01,
  1646. 0x20, 0x01,
  1647. 0x20, 0x01,
  1648. 0x20, 0x01,
  1649. 0x20, 0x01,
  1650. 0x20, 0x01,
  1651. 0x20, 0x01,
  1652. 0x20, 0x01,
  1653. 0x20, 0x01,
  1654. 0x20, 0x01,
  1655. 0x20, 0x01,
  1656. 0x20, 0x01,
  1657. 0x20, 0x01,
  1658. 0x20, 0x01,
  1659. 0x20, 0x01,
  1660. 0x20, 0x01,
  1661. 0x20, 0x01,
  1662. 0x20, 0x01,
  1663. 0x20, 0x01,
  1664. 0x20, 0x01,
  1665. 0x20, 0x01,
  1666. 0x20, 0x01,
  1667. 0x20, 0x01,
  1668. 0x20, 0x01,
  1669. 0x20, 0x01,
  1670. 0x20, 0x01,
  1671. 0x20, 0xff,
  1672. 0x20, 0xff,
  1673. 0x20, 0xff,
  1674. 0x20, 0xff,
  1675. 0x20, 0xff,
  1676. 0x20, 0xff,
  1677. 0x20, 0xff,
  1678. 0x20, 0xff,
  1679. 0x20, 0xff,
  1680. 0x20, 0xff,
  1681. 0x20, 0xff,
  1682. 0x20, 0xff,
  1683. 0x20, 0xff,
  1684. 0x20, 0xff,
  1685. 0x20, 0xff,
  1686. 0x20, 0xff,
  1687. 0x20, 0xff,
  1688. 0x20, 0xff,
  1689. 0x20, 0xff,
  1690. 0x20, 0xff,
  1691. 0x20, 0xff,
  1692. 0x20, 0xff,
  1693. 0x20, 0xff,
  1694. 0x20, 0xff,
  1695. 0x20, 0xff,
  1696. 0x20, 0xff,
  1697. 0x20, 0xff,
  1698. 0x20, 0xff,
  1699. 0x20, 0xff,
  1700. 0x20, 0xff,
  1701. 0x20, 0xff,
  1702. 0x20, 0xff
  1703. }; //512 elements
  1704. U8 gTAB_TCOEFF_tc1a[512]={
  1705. 0xa0, 0x00, // prefix 0000 0000
  1706. 0xb0, 0x40, // prefix 0000 0001
  1707. 0xd0, 0x00, // prefix 0000 0010
  1708. 0xd0, 0x08, // prefix 0000 0011
  1709. 0x5f, 0x02, // escape
  1710. 0x5f, 0x02,
  1711. 0x5f, 0x02,
  1712. 0x5f, 0x02,
  1713. 0x72, 0x02, // 0000 100s
  1714. 0x72, 0xfe,
  1715. 0x79, 0x01, // 0000 101s
  1716. 0x79, 0xff,
  1717. 0x70, 0x04, // 0000 110s
  1718. 0x70, 0xfc,
  1719. 0x78, 0x01, // 0000 111s
  1720. 0x78, 0xff,
  1721. 0x67, 0x01, // 0001 00s
  1722. 0x67, 0x01,
  1723. 0x67, 0xff,
  1724. 0x67, 0xff,
  1725. 0x66, 0x01, // 0001 01s
  1726. 0x66, 0x01,
  1727. 0x66, 0xff,
  1728. 0x66, 0xff,
  1729. 0x61, 0x02, // 0001 10s
  1730. 0x61, 0x02,
  1731. 0x61, 0xfe,
  1732. 0x61, 0xfe,
  1733. 0x65, 0x01, // 0001 11s
  1734. 0x65, 0x01,
  1735. 0x65, 0xff,
  1736. 0x65, 0xff,
  1737. 0xf0, 0x10, // prefix 0010 0000
  1738. 0xf0, 0x12, // prefix 0010 0001
  1739. 0xf0, 0x14, // prefix 0010 0010
  1740. 0xf0, 0x16, // prefix 0010 0011
  1741. 0xf0, 0x18, // prefix 0010 0100
  1742. 0xf0, 0x1a, // prefix 0010 0101
  1743. 0xf0, 0x1c, // prefix 0010 0110
  1744. 0xf0, 0x1e, // prefix 0010 0111
  1745. 0x50, 0x03, // 0010 1s
  1746. 0x50, 0x03,
  1747. 0x50, 0x03,
  1748. 0x50, 0x03,
  1749. 0x50, 0xfd,
  1750. 0x50, 0xfd,
  1751. 0x50, 0xfd,
  1752. 0x50, 0xfd,
  1753. 0x54, 0x01, // 0011 0s
  1754. 0x54, 0x01,
  1755. 0x54, 0x01,
  1756. 0x54, 0x01,
  1757. 0x54, 0xff,
  1758. 0x54, 0xff,
  1759. 0x54, 0xff,
  1760. 0x54, 0xff,
  1761. 0x53, 0x01, // 0011 1s
  1762. 0x53, 0x01,
  1763. 0x53, 0x01,
  1764. 0x53, 0x01,
  1765. 0x53, 0xff,
  1766. 0x53, 0xff,
  1767. 0x53, 0xff,
  1768. 0x53, 0xff,
  1769. 0x40, 0x02, // 0100 s
  1770. 0x40, 0x02,
  1771. 0x40, 0x02,
  1772. 0x40, 0x02,
  1773. 0x40, 0x02,
  1774. 0x40, 0x02,
  1775. 0x40, 0x02,
  1776. 0x40, 0x02,
  1777. 0x40, 0xfe,
  1778. 0x40, 0xfe,
  1779. 0x40, 0xfe,
  1780. 0x40, 0xfe,
  1781. 0x40, 0xfe,
  1782. 0x40, 0xfe,
  1783. 0x40, 0xfe,
  1784. 0x40, 0xfe,
  1785. 0x42, 0x01, // 0101 s
  1786. 0x42, 0x01,
  1787. 0x42, 0x01,
  1788. 0x42, 0x01,
  1789. 0x42, 0x01,
  1790. 0x42, 0x01,
  1791. 0x42, 0x01,
  1792. 0x42, 0x01,
  1793. 0x42, 0xff,
  1794. 0x42, 0xff,
  1795. 0x42, 0xff,
  1796. 0x42, 0xff,
  1797. 0x42, 0xff,
  1798. 0x42, 0xff,
  1799. 0x42, 0xff,
  1800. 0x42, 0xff,
  1801. 0x31, 0x01, // 011s
  1802. 0x31, 0x01,
  1803. 0x31, 0x01,
  1804. 0x31, 0x01,
  1805. 0x31, 0x01,
  1806. 0x31, 0x01,
  1807. 0x31, 0x01,
  1808. 0x31, 0x01,
  1809. 0x31, 0x01,
  1810. 0x31, 0x01,
  1811. 0x31, 0x01,
  1812. 0x31, 0x01,
  1813. 0x31, 0x01,
  1814. 0x31, 0x01,
  1815. 0x31, 0x01,
  1816. 0x31, 0x01,
  1817. 0x31, 0xff,
  1818. 0x31, 0xff,
  1819. 0x31, 0xff,
  1820. 0x31, 0xff,
  1821. 0x31, 0xff,
  1822. 0x31, 0xff,
  1823. 0x31, 0xff,
  1824. 0x31, 0xff,
  1825. 0x31, 0xff,
  1826. 0x31, 0xff,
  1827. 0x31, 0xff,
  1828. 0x31, 0xff,
  1829. 0x31, 0xff,
  1830. 0x31, 0xff,
  1831. 0x31, 0xff,
  1832. 0x31, 0xff,
  1833. 0x10, 0x01, // 1s
  1834. 0x10, 0x01,
  1835. 0x10, 0x01,
  1836. 0x10, 0x01,
  1837. 0x10, 0x01,
  1838. 0x10, 0x01,
  1839. 0x10, 0x01,
  1840. 0x10, 0x01,
  1841. 0x10, 0x01,
  1842. 0x10, 0x01,
  1843. 0x10, 0x01,
  1844. 0x10, 0x01,
  1845. 0x10, 0x01,
  1846. 0x10, 0x01,
  1847. 0x10, 0x01,
  1848. 0x10, 0x01,
  1849. 0x10, 0x01, // dw 090
  1850. 0x10, 0x01,
  1851. 0x10, 0x01,
  1852. 0x10, 0x01,
  1853. 0x10, 0x01,
  1854. 0x10, 0x01,
  1855. 0x10, 0x01,
  1856. 0x10, 0x01,
  1857. 0x10, 0x01,
  1858. 0x10, 0x01,
  1859. 0x10, 0x01,
  1860. 0x10, 0x01,
  1861. 0x10, 0x01,
  1862. 0x10, 0x01,
  1863. 0x10, 0x01,
  1864. 0x10, 0x01,
  1865. 0x10, 0x01, // dw 0a0
  1866. 0x10, 0x01,
  1867. 0x10, 0x01,
  1868. 0x10, 0x01,
  1869. 0x10, 0x01,
  1870. 0x10, 0x01,
  1871. 0x10, 0x01,
  1872. 0x10, 0x01,
  1873. 0x10, 0x01,
  1874. 0x10, 0x01,
  1875. 0x10, 0x01,
  1876. 0x10, 0x01,
  1877. 0x10, 0x01,
  1878. 0x10, 0x01,
  1879. 0x10, 0x01,
  1880. 0x10, 0x01,
  1881. 0x10, 0x01, // dw 0b0
  1882. 0x10, 0x01,
  1883. 0x10, 0x01,
  1884. 0x10, 0x01,
  1885. 0x10, 0x01,
  1886. 0x10, 0x01,
  1887. 0x10, 0x01,
  1888. 0x10, 0x01,
  1889. 0x10, 0x01,
  1890. 0x10, 0x01,
  1891. 0x10, 0x01,
  1892. 0x10, 0x01,
  1893. 0x10, 0x01,
  1894. 0x10, 0x01,
  1895. 0x10, 0x01,
  1896. 0x10, 0x01,
  1897. 0x10, 0xff,
  1898. 0x10, 0xff,
  1899. 0x10, 0xff,
  1900. 0x10, 0xff,
  1901. 0x10, 0xff,
  1902. 0x10, 0xff,
  1903. 0x10, 0xff,
  1904. 0x10, 0xff,
  1905. 0x10, 0xff,
  1906. 0x10, 0xff,
  1907. 0x10, 0xff,
  1908. 0x10, 0xff,
  1909. 0x10, 0xff,
  1910. 0x10, 0xff,
  1911. 0x10, 0xff,
  1912. 0x10, 0xff,
  1913. 0x10, 0xff,
  1914. 0x10, 0xff,
  1915. 0x10, 0xff,
  1916. 0x10, 0xff,
  1917. 0x10, 0xff,
  1918. 0x10, 0xff,
  1919. 0x10, 0xff,
  1920. 0x10, 0xff,
  1921. 0x10, 0xff,
  1922. 0x10, 0xff,
  1923. 0x10, 0xff,
  1924. 0x10, 0xff,
  1925. 0x10, 0xff,
  1926. 0x10, 0xff,
  1927. 0x10, 0xff,
  1928. 0x10, 0xff,
  1929. 0x10, 0xff,
  1930. 0x10, 0xff,
  1931. 0x10, 0xff,
  1932. 0x10, 0xff,
  1933. 0x10, 0xff,
  1934. 0x10, 0xff,
  1935. 0x10, 0xff,
  1936. 0x10, 0xff,
  1937. 0x10, 0xff,
  1938. 0x10, 0xff,
  1939. 0x10, 0xff,
  1940. 0x10, 0xff,
  1941. 0x10, 0xff,
  1942. 0x10, 0xff,
  1943. 0x10, 0xff,
  1944. 0x10, 0xff,
  1945. 0x10, 0xff,
  1946. 0x10, 0xff,
  1947. 0x10, 0xff,
  1948. 0x10, 0xff,
  1949. 0x10, 0xff,
  1950. 0x10, 0xff,
  1951. 0x10, 0xff,
  1952. 0x10, 0xff,
  1953. 0x10, 0xff,
  1954. 0x10, 0xff,
  1955. 0x10, 0xff,
  1956. 0x10, 0xff,
  1957. 0x10, 0xff,
  1958. 0x10, 0xff,
  1959. 0x10, 0xff,
  1960. 0x10, 0xff
  1961. }; // 512 elements
  1962. U8 gTAB_TCOEFF_tc2[192]={
  1963. // for prefix 0000 0010
  1964. 0x10, 0x01, // 00 s
  1965. 0x10, 0xff,
  1966. 0x05, 0x02, // 01 s
  1967. 0x05, 0xfe,
  1968. 0x00, 0x07, // 10 s
  1969. 0x00, 0xf9,
  1970. 0x02, 0x03, // 11 s
  1971. 0x02, 0xfd,
  1972. // for prefix 0000 0011
  1973. 0x01, 0x04, // 00 s
  1974. 0x01, 0xfc,
  1975. 0x0f, 0x01, // 01 s
  1976. 0x0f, 0xff,
  1977. 0x0e, 0x01, // 10 s
  1978. 0x0e, 0xff,
  1979. 0x04, 0x02, // 11 s
  1980. 0x04, 0xfe,
  1981. 0x0d, 0x01, // for prefix 0010 0000
  1982. 0x0d, 0xff,
  1983. 0x00, 0x06, // for prefix 0010 0001
  1984. 0x00, 0xfa,
  1985. 0x0c, 0x01, // for prefix 0010 0010
  1986. 0x0c, 0xff,
  1987. 0x0b, 0x01, // for prefix 0010 0011
  1988. 0x0b, 0xff,
  1989. 0x03, 0x02, // for prefix 0010 0100
  1990. 0x03, 0xfe,
  1991. 0x01, 0x03, // for prefix 0010 0101
  1992. 0x01, 0xfd,
  1993. 0x00, 0x05, // for prefix 0010 0110
  1994. 0x00, 0xfb,
  1995. 0x0a, 0x01, // for prefix 0010 0111
  1996. 0x0a, 0xff,
  1997. // table for 0000 0000 prefix
  1998. 0x0a, 0x02, // 1000 0s
  1999. 0x0a, 0xfe,
  2000. 0x09, 0x02, // 1000 1s
  2001. 0x09, 0xfe,
  2002. 0x05, 0x03, // 1001 0s
  2003. 0x05, 0xfd,
  2004. 0x03, 0x04, // 1001 1s
  2005. 0x03, 0xfc,
  2006. 0x02, 0x05, // 1010 0s
  2007. 0x02, 0xfb,
  2008. 0x01, 0x07, // 1010 1s
  2009. 0x01, 0xf9,
  2010. 0x01, 0x06, // 1011 0s
  2011. 0x01, 0xfa,
  2012. 0x00, 0x0f, // 1011 1s
  2013. 0x00, 0xf1,
  2014. 0x00, 0x0e, // 1100 0s
  2015. 0x00, 0xf2,
  2016. 0x00, 0x0d, // 1100 1s
  2017. 0x00, 0xf3,
  2018. 0x00, 0x0c, // 1101 0s
  2019. 0x00, 0xf4,
  2020. 0x1a, 0x01, // 1101 1s
  2021. 0x1a, 0xff,
  2022. 0x19, 0x01, // 1110 0s
  2023. 0x19, 0xff,
  2024. 0x18, 0x01, // 1110 1s
  2025. 0x18, 0xff,
  2026. 0x17, 0x01, // 1111 0s
  2027. 0x17, 0xff,
  2028. 0x16, 0x01, // 1111 1s
  2029. 0x16, 0xff,
  2030. // table for 0000 0001 prefix
  2031. 0x00, 0x0b, // 0000 s
  2032. 0x00, 0xf5,
  2033. 0x08, 0x02, // 0001 s
  2034. 0x08, 0xfe,
  2035. 0x04, 0x03, // 0010 s
  2036. 0x04, 0xfd,
  2037. 0x00, 0x0a, // 0011 s
  2038. 0x00, 0xf6,
  2039. 0x02, 0x04, // 0100 s
  2040. 0x02, 0xfc,
  2041. 0x07, 0x02, // 0101 s
  2042. 0x07, 0xfe,
  2043. 0x15, 0x01, // 0110 s
  2044. 0x15, 0xff,
  2045. 0x14, 0x01, // 0111 s
  2046. 0x14, 0xff,
  2047. 0x00, 0x09, // 1000 s
  2048. 0x00, 0xf7,
  2049. 0x13, 0x01, // 1001 s
  2050. 0x13, 0xff,
  2051. 0x12, 0x01, // 1010 s
  2052. 0x12, 0xff,
  2053. 0x01, 0x05, // 1011 s
  2054. 0x01, 0xfb,
  2055. 0x03, 0x03, // 1100 s
  2056. 0x03, 0xfd,
  2057. 0x00, 0x08, // 1101 s
  2058. 0x00, 0xf8,
  2059. 0x06, 0x02, // 1110 s
  2060. 0x06, 0xfe,
  2061. 0x11, 0x01, // 1111 s ; error in doc?
  2062. 0x11, 0xff
  2063. }; // 192 elements
  2064. I8 gTAB_MV_ADJUST[65] = {
  2065. 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
  2066. -16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,
  2067. 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
  2068. -16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,
  2069. 0};
  2070. I16 gTAB_INVERSE_Q[1024] = {
  2071. 0,
  2072. 0, 0, 0, 0, 0, 0, 0, 0,
  2073. 0, 0, 0, 0, 0, 0, 0, 0,
  2074. 0, 0, 0, 0, 0, 0, 0, 0,
  2075. 0, 0, 0, 0, 0, 0, 0, 0,
  2076. 0, 3, -3, 5, -5, 7, -7, 9,
  2077. -9, 11, -11, 13, -13, 15, -15, 17,
  2078. -17, 19, -19, 21, -21, 23, -23, 25,
  2079. -25, 27, -27, 29, -29, 31, -31, 0,
  2080. 0, 5, -5, 9, -9, 13, -13, 17,
  2081. -17, 21, -21, 25, -25, 29, -29, 33,
  2082. -33, 37, -37, 41, -41, 45, -45, 49,
  2083. -49, 53, -53, 57, -57, 61, -61, 0,
  2084. 0, 9, -9, 15, -15, 21, -21, 27,
  2085. -27, 33, -33, 39, -39, 45, -45, 51,
  2086. -51, 57, -57, 63, -63, 69, -69, 75,
  2087. -75, 81, -81, 87, -87, 93, -93, 0,
  2088. 0, 11, -11, 19, -19, 27, -27, 35,
  2089. -35, 43, -43, 51, -51, 59, -59, 67,
  2090. -67, 75, -75, 83, -83, 91, -91, 99,
  2091. -99, 107, -107, 115, -115, 123, -123, 0,
  2092. 0, 15, -15, 25, -25, 35, -35, 45,
  2093. -45, 55, -55, 65, -65, 75, -75, 85,
  2094. -85, 95, -95, 105, -105, 115, -115, 125,
  2095. -125, 135, -135, 145, -145, 155, -155, 0,
  2096. 0, 17, -17, 29, -29, 41, -41, 53,
  2097. -53, 65, -65, 77, -77, 89, -89, 101,
  2098. -101, 113, -113, 125, -125, 137, -137, 149,
  2099. -149, 161, -161, 173, -173, 185, -185, 0,
  2100. 0, 21, -21, 35, -35, 49, -49, 63,
  2101. -63, 77, -77, 91, -91, 105, -105, 119,
  2102. -119, 133, -133, 147, -147, 161, -161, 175,
  2103. -175, 189, -189, 203, -203, 217, -217, 0,
  2104. 0, 23, -23, 39, -39, 55, -55, 71,
  2105. -71, 87, -87, 103, -103, 119, -119, 135,
  2106. -135, 151, -151, 167, -167, 183, -183, 199,
  2107. -199, 215, -215, 231, -231, 247, -247, 0,
  2108. 0, 27, -27, 45, -45, 63, -63, 81,
  2109. -81, 99, -99, 117, -117, 135, -135, 153,
  2110. -153, 171, -171, 189, -189, 207, -207, 225,
  2111. -225, 243, -243, 261, -261, 279, -279, 0,
  2112. 0, 29, -29, 49, -49, 69, -69, 89,
  2113. -89, 109, -109, 129, -129, 149, -149, 169,
  2114. -169, 189, -189, 209, -209, 229, -229, 249,
  2115. -249, 269, -269, 289, -289, 309, -309, 0,
  2116. 0, 33, -33, 55, -55, 77, -77, 99,
  2117. -99, 121, -121, 143, -143, 165, -165, 187,
  2118. -187, 209, -209, 231, -231, 253, -253, 275,
  2119. -275, 297, -297, 319, -319, 341, -341, 0,
  2120. 0, 35, -35, 59, -59, 83, -83, 107,
  2121. -107, 131, -131, 155, -155, 179, -179, 203,
  2122. -203, 227, -227, 251, -251, 275, -275, 299,
  2123. -299, 323, -323, 347, -347, 371, -371, 0,
  2124. 0, 39, -39, 65, -65, 91, -91, 117,
  2125. -117, 143, -143, 169, -169, 195, -195, 221,
  2126. -221, 247, -247, 273, -273, 299, -299, 325,
  2127. -325, 351, -351, 377, -377, 403, -403, 0,
  2128. 0, 41, -41, 69, -69, 97, -97, 125,
  2129. -125, 153, -153, 181, -181, 209, -209, 237,
  2130. -237, 265, -265, 293, -293, 321, -321, 349,
  2131. -349, 377, -377, 405, -405, 433, -433, 0,
  2132. 0, 45, -45, 75, -75, 105, -105, 135,
  2133. -135, 165, -165, 195, -195, 225, -225, 255,
  2134. -255, 285, -285, 315, -315, 345, -345, 375,
  2135. -375, 405, -405, 435, -435, 465, -465, 0,
  2136. 0, 47, -47, 79, -79, 111, -111, 143,
  2137. -143, 175, -175, 207, -207, 239, -239, 271,
  2138. -271, 303, -303, 335, -335, 367, -367, 399,
  2139. -399, 431, -431, 463, -463, 495, -495, 0,
  2140. 0, 51, -51, 85, -85, 119, -119, 153,
  2141. -153, 187, -187, 221, -221, 255, -255, 289,
  2142. -289, 323, -323, 357, -357, 391, -391, 425,
  2143. -425, 459, -459, 493, -493, 527, -527, 0,
  2144. 0, 53, -53, 89, -89, 125, -125, 161,
  2145. -161, 197, -197, 233, -233, 269, -269, 305,
  2146. -305, 341, -341, 377, -377, 413, -413, 449,
  2147. -449, 485, -485, 521, -521, 557, -557, 0,
  2148. 0, 57, -57, 95, -95, 133, -133, 171,
  2149. -171, 209, -209, 247, -247, 285, -285, 323,
  2150. -323, 361, -361, 399, -399, 437, -437, 475,
  2151. -475, 513, -513, 551, -551, 589, -589, 0,
  2152. 0, 59, -59, 99, -99, 139, -139, 179,
  2153. -179, 219, -219, 259, -259, 299, -299, 339,
  2154. -339, 379, -379, 419, -419, 459, -459, 499,
  2155. -499, 539, -539, 579, -579, 619, -619, 0,
  2156. 0, 63, -63, 105, -105, 147, -147, 189,
  2157. -189, 231, -231, 273, -273, 315, -315, 357,
  2158. -357, 399, -399, 441, -441, 483, -483, 525,
  2159. -525, 567, -567, 609, -609, 651, -651, 0,
  2160. 0, 65, -65, 109, -109, 153, -153, 197,
  2161. -197, 241, -241, 285, -285, 329, -329, 373,
  2162. -373, 417, -417, 461, -461, 505, -505, 549,
  2163. -549, 593, -593, 637, -637, 681, -681, 0,
  2164. 0, 69, -69, 115, -115, 161, -161, 207,
  2165. -207, 253, -253, 299, -299, 345, -345, 391,
  2166. -391, 437, -437, 483, -483, 529, -529, 575,
  2167. -575, 621, -621, 667, -667, 713, -713, 0,
  2168. 0, 71, -71, 119, -119, 167, -167, 215,
  2169. -215, 263, -263, 311, -311, 359, -359, 407,
  2170. -407, 455, -455, 503, -503, 551, -551, 599,
  2171. -599, 647, -647, 695, -695, 743, -743, 0,
  2172. 0, 75, -75, 125, -125, 175, -175, 225,
  2173. -225, 275, -275, 325, -325, 375, -375, 425,
  2174. -425, 475, -475, 525, -525, 575, -575, 625,
  2175. -625, 675, -675, 725, -725, 775, -775, 0,
  2176. 0, 77, -77, 129, -129, 181, -181, 233,
  2177. -233, 285, -285, 337, -337, 389, -389, 441,
  2178. -441, 493, -493, 545, -545, 597, -597, 649,
  2179. -649, 701, -701, 753, -753, 805, -805, 0,
  2180. 0, 81, -81, 135, -135, 189, -189, 243,
  2181. -243, 297, -297, 351, -351, 405, -405, 459,
  2182. -459, 513, -513, 567, -567, 621, -621, 675,
  2183. -675, 729, -729, 783, -783, 837, -837, 0,
  2184. 0, 83, -83, 139, -139, 195, -195, 251,
  2185. -251, 307, -307, 363, -363, 419, -419, 475,
  2186. -475, 531, -531, 587, -587, 643, -643, 699,
  2187. -699, 755, -755, 811, -811, 867, -867, 0,
  2188. 0, 87, -87, 145, -145, 203, -203, 261,
  2189. -261, 319, -319, 377, -377, 435, -435, 493,
  2190. -493, 551, -551, 609, -609, 667, -667, 725,
  2191. -725, 783, -783, 841, -841, 899, -899, 0,
  2192. 0, 89, -89, 149, -149, 209, -209, 269,
  2193. -269, 329, -329, 389, -389, 449, -449, 509,
  2194. -509, 569, -569, 629, -629, 689, -689, 749,
  2195. -749, 809, -809, 869, -869, 929, -929, 0,
  2196. 0, 93, -93, 155, -155, 217, -217, 279,
  2197. -279, 341, -341, 403, -403, 465, -465, 527,
  2198. -527, 589, -589, 651, -651, 713, -713, 775,
  2199. -775, 837, -837, 899, -899, 961, -961
  2200. };
  2201. U32 gTAB_ZZ_RUN[64]= { 0, 1, 8, 16, 9, 2, 3, 10,
  2202. 17, 24, 32, 25, 18, 11, 4, 5,
  2203. 12, 19, 26, 33, 40, 48, 41, 34,
  2204. 27, 20, 13, 6, 7, 14, 21, 28,
  2205. 35, 42, 49, 56, 57, 50, 43, 36,
  2206. 29, 22, 15, 23, 30, 37, 44, 51,
  2207. 58, 59, 52, 45, 38, 31, 39, 46,
  2208. 53, 60, 61, 54, 47, 55, 62, 63
  2209. }
  2210. ; //input is the cumulative run value