Counter Strike : Global Offensive Source Code
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.

3109 lines
72 KiB

  1. /*
  2. * libmad - MPEG audio decoder library
  3. * Copyright (C) 2000-2004 Underbit Technologies, Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. *
  19. * $Id: huffman.c,v 1.10 2004/01/23 09:41:32 rob Exp $
  20. */
  21. # ifdef HAVE_CONFIG_H
  22. # include "config.h"
  23. # endif
  24. # include "global.h"
  25. # include "huffman.h"
  26. /*
  27. * These are the Huffman code words for Layer III.
  28. * The data for these tables are derived from Table B.7 of ISO/IEC 11172-3.
  29. *
  30. * These tables support decoding up to 4 Huffman code bits at a time.
  31. */
  32. # if defined(__GNUC__) || \
  33. (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901)
  34. # define PTR(offs, bits) { .ptr = { 0, bits, offs } }
  35. # define V(v, w, x, y, hlen) { .value = { 1, hlen, v, w, x, y } }
  36. # else
  37. # define PTR(offs, bits) { { 0, bits, offs } }
  38. # if defined(WORDS_BIGENDIAN)
  39. # define V(v, w, x, y, hlen) { { 1, hlen, (v << 11) | (w << 10) | \
  40. (x << 9) | (y << 8) } }
  41. # else
  42. # define V(v, w, x, y, hlen) { { 1, hlen, (v << 0) | (w << 1) | \
  43. (x << 2) | (y << 3) } }
  44. # endif
  45. # endif
  46. static
  47. union huffquad const hufftabA[] = {
  48. /* 0000 */ PTR(16, 2),
  49. /* 0001 */ PTR(20, 2),
  50. /* 0010 */ PTR(24, 1),
  51. /* 0011 */ PTR(26, 1),
  52. /* 0100 */ V(0, 0, 1, 0, 4),
  53. /* 0101 */ V(0, 0, 0, 1, 4),
  54. /* 0110 */ V(0, 1, 0, 0, 4),
  55. /* 0111 */ V(1, 0, 0, 0, 4),
  56. /* 1000 */ V(0, 0, 0, 0, 1),
  57. /* 1001 */ V(0, 0, 0, 0, 1),
  58. /* 1010 */ V(0, 0, 0, 0, 1),
  59. /* 1011 */ V(0, 0, 0, 0, 1),
  60. /* 1100 */ V(0, 0, 0, 0, 1),
  61. /* 1101 */ V(0, 0, 0, 0, 1),
  62. /* 1110 */ V(0, 0, 0, 0, 1),
  63. /* 1111 */ V(0, 0, 0, 0, 1),
  64. /* 0000 ... */
  65. /* 00 */ V(1, 0, 1, 1, 2), /* 16 */
  66. /* 01 */ V(1, 1, 1, 1, 2),
  67. /* 10 */ V(1, 1, 0, 1, 2),
  68. /* 11 */ V(1, 1, 1, 0, 2),
  69. /* 0001 ... */
  70. /* 00 */ V(0, 1, 1, 1, 2), /* 20 */
  71. /* 01 */ V(0, 1, 0, 1, 2),
  72. /* 10 */ V(1, 0, 0, 1, 1),
  73. /* 11 */ V(1, 0, 0, 1, 1),
  74. /* 0010 ... */
  75. /* 0 */ V(0, 1, 1, 0, 1), /* 24 */
  76. /* 1 */ V(0, 0, 1, 1, 1),
  77. /* 0011 ... */
  78. /* 0 */ V(1, 0, 1, 0, 1), /* 26 */
  79. /* 1 */ V(1, 1, 0, 0, 1)
  80. };
  81. static
  82. union huffquad const hufftabB[] = {
  83. /* 0000 */ V(1, 1, 1, 1, 4),
  84. /* 0001 */ V(1, 1, 1, 0, 4),
  85. /* 0010 */ V(1, 1, 0, 1, 4),
  86. /* 0011 */ V(1, 1, 0, 0, 4),
  87. /* 0100 */ V(1, 0, 1, 1, 4),
  88. /* 0101 */ V(1, 0, 1, 0, 4),
  89. /* 0110 */ V(1, 0, 0, 1, 4),
  90. /* 0111 */ V(1, 0, 0, 0, 4),
  91. /* 1000 */ V(0, 1, 1, 1, 4),
  92. /* 1001 */ V(0, 1, 1, 0, 4),
  93. /* 1010 */ V(0, 1, 0, 1, 4),
  94. /* 1011 */ V(0, 1, 0, 0, 4),
  95. /* 1100 */ V(0, 0, 1, 1, 4),
  96. /* 1101 */ V(0, 0, 1, 0, 4),
  97. /* 1110 */ V(0, 0, 0, 1, 4),
  98. /* 1111 */ V(0, 0, 0, 0, 4)
  99. };
  100. # undef V
  101. # undef PTR
  102. # if defined(__GNUC__) || \
  103. (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901)
  104. # define PTR(offs, bits) { .ptr = { 0, bits, offs } }
  105. # define V(x, y, hlen) { .value = { 1, hlen, x, y } }
  106. # else
  107. # define PTR(offs, bits) { { 0, bits, offs } }
  108. # if defined(WORDS_BIGENDIAN)
  109. # define V(x, y, hlen) { { 1, hlen, (x << 8) | (y << 4) } }
  110. # else
  111. # define V(x, y, hlen) { { 1, hlen, (x << 0) | (y << 4) } }
  112. # endif
  113. # endif
  114. static
  115. union huffpair const hufftab0[] = {
  116. /* */ V(0, 0, 0)
  117. };
  118. static
  119. union huffpair const hufftab1[] = {
  120. /* 000 */ V(1, 1, 3),
  121. /* 001 */ V(0, 1, 3),
  122. /* 010 */ V(1, 0, 2),
  123. /* 011 */ V(1, 0, 2),
  124. /* 100 */ V(0, 0, 1),
  125. /* 101 */ V(0, 0, 1),
  126. /* 110 */ V(0, 0, 1),
  127. /* 111 */ V(0, 0, 1)
  128. };
  129. static
  130. union huffpair const hufftab2[] = {
  131. /* 000 */ PTR(8, 3),
  132. /* 001 */ V(1, 1, 3),
  133. /* 010 */ V(0, 1, 3),
  134. /* 011 */ V(1, 0, 3),
  135. /* 100 */ V(0, 0, 1),
  136. /* 101 */ V(0, 0, 1),
  137. /* 110 */ V(0, 0, 1),
  138. /* 111 */ V(0, 0, 1),
  139. /* 000 ... */
  140. /* 000 */ V(2, 2, 3), /* 8 */
  141. /* 001 */ V(0, 2, 3),
  142. /* 010 */ V(1, 2, 2),
  143. /* 011 */ V(1, 2, 2),
  144. /* 100 */ V(2, 1, 2),
  145. /* 101 */ V(2, 1, 2),
  146. /* 110 */ V(2, 0, 2),
  147. /* 111 */ V(2, 0, 2)
  148. };
  149. static
  150. union huffpair const hufftab3[] = {
  151. /* 000 */ PTR(8, 3),
  152. /* 001 */ V(1, 0, 3),
  153. /* 010 */ V(1, 1, 2),
  154. /* 011 */ V(1, 1, 2),
  155. /* 100 */ V(0, 1, 2),
  156. /* 101 */ V(0, 1, 2),
  157. /* 110 */ V(0, 0, 2),
  158. /* 111 */ V(0, 0, 2),
  159. /* 000 ... */
  160. /* 000 */ V(2, 2, 3), /* 8 */
  161. /* 001 */ V(0, 2, 3),
  162. /* 010 */ V(1, 2, 2),
  163. /* 011 */ V(1, 2, 2),
  164. /* 100 */ V(2, 1, 2),
  165. /* 101 */ V(2, 1, 2),
  166. /* 110 */ V(2, 0, 2),
  167. /* 111 */ V(2, 0, 2)
  168. };
  169. static
  170. union huffpair const hufftab5[] = {
  171. /* 000 */ PTR(8, 4),
  172. /* 001 */ V(1, 1, 3),
  173. /* 010 */ V(0, 1, 3),
  174. /* 011 */ V(1, 0, 3),
  175. /* 100 */ V(0, 0, 1),
  176. /* 101 */ V(0, 0, 1),
  177. /* 110 */ V(0, 0, 1),
  178. /* 111 */ V(0, 0, 1),
  179. /* 000 ... */
  180. /* 0000 */ PTR(24, 1), /* 8 */
  181. /* 0001 */ V(3, 2, 4),
  182. /* 0010 */ V(3, 1, 3),
  183. /* 0011 */ V(3, 1, 3),
  184. /* 0100 */ V(1, 3, 4),
  185. /* 0101 */ V(0, 3, 4),
  186. /* 0110 */ V(3, 0, 4),
  187. /* 0111 */ V(2, 2, 4),
  188. /* 1000 */ V(1, 2, 3),
  189. /* 1001 */ V(1, 2, 3),
  190. /* 1010 */ V(2, 1, 3),
  191. /* 1011 */ V(2, 1, 3),
  192. /* 1100 */ V(0, 2, 3),
  193. /* 1101 */ V(0, 2, 3),
  194. /* 1110 */ V(2, 0, 3),
  195. /* 1111 */ V(2, 0, 3),
  196. /* 000 0000 ... */
  197. /* 0 */ V(3, 3, 1), /* 24 */
  198. /* 1 */ V(2, 3, 1)
  199. };
  200. static
  201. union huffpair const hufftab6[] = {
  202. /* 0000 */ PTR(16, 3),
  203. /* 0001 */ PTR(24, 1),
  204. /* 0010 */ PTR(26, 1),
  205. /* 0011 */ V(1, 2, 4),
  206. /* 0100 */ V(2, 1, 4),
  207. /* 0101 */ V(2, 0, 4),
  208. /* 0110 */ V(0, 1, 3),
  209. /* 0111 */ V(0, 1, 3),
  210. /* 1000 */ V(1, 1, 2),
  211. /* 1001 */ V(1, 1, 2),
  212. /* 1010 */ V(1, 1, 2),
  213. /* 1011 */ V(1, 1, 2),
  214. /* 1100 */ V(1, 0, 3),
  215. /* 1101 */ V(1, 0, 3),
  216. /* 1110 */ V(0, 0, 3),
  217. /* 1111 */ V(0, 0, 3),
  218. /* 0000 ... */
  219. /* 000 */ V(3, 3, 3), /* 16 */
  220. /* 001 */ V(0, 3, 3),
  221. /* 010 */ V(2, 3, 2),
  222. /* 011 */ V(2, 3, 2),
  223. /* 100 */ V(3, 2, 2),
  224. /* 101 */ V(3, 2, 2),
  225. /* 110 */ V(3, 0, 2),
  226. /* 111 */ V(3, 0, 2),
  227. /* 0001 ... */
  228. /* 0 */ V(1, 3, 1), /* 24 */
  229. /* 1 */ V(3, 1, 1),
  230. /* 0010 ... */
  231. /* 0 */ V(2, 2, 1), /* 26 */
  232. /* 1 */ V(0, 2, 1)
  233. };
  234. static
  235. union huffpair const hufftab7[] = {
  236. /* 0000 */ PTR(16, 4),
  237. /* 0001 */ PTR(32, 4),
  238. /* 0010 */ PTR(48, 2),
  239. /* 0011 */ V(1, 1, 4),
  240. /* 0100 */ V(0, 1, 3),
  241. /* 0101 */ V(0, 1, 3),
  242. /* 0110 */ V(1, 0, 3),
  243. /* 0111 */ V(1, 0, 3),
  244. /* 1000 */ V(0, 0, 1),
  245. /* 1001 */ V(0, 0, 1),
  246. /* 1010 */ V(0, 0, 1),
  247. /* 1011 */ V(0, 0, 1),
  248. /* 1100 */ V(0, 0, 1),
  249. /* 1101 */ V(0, 0, 1),
  250. /* 1110 */ V(0, 0, 1),
  251. /* 1111 */ V(0, 0, 1),
  252. /* 0000 ... */
  253. /* 0000 */ PTR(52, 2), /* 16 */
  254. /* 0001 */ PTR(56, 1),
  255. /* 0010 */ PTR(58, 1),
  256. /* 0011 */ V(1, 5, 4),
  257. /* 0100 */ V(5, 1, 4),
  258. /* 0101 */ PTR(60, 1),
  259. /* 0110 */ V(5, 0, 4),
  260. /* 0111 */ PTR(62, 1),
  261. /* 1000 */ V(2, 4, 4),
  262. /* 1001 */ V(4, 2, 4),
  263. /* 1010 */ V(1, 4, 3),
  264. /* 1011 */ V(1, 4, 3),
  265. /* 1100 */ V(4, 1, 3),
  266. /* 1101 */ V(4, 1, 3),
  267. /* 1110 */ V(4, 0, 3),
  268. /* 1111 */ V(4, 0, 3),
  269. /* 0001 ... */
  270. /* 0000 */ V(0, 4, 4), /* 32 */
  271. /* 0001 */ V(2, 3, 4),
  272. /* 0010 */ V(3, 2, 4),
  273. /* 0011 */ V(0, 3, 4),
  274. /* 0100 */ V(1, 3, 3),
  275. /* 0101 */ V(1, 3, 3),
  276. /* 0110 */ V(3, 1, 3),
  277. /* 0111 */ V(3, 1, 3),
  278. /* 1000 */ V(3, 0, 3),
  279. /* 1001 */ V(3, 0, 3),
  280. /* 1010 */ V(2, 2, 3),
  281. /* 1011 */ V(2, 2, 3),
  282. /* 1100 */ V(1, 2, 2),
  283. /* 1101 */ V(1, 2, 2),
  284. /* 1110 */ V(1, 2, 2),
  285. /* 1111 */ V(1, 2, 2),
  286. /* 0010 ... */
  287. /* 00 */ V(2, 1, 1), /* 48 */
  288. /* 01 */ V(2, 1, 1),
  289. /* 10 */ V(0, 2, 2),
  290. /* 11 */ V(2, 0, 2),
  291. /* 0000 0000 ... */
  292. /* 00 */ V(5, 5, 2), /* 52 */
  293. /* 01 */ V(4, 5, 2),
  294. /* 10 */ V(5, 4, 2),
  295. /* 11 */ V(5, 3, 2),
  296. /* 0000 0001 ... */
  297. /* 0 */ V(3, 5, 1), /* 56 */
  298. /* 1 */ V(4, 4, 1),
  299. /* 0000 0010 ... */
  300. /* 0 */ V(2, 5, 1), /* 58 */
  301. /* 1 */ V(5, 2, 1),
  302. /* 0000 0101 ... */
  303. /* 0 */ V(0, 5, 1), /* 60 */
  304. /* 1 */ V(3, 4, 1),
  305. /* 0000 0111 ... */
  306. /* 0 */ V(4, 3, 1), /* 62 */
  307. /* 1 */ V(3, 3, 1)
  308. };
  309. # if 0
  310. /* this version saves 8 entries (16 bytes) at the expense of
  311. an extra lookup in 4 out of 36 cases */
  312. static
  313. union huffpair const hufftab8[] = {
  314. /* 0000 */ PTR(16, 4),
  315. /* 0001 */ PTR(32, 2),
  316. /* 0010 */ V(1, 2, 4),
  317. /* 0011 */ V(2, 1, 4),
  318. /* 0100 */ V(1, 1, 2),
  319. /* 0101 */ V(1, 1, 2),
  320. /* 0110 */ V(1, 1, 2),
  321. /* 0111 */ V(1, 1, 2),
  322. /* 1000 */ V(0, 1, 3),
  323. /* 1001 */ V(0, 1, 3),
  324. /* 1010 */ V(1, 0, 3),
  325. /* 1011 */ V(1, 0, 3),
  326. /* 1100 */ V(0, 0, 2),
  327. /* 1101 */ V(0, 0, 2),
  328. /* 1110 */ V(0, 0, 2),
  329. /* 1111 */ V(0, 0, 2),
  330. /* 0000 ... */
  331. /* 0000 */ PTR(36, 3), /* 16 */
  332. /* 0001 */ PTR(44, 2),
  333. /* 0010 */ PTR(48, 1),
  334. /* 0011 */ V(1, 5, 4),
  335. /* 0100 */ V(5, 1, 4),
  336. /* 0101 */ PTR(50, 1),
  337. /* 0110 */ PTR(52, 1),
  338. /* 0111 */ V(2, 4, 4),
  339. /* 1000 */ V(4, 2, 4),
  340. /* 1001 */ V(1, 4, 4),
  341. /* 1010 */ V(4, 1, 3),
  342. /* 1011 */ V(4, 1, 3),
  343. /* 1100 */ V(0, 4, 4),
  344. /* 1101 */ V(4, 0, 4),
  345. /* 1110 */ V(2, 3, 4),
  346. /* 1111 */ V(3, 2, 4),
  347. /* 0001 ... */
  348. /* 00 */ PTR(54, 2), /* 32 */
  349. /* 01 */ V(2, 2, 2),
  350. /* 10 */ V(0, 2, 2),
  351. /* 11 */ V(2, 0, 2),
  352. /* 0000 0000 ... */
  353. /* 000 */ V(5, 5, 3), /* 36 */
  354. /* 001 */ V(5, 4, 3),
  355. /* 010 */ V(4, 5, 2),
  356. /* 011 */ V(4, 5, 2),
  357. /* 100 */ V(5, 3, 1),
  358. /* 101 */ V(5, 3, 1),
  359. /* 110 */ V(5, 3, 1),
  360. /* 111 */ V(5, 3, 1),
  361. /* 0000 0001 ... */
  362. /* 00 */ V(3, 5, 2), /* 44 */
  363. /* 01 */ V(4, 4, 2),
  364. /* 10 */ V(2, 5, 1),
  365. /* 11 */ V(2, 5, 1),
  366. /* 0000 0010 ... */
  367. /* 0 */ V(5, 2, 1), /* 48 */
  368. /* 1 */ V(0, 5, 1),
  369. /* 0000 0101 ... */
  370. /* 0 */ V(3, 4, 1), /* 50 */
  371. /* 1 */ V(4, 3, 1),
  372. /* 0000 0110 ... */
  373. /* 0 */ V(5, 0, 1), /* 52 */
  374. /* 1 */ V(3, 3, 1),
  375. /* 0001 00 ... */
  376. /* 00 */ V(1, 3, 2), /* 54 */
  377. /* 01 */ V(3, 1, 2),
  378. /* 10 */ V(0, 3, 2),
  379. /* 11 */ V(3, 0, 2),
  380. };
  381. # else
  382. static
  383. union huffpair const hufftab8[] = {
  384. /* 0000 */ PTR(16, 4),
  385. /* 0001 */ PTR(32, 4),
  386. /* 0010 */ V(1, 2, 4),
  387. /* 0011 */ V(2, 1, 4),
  388. /* 0100 */ V(1, 1, 2),
  389. /* 0101 */ V(1, 1, 2),
  390. /* 0110 */ V(1, 1, 2),
  391. /* 0111 */ V(1, 1, 2),
  392. /* 1000 */ V(0, 1, 3),
  393. /* 1001 */ V(0, 1, 3),
  394. /* 1010 */ V(1, 0, 3),
  395. /* 1011 */ V(1, 0, 3),
  396. /* 1100 */ V(0, 0, 2),
  397. /* 1101 */ V(0, 0, 2),
  398. /* 1110 */ V(0, 0, 2),
  399. /* 1111 */ V(0, 0, 2),
  400. /* 0000 ... */
  401. /* 0000 */ PTR(48, 3), /* 16 */
  402. /* 0001 */ PTR(56, 2),
  403. /* 0010 */ PTR(60, 1),
  404. /* 0011 */ V(1, 5, 4),
  405. /* 0100 */ V(5, 1, 4),
  406. /* 0101 */ PTR(62, 1),
  407. /* 0110 */ PTR(64, 1),
  408. /* 0111 */ V(2, 4, 4),
  409. /* 1000 */ V(4, 2, 4),
  410. /* 1001 */ V(1, 4, 4),
  411. /* 1010 */ V(4, 1, 3),
  412. /* 1011 */ V(4, 1, 3),
  413. /* 1100 */ V(0, 4, 4),
  414. /* 1101 */ V(4, 0, 4),
  415. /* 1110 */ V(2, 3, 4),
  416. /* 1111 */ V(3, 2, 4),
  417. /* 0001 ... */
  418. /* 0000 */ V(1, 3, 4), /* 32 */
  419. /* 0001 */ V(3, 1, 4),
  420. /* 0010 */ V(0, 3, 4),
  421. /* 0011 */ V(3, 0, 4),
  422. /* 0100 */ V(2, 2, 2),
  423. /* 0101 */ V(2, 2, 2),
  424. /* 0110 */ V(2, 2, 2),
  425. /* 0111 */ V(2, 2, 2),
  426. /* 1000 */ V(0, 2, 2),
  427. /* 1001 */ V(0, 2, 2),
  428. /* 1010 */ V(0, 2, 2),
  429. /* 1011 */ V(0, 2, 2),
  430. /* 1100 */ V(2, 0, 2),
  431. /* 1101 */ V(2, 0, 2),
  432. /* 1110 */ V(2, 0, 2),
  433. /* 1111 */ V(2, 0, 2),
  434. /* 0000 0000 ... */
  435. /* 000 */ V(5, 5, 3), /* 48 */
  436. /* 001 */ V(5, 4, 3),
  437. /* 010 */ V(4, 5, 2),
  438. /* 011 */ V(4, 5, 2),
  439. /* 100 */ V(5, 3, 1),
  440. /* 101 */ V(5, 3, 1),
  441. /* 110 */ V(5, 3, 1),
  442. /* 111 */ V(5, 3, 1),
  443. /* 0000 0001 ... */
  444. /* 00 */ V(3, 5, 2), /* 56 */
  445. /* 01 */ V(4, 4, 2),
  446. /* 10 */ V(2, 5, 1),
  447. /* 11 */ V(2, 5, 1),
  448. /* 0000 0010 ... */
  449. /* 0 */ V(5, 2, 1), /* 60 */
  450. /* 1 */ V(0, 5, 1),
  451. /* 0000 0101 ... */
  452. /* 0 */ V(3, 4, 1), /* 62 */
  453. /* 1 */ V(4, 3, 1),
  454. /* 0000 0110 ... */
  455. /* 0 */ V(5, 0, 1), /* 64 */
  456. /* 1 */ V(3, 3, 1)
  457. };
  458. # endif
  459. static
  460. union huffpair const hufftab9[] = {
  461. /* 0000 */ PTR(16, 4),
  462. /* 0001 */ PTR(32, 3),
  463. /* 0010 */ PTR(40, 2),
  464. /* 0011 */ PTR(44, 2),
  465. /* 0100 */ PTR(48, 1),
  466. /* 0101 */ V(1, 2, 4),
  467. /* 0110 */ V(2, 1, 4),
  468. /* 0111 */ V(2, 0, 4),
  469. /* 1000 */ V(1, 1, 3),
  470. /* 1001 */ V(1, 1, 3),
  471. /* 1010 */ V(0, 1, 3),
  472. /* 1011 */ V(0, 1, 3),
  473. /* 1100 */ V(1, 0, 3),
  474. /* 1101 */ V(1, 0, 3),
  475. /* 1110 */ V(0, 0, 3),
  476. /* 1111 */ V(0, 0, 3),
  477. /* 0000 ... */
  478. /* 0000 */ PTR(50, 1), /* 16 */
  479. /* 0001 */ V(3, 5, 4),
  480. /* 0010 */ V(5, 3, 4),
  481. /* 0011 */ PTR(52, 1),
  482. /* 0100 */ V(4, 4, 4),
  483. /* 0101 */ V(2, 5, 4),
  484. /* 0110 */ V(5, 2, 4),
  485. /* 0111 */ V(1, 5, 4),
  486. /* 1000 */ V(5, 1, 3),
  487. /* 1001 */ V(5, 1, 3),
  488. /* 1010 */ V(3, 4, 3),
  489. /* 1011 */ V(3, 4, 3),
  490. /* 1100 */ V(4, 3, 3),
  491. /* 1101 */ V(4, 3, 3),
  492. /* 1110 */ V(5, 0, 4),
  493. /* 1111 */ V(0, 4, 4),
  494. /* 0001 ... */
  495. /* 000 */ V(2, 4, 3), /* 32 */
  496. /* 001 */ V(4, 2, 3),
  497. /* 010 */ V(3, 3, 3),
  498. /* 011 */ V(4, 0, 3),
  499. /* 100 */ V(1, 4, 2),
  500. /* 101 */ V(1, 4, 2),
  501. /* 110 */ V(4, 1, 2),
  502. /* 111 */ V(4, 1, 2),
  503. /* 0010 ... */
  504. /* 00 */ V(2, 3, 2), /* 40 */
  505. /* 01 */ V(3, 2, 2),
  506. /* 10 */ V(1, 3, 1),
  507. /* 11 */ V(1, 3, 1),
  508. /* 0011 ... */
  509. /* 00 */ V(3, 1, 1), /* 44 */
  510. /* 01 */ V(3, 1, 1),
  511. /* 10 */ V(0, 3, 2),
  512. /* 11 */ V(3, 0, 2),
  513. /* 0100 ... */
  514. /* 0 */ V(2, 2, 1), /* 48 */
  515. /* 1 */ V(0, 2, 1),
  516. /* 0000 0000 ... */
  517. /* 0 */ V(5, 5, 1), /* 50 */
  518. /* 1 */ V(4, 5, 1),
  519. /* 0000 0011 ... */
  520. /* 0 */ V(5, 4, 1), /* 52 */
  521. /* 1 */ V(0, 5, 1)
  522. };
  523. static
  524. union huffpair const hufftab10[] = {
  525. /* 0000 */ PTR(16, 4),
  526. /* 0001 */ PTR(32, 4),
  527. /* 0010 */ PTR(48, 2),
  528. /* 0011 */ V(1, 1, 4),
  529. /* 0100 */ V(0, 1, 3),
  530. /* 0101 */ V(0, 1, 3),
  531. /* 0110 */ V(1, 0, 3),
  532. /* 0111 */ V(1, 0, 3),
  533. /* 1000 */ V(0, 0, 1),
  534. /* 1001 */ V(0, 0, 1),
  535. /* 1010 */ V(0, 0, 1),
  536. /* 1011 */ V(0, 0, 1),
  537. /* 1100 */ V(0, 0, 1),
  538. /* 1101 */ V(0, 0, 1),
  539. /* 1110 */ V(0, 0, 1),
  540. /* 1111 */ V(0, 0, 1),
  541. /* 0000 ... */
  542. /* 0000 */ PTR(52, 3), /* 16 */
  543. /* 0001 */ PTR(60, 2),
  544. /* 0010 */ PTR(64, 3),
  545. /* 0011 */ PTR(72, 1),
  546. /* 0100 */ PTR(74, 2),
  547. /* 0101 */ PTR(78, 2),
  548. /* 0110 */ PTR(82, 2),
  549. /* 0111 */ V(1, 7, 4),
  550. /* 1000 */ V(7, 1, 4),
  551. /* 1001 */ PTR(86, 1),
  552. /* 1010 */ PTR(88, 2),
  553. /* 1011 */ PTR(92, 2),
  554. /* 1100 */ V(1, 6, 4),
  555. /* 1101 */ V(6, 1, 4),
  556. /* 1110 */ V(6, 0, 4),
  557. /* 1111 */ PTR(96, 1),
  558. /* 0001 ... */
  559. /* 0000 */ PTR(98, 1), /* 32 */
  560. /* 0001 */ PTR(100, 1),
  561. /* 0010 */ V(1, 4, 4),
  562. /* 0011 */ V(4, 1, 4),
  563. /* 0100 */ V(4, 0, 4),
  564. /* 0101 */ V(2, 3, 4),
  565. /* 0110 */ V(3, 2, 4),
  566. /* 0111 */ V(0, 3, 4),
  567. /* 1000 */ V(1, 3, 3),
  568. /* 1001 */ V(1, 3, 3),
  569. /* 1010 */ V(3, 1, 3),
  570. /* 1011 */ V(3, 1, 3),
  571. /* 1100 */ V(3, 0, 3),
  572. /* 1101 */ V(3, 0, 3),
  573. /* 1110 */ V(2, 2, 3),
  574. /* 1111 */ V(2, 2, 3),
  575. /* 0010 ... */
  576. /* 00 */ V(1, 2, 2), /* 48 */
  577. /* 01 */ V(2, 1, 2),
  578. /* 10 */ V(0, 2, 2),
  579. /* 11 */ V(2, 0, 2),
  580. /* 0000 0000 ... */
  581. /* 000 */ V(7, 7, 3), /* 52 */
  582. /* 001 */ V(6, 7, 3),
  583. /* 010 */ V(7, 6, 3),
  584. /* 011 */ V(5, 7, 3),
  585. /* 100 */ V(7, 5, 3),
  586. /* 101 */ V(6, 6, 3),
  587. /* 110 */ V(4, 7, 2),
  588. /* 111 */ V(4, 7, 2),
  589. /* 0000 0001 ... */
  590. /* 00 */ V(7, 4, 2), /* 60 */
  591. /* 01 */ V(5, 6, 2),
  592. /* 10 */ V(6, 5, 2),
  593. /* 11 */ V(3, 7, 2),
  594. /* 0000 0010 ... */
  595. /* 000 */ V(7, 3, 2), /* 64 */
  596. /* 001 */ V(7, 3, 2),
  597. /* 010 */ V(4, 6, 2),
  598. /* 011 */ V(4, 6, 2),
  599. /* 100 */ V(5, 5, 3),
  600. /* 101 */ V(5, 4, 3),
  601. /* 110 */ V(6, 3, 2),
  602. /* 111 */ V(6, 3, 2),
  603. /* 0000 0011 ... */
  604. /* 0 */ V(2, 7, 1), /* 72 */
  605. /* 1 */ V(7, 2, 1),
  606. /* 0000 0100 ... */
  607. /* 00 */ V(6, 4, 2), /* 74 */
  608. /* 01 */ V(0, 7, 2),
  609. /* 10 */ V(7, 0, 1),
  610. /* 11 */ V(7, 0, 1),
  611. /* 0000 0101 ... */
  612. /* 00 */ V(6, 2, 1), /* 78 */
  613. /* 01 */ V(6, 2, 1),
  614. /* 10 */ V(4, 5, 2),
  615. /* 11 */ V(3, 5, 2),
  616. /* 0000 0110 ... */
  617. /* 00 */ V(0, 6, 1), /* 82 */
  618. /* 01 */ V(0, 6, 1),
  619. /* 10 */ V(5, 3, 2),
  620. /* 11 */ V(4, 4, 2),
  621. /* 0000 1001 ... */
  622. /* 0 */ V(3, 6, 1), /* 86 */
  623. /* 1 */ V(2, 6, 1),
  624. /* 0000 1010 ... */
  625. /* 00 */ V(2, 5, 2), /* 88 */
  626. /* 01 */ V(5, 2, 2),
  627. /* 10 */ V(1, 5, 1),
  628. /* 11 */ V(1, 5, 1),
  629. /* 0000 1011 ... */
  630. /* 00 */ V(5, 1, 1), /* 92 */
  631. /* 01 */ V(5, 1, 1),
  632. /* 10 */ V(3, 4, 2),
  633. /* 11 */ V(4, 3, 2),
  634. /* 0000 1111 ... */
  635. /* 0 */ V(0, 5, 1), /* 96 */
  636. /* 1 */ V(5, 0, 1),
  637. /* 0001 0000 ... */
  638. /* 0 */ V(2, 4, 1), /* 98 */
  639. /* 1 */ V(4, 2, 1),
  640. /* 0001 0001 ... */
  641. /* 0 */ V(3, 3, 1), /* 100 */
  642. /* 1 */ V(0, 4, 1)
  643. };
  644. static
  645. union huffpair const hufftab11[] = {
  646. /* 0000 */ PTR(16, 4),
  647. /* 0001 */ PTR(32, 4),
  648. /* 0010 */ PTR(48, 4),
  649. /* 0011 */ PTR(64, 3),
  650. /* 0100 */ V(1, 2, 4),
  651. /* 0101 */ PTR(72, 1),
  652. /* 0110 */ V(1, 1, 3),
  653. /* 0111 */ V(1, 1, 3),
  654. /* 1000 */ V(0, 1, 3),
  655. /* 1001 */ V(0, 1, 3),
  656. /* 1010 */ V(1, 0, 3),
  657. /* 1011 */ V(1, 0, 3),
  658. /* 1100 */ V(0, 0, 2),
  659. /* 1101 */ V(0, 0, 2),
  660. /* 1110 */ V(0, 0, 2),
  661. /* 1111 */ V(0, 0, 2),
  662. /* 0000 ... */
  663. /* 0000 */ PTR(74, 2), /* 16 */
  664. /* 0001 */ PTR(78, 3),
  665. /* 0010 */ PTR(86, 2),
  666. /* 0011 */ PTR(90, 1),
  667. /* 0100 */ PTR(92, 2),
  668. /* 0101 */ V(2, 7, 4),
  669. /* 0110 */ V(7, 2, 4),
  670. /* 0111 */ PTR(96, 1),
  671. /* 1000 */ V(7, 1, 3),
  672. /* 1001 */ V(7, 1, 3),
  673. /* 1010 */ V(1, 7, 4),
  674. /* 1011 */ V(7, 0, 4),
  675. /* 1100 */ V(3, 6, 4),
  676. /* 1101 */ V(6, 3, 4),
  677. /* 1110 */ V(6, 0, 4),
  678. /* 1111 */ PTR(98, 1),
  679. /* 0001 ... */
  680. /* 0000 */ PTR(100, 1), /* 32 */
  681. /* 0001 */ V(1, 5, 4),
  682. /* 0010 */ V(6, 2, 3),
  683. /* 0011 */ V(6, 2, 3),
  684. /* 0100 */ V(2, 6, 4),
  685. /* 0101 */ V(0, 6, 4),
  686. /* 0110 */ V(1, 6, 3),
  687. /* 0111 */ V(1, 6, 3),
  688. /* 1000 */ V(6, 1, 3),
  689. /* 1001 */ V(6, 1, 3),
  690. /* 1010 */ V(5, 1, 4),
  691. /* 1011 */ V(3, 4, 4),
  692. /* 1100 */ V(5, 0, 4),
  693. /* 1101 */ PTR(102, 1),
  694. /* 1110 */ V(2, 4, 4),
  695. /* 1111 */ V(4, 2, 4),
  696. /* 0010 ... */
  697. /* 0000 */ V(1, 4, 4), /* 48 */
  698. /* 0001 */ V(4, 1, 4),
  699. /* 0010 */ V(0, 4, 4),
  700. /* 0011 */ V(4, 0, 4),
  701. /* 0100 */ V(2, 3, 3),
  702. /* 0101 */ V(2, 3, 3),
  703. /* 0110 */ V(3, 2, 3),
  704. /* 0111 */ V(3, 2, 3),
  705. /* 1000 */ V(1, 3, 2),
  706. /* 1001 */ V(1, 3, 2),
  707. /* 1010 */ V(1, 3, 2),
  708. /* 1011 */ V(1, 3, 2),
  709. /* 1100 */ V(3, 1, 2),
  710. /* 1101 */ V(3, 1, 2),
  711. /* 1110 */ V(3, 1, 2),
  712. /* 1111 */ V(3, 1, 2),
  713. /* 0011 ... */
  714. /* 000 */ V(0, 3, 3), /* 64 */
  715. /* 001 */ V(3, 0, 3),
  716. /* 010 */ V(2, 2, 2),
  717. /* 011 */ V(2, 2, 2),
  718. /* 100 */ V(2, 1, 1),
  719. /* 101 */ V(2, 1, 1),
  720. /* 110 */ V(2, 1, 1),
  721. /* 111 */ V(2, 1, 1),
  722. /* 0101 ... */
  723. /* 0 */ V(0, 2, 1), /* 72 */
  724. /* 1 */ V(2, 0, 1),
  725. /* 0000 0000 ... */
  726. /* 00 */ V(7, 7, 2), /* 74 */
  727. /* 01 */ V(6, 7, 2),
  728. /* 10 */ V(7, 6, 2),
  729. /* 11 */ V(7, 5, 2),
  730. /* 0000 0001 ... */
  731. /* 000 */ V(6, 6, 2), /* 78 */
  732. /* 001 */ V(6, 6, 2),
  733. /* 010 */ V(4, 7, 2),
  734. /* 011 */ V(4, 7, 2),
  735. /* 100 */ V(7, 4, 2),
  736. /* 101 */ V(7, 4, 2),
  737. /* 110 */ V(5, 7, 3),
  738. /* 111 */ V(5, 5, 3),
  739. /* 0000 0010 ... */
  740. /* 00 */ V(5, 6, 2), /* 86 */
  741. /* 01 */ V(6, 5, 2),
  742. /* 10 */ V(3, 7, 1),
  743. /* 11 */ V(3, 7, 1),
  744. /* 0000 0011 ... */
  745. /* 0 */ V(7, 3, 1), /* 90 */
  746. /* 1 */ V(4, 6, 1),
  747. /* 0000 0100 ... */
  748. /* 00 */ V(4, 5, 2), /* 92 */
  749. /* 01 */ V(5, 4, 2),
  750. /* 10 */ V(3, 5, 2),
  751. /* 11 */ V(5, 3, 2),
  752. /* 0000 0111 ... */
  753. /* 0 */ V(6, 4, 1), /* 96 */
  754. /* 1 */ V(0, 7, 1),
  755. /* 0000 1111 ... */
  756. /* 0 */ V(4, 4, 1), /* 98 */
  757. /* 1 */ V(2, 5, 1),
  758. /* 0001 0000 ... */
  759. /* 0 */ V(5, 2, 1), /* 100 */
  760. /* 1 */ V(0, 5, 1),
  761. /* 0001 1101 ... */
  762. /* 0 */ V(4, 3, 1), /* 102 */
  763. /* 1 */ V(3, 3, 1)
  764. };
  765. static
  766. union huffpair const hufftab12[] = {
  767. /* 0000 */ PTR(16, 4),
  768. /* 0001 */ PTR(32, 4),
  769. /* 0010 */ PTR(48, 4),
  770. /* 0011 */ PTR(64, 2),
  771. /* 0100 */ PTR(68, 3),
  772. /* 0101 */ PTR(76, 1),
  773. /* 0110 */ V(1, 2, 4),
  774. /* 0111 */ V(2, 1, 4),
  775. /* 1000 */ PTR(78, 1),
  776. /* 1001 */ V(0, 0, 4),
  777. /* 1010 */ V(1, 1, 3),
  778. /* 1011 */ V(1, 1, 3),
  779. /* 1100 */ V(0, 1, 3),
  780. /* 1101 */ V(0, 1, 3),
  781. /* 1110 */ V(1, 0, 3),
  782. /* 1111 */ V(1, 0, 3),
  783. /* 0000 ... */
  784. /* 0000 */ PTR(80, 2), /* 16 */
  785. /* 0001 */ PTR(84, 1),
  786. /* 0010 */ PTR(86, 1),
  787. /* 0011 */ PTR(88, 1),
  788. /* 0100 */ V(5, 6, 4),
  789. /* 0101 */ V(3, 7, 4),
  790. /* 0110 */ PTR(90, 1),
  791. /* 0111 */ V(2, 7, 4),
  792. /* 1000 */ V(7, 2, 4),
  793. /* 1001 */ V(4, 6, 4),
  794. /* 1010 */ V(6, 4, 4),
  795. /* 1011 */ V(1, 7, 4),
  796. /* 1100 */ V(7, 1, 4),
  797. /* 1101 */ PTR(92, 1),
  798. /* 1110 */ V(3, 6, 4),
  799. /* 1111 */ V(6, 3, 4),
  800. /* 0001 ... */
  801. /* 0000 */ V(4, 5, 4), /* 32 */
  802. /* 0001 */ V(5, 4, 4),
  803. /* 0010 */ V(4, 4, 4),
  804. /* 0011 */ PTR(94, 1),
  805. /* 0100 */ V(2, 6, 3),
  806. /* 0101 */ V(2, 6, 3),
  807. /* 0110 */ V(6, 2, 3),
  808. /* 0111 */ V(6, 2, 3),
  809. /* 1000 */ V(6, 1, 3),
  810. /* 1001 */ V(6, 1, 3),
  811. /* 1010 */ V(1, 6, 4),
  812. /* 1011 */ V(6, 0, 4),
  813. /* 1100 */ V(3, 5, 4),
  814. /* 1101 */ V(5, 3, 4),
  815. /* 1110 */ V(2, 5, 4),
  816. /* 1111 */ V(5, 2, 4),
  817. /* 0010 ... */
  818. /* 0000 */ V(1, 5, 3), /* 48 */
  819. /* 0001 */ V(1, 5, 3),
  820. /* 0010 */ V(5, 1, 3),
  821. /* 0011 */ V(5, 1, 3),
  822. /* 0100 */ V(3, 4, 3),
  823. /* 0101 */ V(3, 4, 3),
  824. /* 0110 */ V(4, 3, 3),
  825. /* 0111 */ V(4, 3, 3),
  826. /* 1000 */ V(5, 0, 4),
  827. /* 1001 */ V(0, 4, 4),
  828. /* 1010 */ V(2, 4, 3),
  829. /* 1011 */ V(2, 4, 3),
  830. /* 1100 */ V(4, 2, 3),
  831. /* 1101 */ V(4, 2, 3),
  832. /* 1110 */ V(1, 4, 3),
  833. /* 1111 */ V(1, 4, 3),
  834. /* 0011 ... */
  835. /* 00 */ V(3, 3, 2), /* 64 */
  836. /* 01 */ V(4, 1, 2),
  837. /* 10 */ V(2, 3, 2),
  838. /* 11 */ V(3, 2, 2),
  839. /* 0100 ... */
  840. /* 000 */ V(4, 0, 3), /* 68 */
  841. /* 001 */ V(0, 3, 3),
  842. /* 010 */ V(3, 0, 2),
  843. /* 011 */ V(3, 0, 2),
  844. /* 100 */ V(1, 3, 1),
  845. /* 101 */ V(1, 3, 1),
  846. /* 110 */ V(1, 3, 1),
  847. /* 111 */ V(1, 3, 1),
  848. /* 0101 ... */
  849. /* 0 */ V(3, 1, 1), /* 76 */
  850. /* 1 */ V(2, 2, 1),
  851. /* 1000 ... */
  852. /* 0 */ V(0, 2, 1), /* 78 */
  853. /* 1 */ V(2, 0, 1),
  854. /* 0000 0000 ... */
  855. /* 00 */ V(7, 7, 2), /* 80 */
  856. /* 01 */ V(6, 7, 2),
  857. /* 10 */ V(7, 6, 1),
  858. /* 11 */ V(7, 6, 1),
  859. /* 0000 0001 ... */
  860. /* 0 */ V(5, 7, 1), /* 84 */
  861. /* 1 */ V(7, 5, 1),
  862. /* 0000 0010 ... */
  863. /* 0 */ V(6, 6, 1), /* 86 */
  864. /* 1 */ V(4, 7, 1),
  865. /* 0000 0011 ... */
  866. /* 0 */ V(7, 4, 1), /* 88 */
  867. /* 1 */ V(6, 5, 1),
  868. /* 0000 0110 ... */
  869. /* 0 */ V(7, 3, 1), /* 90 */
  870. /* 1 */ V(5, 5, 1),
  871. /* 0000 1101 ... */
  872. /* 0 */ V(0, 7, 1), /* 92 */
  873. /* 1 */ V(7, 0, 1),
  874. /* 0001 0011 ... */
  875. /* 0 */ V(0, 6, 1), /* 94 */
  876. /* 1 */ V(0, 5, 1)
  877. };
  878. static
  879. union huffpair const hufftab13[] = {
  880. /* 0000 */ PTR(16, 4),
  881. /* 0001 */ PTR(32, 4),
  882. /* 0010 */ PTR(48, 4),
  883. /* 0011 */ PTR(64, 2),
  884. /* 0100 */ V(1, 1, 4),
  885. /* 0101 */ V(0, 1, 4),
  886. /* 0110 */ V(1, 0, 3),
  887. /* 0111 */ V(1, 0, 3),
  888. /* 1000 */ V(0, 0, 1),
  889. /* 1001 */ V(0, 0, 1),
  890. /* 1010 */ V(0, 0, 1),
  891. /* 1011 */ V(0, 0, 1),
  892. /* 1100 */ V(0, 0, 1),
  893. /* 1101 */ V(0, 0, 1),
  894. /* 1110 */ V(0, 0, 1),
  895. /* 1111 */ V(0, 0, 1),
  896. /* 0000 ... */
  897. /* 0000 */ PTR(68, 4), /* 16 */
  898. /* 0001 */ PTR(84, 4),
  899. /* 0010 */ PTR(100, 4),
  900. /* 0011 */ PTR(116, 4),
  901. /* 0100 */ PTR(132, 4),
  902. /* 0101 */ PTR(148, 4),
  903. /* 0110 */ PTR(164, 3),
  904. /* 0111 */ PTR(172, 3),
  905. /* 1000 */ PTR(180, 3),
  906. /* 1001 */ PTR(188, 3),
  907. /* 1010 */ PTR(196, 3),
  908. /* 1011 */ PTR(204, 3),
  909. /* 1100 */ PTR(212, 1),
  910. /* 1101 */ PTR(214, 2),
  911. /* 1110 */ PTR(218, 3),
  912. /* 1111 */ PTR(226, 1),
  913. /* 0001 ... */
  914. /* 0000 */ PTR(228, 2), /* 32 */
  915. /* 0001 */ PTR(232, 2),
  916. /* 0010 */ PTR(236, 2),
  917. /* 0011 */ PTR(240, 2),
  918. /* 0100 */ V(8, 1, 4),
  919. /* 0101 */ PTR(244, 1),
  920. /* 0110 */ PTR(246, 1),
  921. /* 0111 */ PTR(248, 1),
  922. /* 1000 */ PTR(250, 2),
  923. /* 1001 */ PTR(254, 1),
  924. /* 1010 */ V(1, 5, 4),
  925. /* 1011 */ V(5, 1, 4),
  926. /* 1100 */ PTR(256, 1),
  927. /* 1101 */ PTR(258, 1),
  928. /* 1110 */ PTR(260, 1),
  929. /* 1111 */ V(1, 4, 4),
  930. /* 0010 ... */
  931. /* 0000 */ V(4, 1, 3), /* 48 */
  932. /* 0001 */ V(4, 1, 3),
  933. /* 0010 */ V(0, 4, 4),
  934. /* 0011 */ V(4, 0, 4),
  935. /* 0100 */ V(2, 3, 4),
  936. /* 0101 */ V(3, 2, 4),
  937. /* 0110 */ V(1, 3, 3),
  938. /* 0111 */ V(1, 3, 3),
  939. /* 1000 */ V(3, 1, 3),
  940. /* 1001 */ V(3, 1, 3),
  941. /* 1010 */ V(0, 3, 3),
  942. /* 1011 */ V(0, 3, 3),
  943. /* 1100 */ V(3, 0, 3),
  944. /* 1101 */ V(3, 0, 3),
  945. /* 1110 */ V(2, 2, 3),
  946. /* 1111 */ V(2, 2, 3),
  947. /* 0011 ... */
  948. /* 00 */ V(1, 2, 2), /* 64 */
  949. /* 01 */ V(2, 1, 2),
  950. /* 10 */ V(0, 2, 2),
  951. /* 11 */ V(2, 0, 2),
  952. /* 0000 0000 ... */
  953. /* 0000 */ PTR(262, 4), /* 68 */
  954. /* 0001 */ PTR(278, 4),
  955. /* 0010 */ PTR(294, 4),
  956. /* 0011 */ PTR(310, 3),
  957. /* 0100 */ PTR(318, 2),
  958. /* 0101 */ PTR(322, 2),
  959. /* 0110 */ PTR(326, 3),
  960. /* 0111 */ PTR(334, 2),
  961. /* 1000 */ PTR(338, 1),
  962. /* 1001 */ PTR(340, 2),
  963. /* 1010 */ PTR(344, 2),
  964. /* 1011 */ PTR(348, 2),
  965. /* 1100 */ PTR(352, 2),
  966. /* 1101 */ PTR(356, 2),
  967. /* 1110 */ V(1, 15, 4),
  968. /* 1111 */ V(15, 1, 4),
  969. /* 0000 0001 ... */
  970. /* 0000 */ V(15, 0, 4), /* 84 */
  971. /* 0001 */ PTR(360, 1),
  972. /* 0010 */ PTR(362, 1),
  973. /* 0011 */ PTR(364, 1),
  974. /* 0100 */ V(14, 2, 4),
  975. /* 0101 */ PTR(366, 1),
  976. /* 0110 */ V(1, 14, 4),
  977. /* 0111 */ V(14, 1, 4),
  978. /* 1000 */ PTR(368, 1),
  979. /* 1001 */ PTR(370, 1),
  980. /* 1010 */ PTR(372, 1),
  981. /* 1011 */ PTR(374, 1),
  982. /* 1100 */ PTR(376, 1),
  983. /* 1101 */ PTR(378, 1),
  984. /* 1110 */ V(12, 6, 4),
  985. /* 1111 */ V(3, 13, 4),
  986. /* 0000 0010 ... */
  987. /* 0000 */ PTR(380, 1), /* 100 */
  988. /* 0001 */ V(2, 13, 4),
  989. /* 0010 */ V(13, 2, 4),
  990. /* 0011 */ V(1, 13, 4),
  991. /* 0100 */ V(11, 7, 4),
  992. /* 0101 */ PTR(382, 1),
  993. /* 0110 */ PTR(384, 1),
  994. /* 0111 */ V(12, 3, 4),
  995. /* 1000 */ PTR(386, 1),
  996. /* 1001 */ V(4, 11, 4),
  997. /* 1010 */ V(13, 1, 3),
  998. /* 1011 */ V(13, 1, 3),
  999. /* 1100 */ V(0, 13, 4),
  1000. /* 1101 */ V(13, 0, 4),
  1001. /* 1110 */ V(8, 10, 4),
  1002. /* 1111 */ V(10, 8, 4),
  1003. /* 0000 0011 ... */
  1004. /* 0000 */ V(4, 12, 4), /* 116 */
  1005. /* 0001 */ V(12, 4, 4),
  1006. /* 0010 */ V(6, 11, 4),
  1007. /* 0011 */ V(11, 6, 4),
  1008. /* 0100 */ V(3, 12, 3),
  1009. /* 0101 */ V(3, 12, 3),
  1010. /* 0110 */ V(2, 12, 3),
  1011. /* 0111 */ V(2, 12, 3),
  1012. /* 1000 */ V(12, 2, 3),
  1013. /* 1001 */ V(12, 2, 3),
  1014. /* 1010 */ V(5, 11, 3),
  1015. /* 1011 */ V(5, 11, 3),
  1016. /* 1100 */ V(11, 5, 4),
  1017. /* 1101 */ V(8, 9, 4),
  1018. /* 1110 */ V(1, 12, 3),
  1019. /* 1111 */ V(1, 12, 3),
  1020. /* 0000 0100 ... */
  1021. /* 0000 */ V(12, 1, 3), /* 132 */
  1022. /* 0001 */ V(12, 1, 3),
  1023. /* 0010 */ V(9, 8, 4),
  1024. /* 0011 */ V(0, 12, 4),
  1025. /* 0100 */ V(12, 0, 3),
  1026. /* 0101 */ V(12, 0, 3),
  1027. /* 0110 */ V(11, 4, 4),
  1028. /* 0111 */ V(6, 10, 4),
  1029. /* 1000 */ V(10, 6, 4),
  1030. /* 1001 */ V(7, 9, 4),
  1031. /* 1010 */ V(3, 11, 3),
  1032. /* 1011 */ V(3, 11, 3),
  1033. /* 1100 */ V(11, 3, 3),
  1034. /* 1101 */ V(11, 3, 3),
  1035. /* 1110 */ V(8, 8, 4),
  1036. /* 1111 */ V(5, 10, 4),
  1037. /* 0000 0101 ... */
  1038. /* 0000 */ V(2, 11, 3), /* 148 */
  1039. /* 0001 */ V(2, 11, 3),
  1040. /* 0010 */ V(10, 5, 4),
  1041. /* 0011 */ V(6, 9, 4),
  1042. /* 0100 */ V(10, 4, 3),
  1043. /* 0101 */ V(10, 4, 3),
  1044. /* 0110 */ V(7, 8, 4),
  1045. /* 0111 */ V(8, 7, 4),
  1046. /* 1000 */ V(9, 4, 3),
  1047. /* 1001 */ V(9, 4, 3),
  1048. /* 1010 */ V(7, 7, 4),
  1049. /* 1011 */ V(7, 6, 4),
  1050. /* 1100 */ V(11, 2, 2),
  1051. /* 1101 */ V(11, 2, 2),
  1052. /* 1110 */ V(11, 2, 2),
  1053. /* 1111 */ V(11, 2, 2),
  1054. /* 0000 0110 ... */
  1055. /* 000 */ V(1, 11, 2), /* 164 */
  1056. /* 001 */ V(1, 11, 2),
  1057. /* 010 */ V(11, 1, 2),
  1058. /* 011 */ V(11, 1, 2),
  1059. /* 100 */ V(0, 11, 3),
  1060. /* 101 */ V(11, 0, 3),
  1061. /* 110 */ V(9, 6, 3),
  1062. /* 111 */ V(4, 10, 3),
  1063. /* 0000 0111 ... */
  1064. /* 000 */ V(3, 10, 3), /* 172 */
  1065. /* 001 */ V(10, 3, 3),
  1066. /* 010 */ V(5, 9, 3),
  1067. /* 011 */ V(9, 5, 3),
  1068. /* 100 */ V(2, 10, 2),
  1069. /* 101 */ V(2, 10, 2),
  1070. /* 110 */ V(10, 2, 2),
  1071. /* 111 */ V(10, 2, 2),
  1072. /* 0000 1000 ... */
  1073. /* 000 */ V(1, 10, 2), /* 180 */
  1074. /* 001 */ V(1, 10, 2),
  1075. /* 010 */ V(10, 1, 2),
  1076. /* 011 */ V(10, 1, 2),
  1077. /* 100 */ V(0, 10, 3),
  1078. /* 101 */ V(6, 8, 3),
  1079. /* 110 */ V(10, 0, 2),
  1080. /* 111 */ V(10, 0, 2),
  1081. /* 0000 1001 ... */
  1082. /* 000 */ V(8, 6, 3), /* 188 */
  1083. /* 001 */ V(4, 9, 3),
  1084. /* 010 */ V(9, 3, 2),
  1085. /* 011 */ V(9, 3, 2),
  1086. /* 100 */ V(3, 9, 3),
  1087. /* 101 */ V(5, 8, 3),
  1088. /* 110 */ V(8, 5, 3),
  1089. /* 111 */ V(6, 7, 3),
  1090. /* 0000 1010 ... */
  1091. /* 000 */ V(2, 9, 2), /* 196 */
  1092. /* 001 */ V(2, 9, 2),
  1093. /* 010 */ V(9, 2, 2),
  1094. /* 011 */ V(9, 2, 2),
  1095. /* 100 */ V(5, 7, 3),
  1096. /* 101 */ V(7, 5, 3),
  1097. /* 110 */ V(3, 8, 2),
  1098. /* 111 */ V(3, 8, 2),
  1099. /* 0000 1011 ... */
  1100. /* 000 */ V(8, 3, 2), /* 204 */
  1101. /* 001 */ V(8, 3, 2),
  1102. /* 010 */ V(6, 6, 3),
  1103. /* 011 */ V(4, 7, 3),
  1104. /* 100 */ V(7, 4, 3),
  1105. /* 101 */ V(5, 6, 3),
  1106. /* 110 */ V(6, 5, 3),
  1107. /* 111 */ V(7, 3, 3),
  1108. /* 0000 1100 ... */
  1109. /* 0 */ V(1, 9, 1), /* 212 */
  1110. /* 1 */ V(9, 1, 1),
  1111. /* 0000 1101 ... */
  1112. /* 00 */ V(0, 9, 2), /* 214 */
  1113. /* 01 */ V(9, 0, 2),
  1114. /* 10 */ V(4, 8, 2),
  1115. /* 11 */ V(8, 4, 2),
  1116. /* 0000 1110 ... */
  1117. /* 000 */ V(7, 2, 2), /* 218 */
  1118. /* 001 */ V(7, 2, 2),
  1119. /* 010 */ V(4, 6, 3),
  1120. /* 011 */ V(6, 4, 3),
  1121. /* 100 */ V(2, 8, 1),
  1122. /* 101 */ V(2, 8, 1),
  1123. /* 110 */ V(2, 8, 1),
  1124. /* 111 */ V(2, 8, 1),
  1125. /* 0000 1111 ... */
  1126. /* 0 */ V(8, 2, 1), /* 226 */
  1127. /* 1 */ V(1, 8, 1),
  1128. /* 0001 0000 ... */
  1129. /* 00 */ V(3, 7, 2), /* 228 */
  1130. /* 01 */ V(2, 7, 2),
  1131. /* 10 */ V(1, 7, 1),
  1132. /* 11 */ V(1, 7, 1),
  1133. /* 0001 0001 ... */
  1134. /* 00 */ V(7, 1, 1), /* 232 */
  1135. /* 01 */ V(7, 1, 1),
  1136. /* 10 */ V(5, 5, 2),
  1137. /* 11 */ V(0, 7, 2),
  1138. /* 0001 0010 ... */
  1139. /* 00 */ V(7, 0, 2), /* 236 */
  1140. /* 01 */ V(3, 6, 2),
  1141. /* 10 */ V(6, 3, 2),
  1142. /* 11 */ V(4, 5, 2),
  1143. /* 0001 0011 ... */
  1144. /* 00 */ V(5, 4, 2), /* 240 */
  1145. /* 01 */ V(2, 6, 2),
  1146. /* 10 */ V(6, 2, 2),
  1147. /* 11 */ V(3, 5, 2),
  1148. /* 0001 0101 ... */
  1149. /* 0 */ V(0, 8, 1), /* 244 */
  1150. /* 1 */ V(8, 0, 1),
  1151. /* 0001 0110 ... */
  1152. /* 0 */ V(1, 6, 1), /* 246 */
  1153. /* 1 */ V(6, 1, 1),
  1154. /* 0001 0111 ... */
  1155. /* 0 */ V(0, 6, 1), /* 248 */
  1156. /* 1 */ V(6, 0, 1),
  1157. /* 0001 1000 ... */
  1158. /* 00 */ V(5, 3, 2), /* 250 */
  1159. /* 01 */ V(4, 4, 2),
  1160. /* 10 */ V(2, 5, 1),
  1161. /* 11 */ V(2, 5, 1),
  1162. /* 0001 1001 ... */
  1163. /* 0 */ V(5, 2, 1), /* 254 */
  1164. /* 1 */ V(0, 5, 1),
  1165. /* 0001 1100 ... */
  1166. /* 0 */ V(3, 4, 1), /* 256 */
  1167. /* 1 */ V(4, 3, 1),
  1168. /* 0001 1101 ... */
  1169. /* 0 */ V(5, 0, 1), /* 258 */
  1170. /* 1 */ V(2, 4, 1),
  1171. /* 0001 1110 ... */
  1172. /* 0 */ V(4, 2, 1), /* 260 */
  1173. /* 1 */ V(3, 3, 1),
  1174. /* 0000 0000 0000 ... */
  1175. /* 0000 */ PTR(388, 3), /* 262 */
  1176. /* 0001 */ V(15, 15, 4),
  1177. /* 0010 */ V(14, 15, 4),
  1178. /* 0011 */ V(13, 15, 4),
  1179. /* 0100 */ V(14, 14, 4),
  1180. /* 0101 */ V(12, 15, 4),
  1181. /* 0110 */ V(13, 14, 4),
  1182. /* 0111 */ V(11, 15, 4),
  1183. /* 1000 */ V(15, 11, 4),
  1184. /* 1001 */ V(12, 14, 4),
  1185. /* 1010 */ V(13, 12, 4),
  1186. /* 1011 */ PTR(396, 1),
  1187. /* 1100 */ V(14, 12, 3),
  1188. /* 1101 */ V(14, 12, 3),
  1189. /* 1110 */ V(13, 13, 3),
  1190. /* 1111 */ V(13, 13, 3),
  1191. /* 0000 0000 0001 ... */
  1192. /* 0000 */ V(15, 10, 4), /* 278 */
  1193. /* 0001 */ V(12, 13, 4),
  1194. /* 0010 */ V(11, 14, 3),
  1195. /* 0011 */ V(11, 14, 3),
  1196. /* 0100 */ V(14, 11, 3),
  1197. /* 0101 */ V(14, 11, 3),
  1198. /* 0110 */ V(9, 15, 3),
  1199. /* 0111 */ V(9, 15, 3),
  1200. /* 1000 */ V(15, 9, 3),
  1201. /* 1001 */ V(15, 9, 3),
  1202. /* 1010 */ V(14, 10, 3),
  1203. /* 1011 */ V(14, 10, 3),
  1204. /* 1100 */ V(11, 13, 3),
  1205. /* 1101 */ V(11, 13, 3),
  1206. /* 1110 */ V(13, 11, 3),
  1207. /* 1111 */ V(13, 11, 3),
  1208. /* 0000 0000 0010 ... */
  1209. /* 0000 */ V(8, 15, 3), /* 294 */
  1210. /* 0001 */ V(8, 15, 3),
  1211. /* 0010 */ V(15, 8, 3),
  1212. /* 0011 */ V(15, 8, 3),
  1213. /* 0100 */ V(12, 12, 3),
  1214. /* 0101 */ V(12, 12, 3),
  1215. /* 0110 */ V(10, 14, 4),
  1216. /* 0111 */ V(9, 14, 4),
  1217. /* 1000 */ V(8, 14, 3),
  1218. /* 1001 */ V(8, 14, 3),
  1219. /* 1010 */ V(7, 15, 4),
  1220. /* 1011 */ V(7, 14, 4),
  1221. /* 1100 */ V(15, 7, 2),
  1222. /* 1101 */ V(15, 7, 2),
  1223. /* 1110 */ V(15, 7, 2),
  1224. /* 1111 */ V(15, 7, 2),
  1225. /* 0000 0000 0011 ... */
  1226. /* 000 */ V(13, 10, 2), /* 310 */
  1227. /* 001 */ V(13, 10, 2),
  1228. /* 010 */ V(10, 13, 3),
  1229. /* 011 */ V(11, 12, 3),
  1230. /* 100 */ V(12, 11, 3),
  1231. /* 101 */ V(15, 6, 3),
  1232. /* 110 */ V(6, 15, 2),
  1233. /* 111 */ V(6, 15, 2),
  1234. /* 0000 0000 0100 ... */
  1235. /* 00 */ V(14, 8, 2), /* 318 */
  1236. /* 01 */ V(5, 15, 2),
  1237. /* 10 */ V(9, 13, 2),
  1238. /* 11 */ V(13, 9, 2),
  1239. /* 0000 0000 0101 ... */
  1240. /* 00 */ V(15, 5, 2), /* 322 */
  1241. /* 01 */ V(14, 7, 2),
  1242. /* 10 */ V(10, 12, 2),
  1243. /* 11 */ V(11, 11, 2),
  1244. /* 0000 0000 0110 ... */
  1245. /* 000 */ V(4, 15, 2), /* 326 */
  1246. /* 001 */ V(4, 15, 2),
  1247. /* 010 */ V(15, 4, 2),
  1248. /* 011 */ V(15, 4, 2),
  1249. /* 100 */ V(12, 10, 3),
  1250. /* 101 */ V(14, 6, 3),
  1251. /* 110 */ V(15, 3, 2),
  1252. /* 111 */ V(15, 3, 2),
  1253. /* 0000 0000 0111 ... */
  1254. /* 00 */ V(3, 15, 1), /* 334 */
  1255. /* 01 */ V(3, 15, 1),
  1256. /* 10 */ V(8, 13, 2),
  1257. /* 11 */ V(13, 8, 2),
  1258. /* 0000 0000 1000 ... */
  1259. /* 0 */ V(2, 15, 1), /* 338 */
  1260. /* 1 */ V(15, 2, 1),
  1261. /* 0000 0000 1001 ... */
  1262. /* 00 */ V(6, 14, 2), /* 340 */
  1263. /* 01 */ V(9, 12, 2),
  1264. /* 10 */ V(0, 15, 1),
  1265. /* 11 */ V(0, 15, 1),
  1266. /* 0000 0000 1010 ... */
  1267. /* 00 */ V(12, 9, 2), /* 344 */
  1268. /* 01 */ V(5, 14, 2),
  1269. /* 10 */ V(10, 11, 1),
  1270. /* 11 */ V(10, 11, 1),
  1271. /* 0000 0000 1011 ... */
  1272. /* 00 */ V(7, 13, 2), /* 348 */
  1273. /* 01 */ V(13, 7, 2),
  1274. /* 10 */ V(4, 14, 1),
  1275. /* 11 */ V(4, 14, 1),
  1276. /* 0000 0000 1100 ... */
  1277. /* 00 */ V(12, 8, 2), /* 352 */
  1278. /* 01 */ V(13, 6, 2),
  1279. /* 10 */ V(3, 14, 1),
  1280. /* 11 */ V(3, 14, 1),
  1281. /* 0000 0000 1101 ... */
  1282. /* 00 */ V(11, 9, 1), /* 356 */
  1283. /* 01 */ V(11, 9, 1),
  1284. /* 10 */ V(9, 11, 2),
  1285. /* 11 */ V(10, 10, 2),
  1286. /* 0000 0001 0001 ... */
  1287. /* 0 */ V(11, 10, 1), /* 360 */
  1288. /* 1 */ V(14, 5, 1),
  1289. /* 0000 0001 0010 ... */
  1290. /* 0 */ V(14, 4, 1), /* 362 */
  1291. /* 1 */ V(8, 12, 1),
  1292. /* 0000 0001 0011 ... */
  1293. /* 0 */ V(6, 13, 1), /* 364 */
  1294. /* 1 */ V(14, 3, 1),
  1295. /* 0000 0001 0101 ... */
  1296. /* 0 */ V(2, 14, 1), /* 366 */
  1297. /* 1 */ V(0, 14, 1),
  1298. /* 0000 0001 1000 ... */
  1299. /* 0 */ V(14, 0, 1), /* 368 */
  1300. /* 1 */ V(5, 13, 1),
  1301. /* 0000 0001 1001 ... */
  1302. /* 0 */ V(13, 5, 1), /* 370 */
  1303. /* 1 */ V(7, 12, 1),
  1304. /* 0000 0001 1010 ... */
  1305. /* 0 */ V(12, 7, 1), /* 372 */
  1306. /* 1 */ V(4, 13, 1),
  1307. /* 0000 0001 1011 ... */
  1308. /* 0 */ V(8, 11, 1), /* 374 */
  1309. /* 1 */ V(11, 8, 1),
  1310. /* 0000 0001 1100 ... */
  1311. /* 0 */ V(13, 4, 1), /* 376 */
  1312. /* 1 */ V(9, 10, 1),
  1313. /* 0000 0001 1101 ... */
  1314. /* 0 */ V(10, 9, 1), /* 378 */
  1315. /* 1 */ V(6, 12, 1),
  1316. /* 0000 0010 0000 ... */
  1317. /* 0 */ V(13, 3, 1), /* 380 */
  1318. /* 1 */ V(7, 11, 1),
  1319. /* 0000 0010 0101 ... */
  1320. /* 0 */ V(5, 12, 1), /* 382 */
  1321. /* 1 */ V(12, 5, 1),
  1322. /* 0000 0010 0110 ... */
  1323. /* 0 */ V(9, 9, 1), /* 384 */
  1324. /* 1 */ V(7, 10, 1),
  1325. /* 0000 0010 1000 ... */
  1326. /* 0 */ V(10, 7, 1), /* 386 */
  1327. /* 1 */ V(9, 7, 1),
  1328. /* 0000 0000 0000 0000 ... */
  1329. /* 000 */ V(15, 14, 3), /* 388 */
  1330. /* 001 */ V(15, 12, 3),
  1331. /* 010 */ V(15, 13, 2),
  1332. /* 011 */ V(15, 13, 2),
  1333. /* 100 */ V(14, 13, 1),
  1334. /* 101 */ V(14, 13, 1),
  1335. /* 110 */ V(14, 13, 1),
  1336. /* 111 */ V(14, 13, 1),
  1337. /* 0000 0000 0000 1011 ... */
  1338. /* 0 */ V(10, 15, 1), /* 396 */
  1339. /* 1 */ V(14, 9, 1)
  1340. };
  1341. static
  1342. union huffpair const hufftab15[] = {
  1343. /* 0000 */ PTR(16, 4),
  1344. /* 0001 */ PTR(32, 4),
  1345. /* 0010 */ PTR(48, 4),
  1346. /* 0011 */ PTR(64, 4),
  1347. /* 0100 */ PTR(80, 4),
  1348. /* 0101 */ PTR(96, 3),
  1349. /* 0110 */ PTR(104, 3),
  1350. /* 0111 */ PTR(112, 2),
  1351. /* 1000 */ PTR(116, 1),
  1352. /* 1001 */ PTR(118, 1),
  1353. /* 1010 */ V(1, 1, 3),
  1354. /* 1011 */ V(1, 1, 3),
  1355. /* 1100 */ V(0, 1, 4),
  1356. /* 1101 */ V(1, 0, 4),
  1357. /* 1110 */ V(0, 0, 3),
  1358. /* 1111 */ V(0, 0, 3),
  1359. /* 0000 ... */
  1360. /* 0000 */ PTR(120, 4), /* 16 */
  1361. /* 0001 */ PTR(136, 4),
  1362. /* 0010 */ PTR(152, 4),
  1363. /* 0011 */ PTR(168, 4),
  1364. /* 0100 */ PTR(184, 4),
  1365. /* 0101 */ PTR(200, 3),
  1366. /* 0110 */ PTR(208, 3),
  1367. /* 0111 */ PTR(216, 4),
  1368. /* 1000 */ PTR(232, 3),
  1369. /* 1001 */ PTR(240, 3),
  1370. /* 1010 */ PTR(248, 3),
  1371. /* 1011 */ PTR(256, 3),
  1372. /* 1100 */ PTR(264, 2),
  1373. /* 1101 */ PTR(268, 3),
  1374. /* 1110 */ PTR(276, 3),
  1375. /* 1111 */ PTR(284, 2),
  1376. /* 0001 ... */
  1377. /* 0000 */ PTR(288, 2), /* 32 */
  1378. /* 0001 */ PTR(292, 2),
  1379. /* 0010 */ PTR(296, 2),
  1380. /* 0011 */ PTR(300, 2),
  1381. /* 0100 */ PTR(304, 2),
  1382. /* 0101 */ PTR(308, 2),
  1383. /* 0110 */ PTR(312, 2),
  1384. /* 0111 */ PTR(316, 2),
  1385. /* 1000 */ PTR(320, 1),
  1386. /* 1001 */ PTR(322, 1),
  1387. /* 1010 */ PTR(324, 1),
  1388. /* 1011 */ PTR(326, 2),
  1389. /* 1100 */ PTR(330, 1),
  1390. /* 1101 */ PTR(332, 1),
  1391. /* 1110 */ PTR(334, 2),
  1392. /* 1111 */ PTR(338, 1),
  1393. /* 0010 ... */
  1394. /* 0000 */ PTR(340, 1), /* 48 */
  1395. /* 0001 */ PTR(342, 1),
  1396. /* 0010 */ V(9, 1, 4),
  1397. /* 0011 */ PTR(344, 1),
  1398. /* 0100 */ PTR(346, 1),
  1399. /* 0101 */ PTR(348, 1),
  1400. /* 0110 */ PTR(350, 1),
  1401. /* 0111 */ PTR(352, 1),
  1402. /* 1000 */ V(2, 8, 4),
  1403. /* 1001 */ V(8, 2, 4),
  1404. /* 1010 */ V(1, 8, 4),
  1405. /* 1011 */ V(8, 1, 4),
  1406. /* 1100 */ PTR(354, 1),
  1407. /* 1101 */ PTR(356, 1),
  1408. /* 1110 */ PTR(358, 1),
  1409. /* 1111 */ PTR(360, 1),
  1410. /* 0011 ... */
  1411. /* 0000 */ V(2, 7, 4), /* 64 */
  1412. /* 0001 */ V(7, 2, 4),
  1413. /* 0010 */ V(6, 4, 4),
  1414. /* 0011 */ V(1, 7, 4),
  1415. /* 0100 */ V(5, 5, 4),
  1416. /* 0101 */ V(7, 1, 4),
  1417. /* 0110 */ PTR(362, 1),
  1418. /* 0111 */ V(3, 6, 4),
  1419. /* 1000 */ V(6, 3, 4),
  1420. /* 1001 */ V(4, 5, 4),
  1421. /* 1010 */ V(5, 4, 4),
  1422. /* 1011 */ V(2, 6, 4),
  1423. /* 1100 */ V(6, 2, 4),
  1424. /* 1101 */ V(1, 6, 4),
  1425. /* 1110 */ PTR(364, 1),
  1426. /* 1111 */ V(3, 5, 4),
  1427. /* 0100 ... */
  1428. /* 0000 */ V(6, 1, 3), /* 80 */
  1429. /* 0001 */ V(6, 1, 3),
  1430. /* 0010 */ V(5, 3, 4),
  1431. /* 0011 */ V(4, 4, 4),
  1432. /* 0100 */ V(2, 5, 3),
  1433. /* 0101 */ V(2, 5, 3),
  1434. /* 0110 */ V(5, 2, 3),
  1435. /* 0111 */ V(5, 2, 3),
  1436. /* 1000 */ V(1, 5, 3),
  1437. /* 1001 */ V(1, 5, 3),
  1438. /* 1010 */ V(5, 1, 3),
  1439. /* 1011 */ V(5, 1, 3),
  1440. /* 1100 */ V(0, 5, 4),
  1441. /* 1101 */ V(5, 0, 4),
  1442. /* 1110 */ V(3, 4, 3),
  1443. /* 1111 */ V(3, 4, 3),
  1444. /* 0101 ... */
  1445. /* 000 */ V(4, 3, 3), /* 96 */
  1446. /* 001 */ V(2, 4, 3),
  1447. /* 010 */ V(4, 2, 3),
  1448. /* 011 */ V(3, 3, 3),
  1449. /* 100 */ V(4, 1, 2),
  1450. /* 101 */ V(4, 1, 2),
  1451. /* 110 */ V(1, 4, 3),
  1452. /* 111 */ V(0, 4, 3),
  1453. /* 0110 ... */
  1454. /* 000 */ V(2, 3, 2), /* 104 */
  1455. /* 001 */ V(2, 3, 2),
  1456. /* 010 */ V(3, 2, 2),
  1457. /* 011 */ V(3, 2, 2),
  1458. /* 100 */ V(4, 0, 3),
  1459. /* 101 */ V(0, 3, 3),
  1460. /* 110 */ V(1, 3, 2),
  1461. /* 111 */ V(1, 3, 2),
  1462. /* 0111 ... */
  1463. /* 00 */ V(3, 1, 2), /* 112 */
  1464. /* 01 */ V(3, 0, 2),
  1465. /* 10 */ V(2, 2, 1),
  1466. /* 11 */ V(2, 2, 1),
  1467. /* 1000 ... */
  1468. /* 0 */ V(1, 2, 1), /* 116 */
  1469. /* 1 */ V(2, 1, 1),
  1470. /* 1001 ... */
  1471. /* 0 */ V(0, 2, 1), /* 118 */
  1472. /* 1 */ V(2, 0, 1),
  1473. /* 0000 0000 ... */
  1474. /* 0000 */ PTR(366, 1), /* 120 */
  1475. /* 0001 */ PTR(368, 1),
  1476. /* 0010 */ V(14, 14, 4),
  1477. /* 0011 */ PTR(370, 1),
  1478. /* 0100 */ PTR(372, 1),
  1479. /* 0101 */ PTR(374, 1),
  1480. /* 0110 */ V(15, 11, 4),
  1481. /* 0111 */ PTR(376, 1),
  1482. /* 1000 */ V(13, 13, 4),
  1483. /* 1001 */ V(10, 15, 4),
  1484. /* 1010 */ V(15, 10, 4),
  1485. /* 1011 */ V(11, 14, 4),
  1486. /* 1100 */ V(14, 11, 4),
  1487. /* 1101 */ V(12, 13, 4),
  1488. /* 1110 */ V(13, 12, 4),
  1489. /* 1111 */ V(9, 15, 4),
  1490. /* 0000 0001 ... */
  1491. /* 0000 */ V(15, 9, 4), /* 136 */
  1492. /* 0001 */ V(14, 10, 4),
  1493. /* 0010 */ V(11, 13, 4),
  1494. /* 0011 */ V(13, 11, 4),
  1495. /* 0100 */ V(8, 15, 4),
  1496. /* 0101 */ V(15, 8, 4),
  1497. /* 0110 */ V(12, 12, 4),
  1498. /* 0111 */ V(9, 14, 4),
  1499. /* 1000 */ V(14, 9, 4),
  1500. /* 1001 */ V(7, 15, 4),
  1501. /* 1010 */ V(15, 7, 4),
  1502. /* 1011 */ V(10, 13, 4),
  1503. /* 1100 */ V(13, 10, 4),
  1504. /* 1101 */ V(11, 12, 4),
  1505. /* 1110 */ V(6, 15, 4),
  1506. /* 1111 */ PTR(378, 1),
  1507. /* 0000 0010 ... */
  1508. /* 0000 */ V(12, 11, 3), /* 152 */
  1509. /* 0001 */ V(12, 11, 3),
  1510. /* 0010 */ V(15, 6, 3),
  1511. /* 0011 */ V(15, 6, 3),
  1512. /* 0100 */ V(8, 14, 4),
  1513. /* 0101 */ V(14, 8, 4),
  1514. /* 0110 */ V(5, 15, 4),
  1515. /* 0111 */ V(9, 13, 4),
  1516. /* 1000 */ V(15, 5, 3),
  1517. /* 1001 */ V(15, 5, 3),
  1518. /* 1010 */ V(7, 14, 3),
  1519. /* 1011 */ V(7, 14, 3),
  1520. /* 1100 */ V(14, 7, 3),
  1521. /* 1101 */ V(14, 7, 3),
  1522. /* 1110 */ V(10, 12, 3),
  1523. /* 1111 */ V(10, 12, 3),
  1524. /* 0000 0011 ... */
  1525. /* 0000 */ V(12, 10, 3), /* 168 */
  1526. /* 0001 */ V(12, 10, 3),
  1527. /* 0010 */ V(11, 11, 3),
  1528. /* 0011 */ V(11, 11, 3),
  1529. /* 0100 */ V(13, 9, 4),
  1530. /* 0101 */ V(8, 13, 4),
  1531. /* 0110 */ V(4, 15, 3),
  1532. /* 0111 */ V(4, 15, 3),
  1533. /* 1000 */ V(15, 4, 3),
  1534. /* 1001 */ V(15, 4, 3),
  1535. /* 1010 */ V(3, 15, 3),
  1536. /* 1011 */ V(3, 15, 3),
  1537. /* 1100 */ V(15, 3, 3),
  1538. /* 1101 */ V(15, 3, 3),
  1539. /* 1110 */ V(13, 8, 3),
  1540. /* 1111 */ V(13, 8, 3),
  1541. /* 0000 0100 ... */
  1542. /* 0000 */ V(14, 6, 3), /* 184 */
  1543. /* 0001 */ V(14, 6, 3),
  1544. /* 0010 */ V(2, 15, 3),
  1545. /* 0011 */ V(2, 15, 3),
  1546. /* 0100 */ V(15, 2, 3),
  1547. /* 0101 */ V(15, 2, 3),
  1548. /* 0110 */ V(6, 14, 4),
  1549. /* 0111 */ V(15, 0, 4),
  1550. /* 1000 */ V(1, 15, 3),
  1551. /* 1001 */ V(1, 15, 3),
  1552. /* 1010 */ V(15, 1, 3),
  1553. /* 1011 */ V(15, 1, 3),
  1554. /* 1100 */ V(9, 12, 3),
  1555. /* 1101 */ V(9, 12, 3),
  1556. /* 1110 */ V(12, 9, 3),
  1557. /* 1111 */ V(12, 9, 3),
  1558. /* 0000 0101 ... */
  1559. /* 000 */ V(5, 14, 3), /* 200 */
  1560. /* 001 */ V(10, 11, 3),
  1561. /* 010 */ V(11, 10, 3),
  1562. /* 011 */ V(14, 5, 3),
  1563. /* 100 */ V(7, 13, 3),
  1564. /* 101 */ V(13, 7, 3),
  1565. /* 110 */ V(4, 14, 3),
  1566. /* 111 */ V(14, 4, 3),
  1567. /* 0000 0110 ... */
  1568. /* 000 */ V(8, 12, 3), /* 208 */
  1569. /* 001 */ V(12, 8, 3),
  1570. /* 010 */ V(3, 14, 3),
  1571. /* 011 */ V(6, 13, 3),
  1572. /* 100 */ V(13, 6, 3),
  1573. /* 101 */ V(14, 3, 3),
  1574. /* 110 */ V(9, 11, 3),
  1575. /* 111 */ V(11, 9, 3),
  1576. /* 0000 0111 ... */
  1577. /* 0000 */ V(2, 14, 3), /* 216 */
  1578. /* 0001 */ V(2, 14, 3),
  1579. /* 0010 */ V(10, 10, 3),
  1580. /* 0011 */ V(10, 10, 3),
  1581. /* 0100 */ V(14, 2, 3),
  1582. /* 0101 */ V(14, 2, 3),
  1583. /* 0110 */ V(1, 14, 3),
  1584. /* 0111 */ V(1, 14, 3),
  1585. /* 1000 */ V(14, 1, 3),
  1586. /* 1001 */ V(14, 1, 3),
  1587. /* 1010 */ V(0, 14, 4),
  1588. /* 1011 */ V(14, 0, 4),
  1589. /* 1100 */ V(5, 13, 3),
  1590. /* 1101 */ V(5, 13, 3),
  1591. /* 1110 */ V(13, 5, 3),
  1592. /* 1111 */ V(13, 5, 3),
  1593. /* 0000 1000 ... */
  1594. /* 000 */ V(7, 12, 3), /* 232 */
  1595. /* 001 */ V(12, 7, 3),
  1596. /* 010 */ V(4, 13, 3),
  1597. /* 011 */ V(8, 11, 3),
  1598. /* 100 */ V(13, 4, 2),
  1599. /* 101 */ V(13, 4, 2),
  1600. /* 110 */ V(11, 8, 3),
  1601. /* 111 */ V(9, 10, 3),
  1602. /* 0000 1001 ... */
  1603. /* 000 */ V(10, 9, 3), /* 240 */
  1604. /* 001 */ V(6, 12, 3),
  1605. /* 010 */ V(12, 6, 3),
  1606. /* 011 */ V(3, 13, 3),
  1607. /* 100 */ V(13, 3, 2),
  1608. /* 101 */ V(13, 3, 2),
  1609. /* 110 */ V(13, 2, 2),
  1610. /* 111 */ V(13, 2, 2),
  1611. /* 0000 1010 ... */
  1612. /* 000 */ V(2, 13, 3), /* 248 */
  1613. /* 001 */ V(0, 13, 3),
  1614. /* 010 */ V(1, 13, 2),
  1615. /* 011 */ V(1, 13, 2),
  1616. /* 100 */ V(7, 11, 2),
  1617. /* 101 */ V(7, 11, 2),
  1618. /* 110 */ V(11, 7, 2),
  1619. /* 111 */ V(11, 7, 2),
  1620. /* 0000 1011 ... */
  1621. /* 000 */ V(13, 1, 2), /* 256 */
  1622. /* 001 */ V(13, 1, 2),
  1623. /* 010 */ V(5, 12, 3),
  1624. /* 011 */ V(13, 0, 3),
  1625. /* 100 */ V(12, 5, 2),
  1626. /* 101 */ V(12, 5, 2),
  1627. /* 110 */ V(8, 10, 2),
  1628. /* 111 */ V(8, 10, 2),
  1629. /* 0000 1100 ... */
  1630. /* 00 */ V(10, 8, 2), /* 264 */
  1631. /* 01 */ V(4, 12, 2),
  1632. /* 10 */ V(12, 4, 2),
  1633. /* 11 */ V(6, 11, 2),
  1634. /* 0000 1101 ... */
  1635. /* 000 */ V(11, 6, 2), /* 268 */
  1636. /* 001 */ V(11, 6, 2),
  1637. /* 010 */ V(9, 9, 3),
  1638. /* 011 */ V(0, 12, 3),
  1639. /* 100 */ V(3, 12, 2),
  1640. /* 101 */ V(3, 12, 2),
  1641. /* 110 */ V(12, 3, 2),
  1642. /* 111 */ V(12, 3, 2),
  1643. /* 0000 1110 ... */
  1644. /* 000 */ V(7, 10, 2), /* 276 */
  1645. /* 001 */ V(7, 10, 2),
  1646. /* 010 */ V(10, 7, 2),
  1647. /* 011 */ V(10, 7, 2),
  1648. /* 100 */ V(10, 6, 2),
  1649. /* 101 */ V(10, 6, 2),
  1650. /* 110 */ V(12, 0, 3),
  1651. /* 111 */ V(0, 11, 3),
  1652. /* 0000 1111 ... */
  1653. /* 00 */ V(12, 2, 1), /* 284 */
  1654. /* 01 */ V(12, 2, 1),
  1655. /* 10 */ V(2, 12, 2),
  1656. /* 11 */ V(5, 11, 2),
  1657. /* 0001 0000 ... */
  1658. /* 00 */ V(11, 5, 2), /* 288 */
  1659. /* 01 */ V(1, 12, 2),
  1660. /* 10 */ V(8, 9, 2),
  1661. /* 11 */ V(9, 8, 2),
  1662. /* 0001 0001 ... */
  1663. /* 00 */ V(12, 1, 2), /* 292 */
  1664. /* 01 */ V(4, 11, 2),
  1665. /* 10 */ V(11, 4, 2),
  1666. /* 11 */ V(6, 10, 2),
  1667. /* 0001 0010 ... */
  1668. /* 00 */ V(3, 11, 2), /* 296 */
  1669. /* 01 */ V(7, 9, 2),
  1670. /* 10 */ V(11, 3, 1),
  1671. /* 11 */ V(11, 3, 1),
  1672. /* 0001 0011 ... */
  1673. /* 00 */ V(9, 7, 2), /* 300 */
  1674. /* 01 */ V(8, 8, 2),
  1675. /* 10 */ V(2, 11, 2),
  1676. /* 11 */ V(5, 10, 2),
  1677. /* 0001 0100 ... */
  1678. /* 00 */ V(11, 2, 1), /* 304 */
  1679. /* 01 */ V(11, 2, 1),
  1680. /* 10 */ V(10, 5, 2),
  1681. /* 11 */ V(1, 11, 2),
  1682. /* 0001 0101 ... */
  1683. /* 00 */ V(11, 1, 1), /* 308 */
  1684. /* 01 */ V(11, 1, 1),
  1685. /* 10 */ V(11, 0, 2),
  1686. /* 11 */ V(6, 9, 2),
  1687. /* 0001 0110 ... */
  1688. /* 00 */ V(9, 6, 2), /* 312 */
  1689. /* 01 */ V(4, 10, 2),
  1690. /* 10 */ V(10, 4, 2),
  1691. /* 11 */ V(7, 8, 2),
  1692. /* 0001 0111 ... */
  1693. /* 00 */ V(8, 7, 2), /* 316 */
  1694. /* 01 */ V(3, 10, 2),
  1695. /* 10 */ V(10, 3, 1),
  1696. /* 11 */ V(10, 3, 1),
  1697. /* 0001 1000 ... */
  1698. /* 0 */ V(5, 9, 1), /* 320 */
  1699. /* 1 */ V(9, 5, 1),
  1700. /* 0001 1001 ... */
  1701. /* 0 */ V(2, 10, 1), /* 322 */
  1702. /* 1 */ V(10, 2, 1),
  1703. /* 0001 1010 ... */
  1704. /* 0 */ V(1, 10, 1), /* 324 */
  1705. /* 1 */ V(10, 1, 1),
  1706. /* 0001 1011 ... */
  1707. /* 00 */ V(0, 10, 2), /* 326 */
  1708. /* 01 */ V(10, 0, 2),
  1709. /* 10 */ V(6, 8, 1),
  1710. /* 11 */ V(6, 8, 1),
  1711. /* 0001 1100 ... */
  1712. /* 0 */ V(8, 6, 1), /* 330 */
  1713. /* 1 */ V(4, 9, 1),
  1714. /* 0001 1101 ... */
  1715. /* 0 */ V(9, 4, 1), /* 332 */
  1716. /* 1 */ V(3, 9, 1),
  1717. /* 0001 1110 ... */
  1718. /* 00 */ V(9, 3, 1), /* 334 */
  1719. /* 01 */ V(9, 3, 1),
  1720. /* 10 */ V(7, 7, 2),
  1721. /* 11 */ V(0, 9, 2),
  1722. /* 0001 1111 ... */
  1723. /* 0 */ V(5, 8, 1), /* 338 */
  1724. /* 1 */ V(8, 5, 1),
  1725. /* 0010 0000 ... */
  1726. /* 0 */ V(2, 9, 1), /* 340 */
  1727. /* 1 */ V(6, 7, 1),
  1728. /* 0010 0001 ... */
  1729. /* 0 */ V(7, 6, 1), /* 342 */
  1730. /* 1 */ V(9, 2, 1),
  1731. /* 0010 0011 ... */
  1732. /* 0 */ V(1, 9, 1), /* 344 */
  1733. /* 1 */ V(9, 0, 1),
  1734. /* 0010 0100 ... */
  1735. /* 0 */ V(4, 8, 1), /* 346 */
  1736. /* 1 */ V(8, 4, 1),
  1737. /* 0010 0101 ... */
  1738. /* 0 */ V(5, 7, 1), /* 348 */
  1739. /* 1 */ V(7, 5, 1),
  1740. /* 0010 0110 ... */
  1741. /* 0 */ V(3, 8, 1), /* 350 */
  1742. /* 1 */ V(8, 3, 1),
  1743. /* 0010 0111 ... */
  1744. /* 0 */ V(6, 6, 1), /* 352 */
  1745. /* 1 */ V(4, 7, 1),
  1746. /* 0010 1100 ... */
  1747. /* 0 */ V(7, 4, 1), /* 354 */
  1748. /* 1 */ V(0, 8, 1),
  1749. /* 0010 1101 ... */
  1750. /* 0 */ V(8, 0, 1), /* 356 */
  1751. /* 1 */ V(5, 6, 1),
  1752. /* 0010 1110 ... */
  1753. /* 0 */ V(6, 5, 1), /* 358 */
  1754. /* 1 */ V(3, 7, 1),
  1755. /* 0010 1111 ... */
  1756. /* 0 */ V(7, 3, 1), /* 360 */
  1757. /* 1 */ V(4, 6, 1),
  1758. /* 0011 0110 ... */
  1759. /* 0 */ V(0, 7, 1), /* 362 */
  1760. /* 1 */ V(7, 0, 1),
  1761. /* 0011 1110 ... */
  1762. /* 0 */ V(0, 6, 1), /* 364 */
  1763. /* 1 */ V(6, 0, 1),
  1764. /* 0000 0000 0000 ... */
  1765. /* 0 */ V(15, 15, 1), /* 366 */
  1766. /* 1 */ V(14, 15, 1),
  1767. /* 0000 0000 0001 ... */
  1768. /* 0 */ V(15, 14, 1), /* 368 */
  1769. /* 1 */ V(13, 15, 1),
  1770. /* 0000 0000 0011 ... */
  1771. /* 0 */ V(15, 13, 1), /* 370 */
  1772. /* 1 */ V(12, 15, 1),
  1773. /* 0000 0000 0100 ... */
  1774. /* 0 */ V(15, 12, 1), /* 372 */
  1775. /* 1 */ V(13, 14, 1),
  1776. /* 0000 0000 0101 ... */
  1777. /* 0 */ V(14, 13, 1), /* 374 */
  1778. /* 1 */ V(11, 15, 1),
  1779. /* 0000 0000 0111 ... */
  1780. /* 0 */ V(12, 14, 1), /* 376 */
  1781. /* 1 */ V(14, 12, 1),
  1782. /* 0000 0001 1111 ... */
  1783. /* 0 */ V(10, 14, 1), /* 378 */
  1784. /* 1 */ V(0, 15, 1)
  1785. };
  1786. static
  1787. union huffpair const hufftab16[] = {
  1788. /* 0000 */ PTR(16, 4),
  1789. /* 0001 */ PTR(32, 4),
  1790. /* 0010 */ PTR(48, 4),
  1791. /* 0011 */ PTR(64, 2),
  1792. /* 0100 */ V(1, 1, 4),
  1793. /* 0101 */ V(0, 1, 4),
  1794. /* 0110 */ V(1, 0, 3),
  1795. /* 0111 */ V(1, 0, 3),
  1796. /* 1000 */ V(0, 0, 1),
  1797. /* 1001 */ V(0, 0, 1),
  1798. /* 1010 */ V(0, 0, 1),
  1799. /* 1011 */ V(0, 0, 1),
  1800. /* 1100 */ V(0, 0, 1),
  1801. /* 1101 */ V(0, 0, 1),
  1802. /* 1110 */ V(0, 0, 1),
  1803. /* 1111 */ V(0, 0, 1),
  1804. /* 0000 ... */
  1805. /* 0000 */ PTR(68, 3), /* 16 */
  1806. /* 0001 */ PTR(76, 3),
  1807. /* 0010 */ PTR(84, 2),
  1808. /* 0011 */ V(15, 15, 4),
  1809. /* 0100 */ PTR(88, 2),
  1810. /* 0101 */ PTR(92, 1),
  1811. /* 0110 */ PTR(94, 4),
  1812. /* 0111 */ V(15, 2, 4),
  1813. /* 1000 */ PTR(110, 1),
  1814. /* 1001 */ V(1, 15, 4),
  1815. /* 1010 */ V(15, 1, 4),
  1816. /* 1011 */ PTR(112, 4),
  1817. /* 1100 */ PTR(128, 4),
  1818. /* 1101 */ PTR(144, 4),
  1819. /* 1110 */ PTR(160, 4),
  1820. /* 1111 */ PTR(176, 4),
  1821. /* 0001 ... */
  1822. /* 0000 */ PTR(192, 4), /* 32 */
  1823. /* 0001 */ PTR(208, 3),
  1824. /* 0010 */ PTR(216, 3),
  1825. /* 0011 */ PTR(224, 3),
  1826. /* 0100 */ PTR(232, 3),
  1827. /* 0101 */ PTR(240, 3),
  1828. /* 0110 */ PTR(248, 3),
  1829. /* 0111 */ PTR(256, 3),
  1830. /* 1000 */ PTR(264, 2),
  1831. /* 1001 */ PTR(268, 2),
  1832. /* 1010 */ PTR(272, 1),
  1833. /* 1011 */ PTR(274, 2),
  1834. /* 1100 */ PTR(278, 2),
  1835. /* 1101 */ PTR(282, 1),
  1836. /* 1110 */ V(5, 1, 4),
  1837. /* 1111 */ PTR(284, 1),
  1838. /* 0010 ... */
  1839. /* 0000 */ PTR(286, 1), /* 48 */
  1840. /* 0001 */ PTR(288, 1),
  1841. /* 0010 */ PTR(290, 1),
  1842. /* 0011 */ V(1, 4, 4),
  1843. /* 0100 */ V(4, 1, 4),
  1844. /* 0101 */ PTR(292, 1),
  1845. /* 0110 */ V(2, 3, 4),
  1846. /* 0111 */ V(3, 2, 4),
  1847. /* 1000 */ V(1, 3, 3),
  1848. /* 1001 */ V(1, 3, 3),
  1849. /* 1010 */ V(3, 1, 3),
  1850. /* 1011 */ V(3, 1, 3),
  1851. /* 1100 */ V(0, 3, 4),
  1852. /* 1101 */ V(3, 0, 4),
  1853. /* 1110 */ V(2, 2, 3),
  1854. /* 1111 */ V(2, 2, 3),
  1855. /* 0011 ... */
  1856. /* 00 */ V(1, 2, 2), /* 64 */
  1857. /* 01 */ V(2, 1, 2),
  1858. /* 10 */ V(0, 2, 2),
  1859. /* 11 */ V(2, 0, 2),
  1860. /* 0000 0000 ... */
  1861. /* 000 */ V(14, 15, 3), /* 68 */
  1862. /* 001 */ V(15, 14, 3),
  1863. /* 010 */ V(13, 15, 3),
  1864. /* 011 */ V(15, 13, 3),
  1865. /* 100 */ V(12, 15, 3),
  1866. /* 101 */ V(15, 12, 3),
  1867. /* 110 */ V(11, 15, 3),
  1868. /* 111 */ V(15, 11, 3),
  1869. /* 0000 0001 ... */
  1870. /* 000 */ V(10, 15, 2), /* 76 */
  1871. /* 001 */ V(10, 15, 2),
  1872. /* 010 */ V(15, 10, 3),
  1873. /* 011 */ V(9, 15, 3),
  1874. /* 100 */ V(15, 9, 3),
  1875. /* 101 */ V(15, 8, 3),
  1876. /* 110 */ V(8, 15, 2),
  1877. /* 111 */ V(8, 15, 2),
  1878. /* 0000 0010 ... */
  1879. /* 00 */ V(7, 15, 2), /* 84 */
  1880. /* 01 */ V(15, 7, 2),
  1881. /* 10 */ V(6, 15, 2),
  1882. /* 11 */ V(15, 6, 2),
  1883. /* 0000 0100 ... */
  1884. /* 00 */ V(5, 15, 2), /* 88 */
  1885. /* 01 */ V(15, 5, 2),
  1886. /* 10 */ V(4, 15, 1),
  1887. /* 11 */ V(4, 15, 1),
  1888. /* 0000 0101 ... */
  1889. /* 0 */ V(15, 4, 1), /* 92 */
  1890. /* 1 */ V(15, 3, 1),
  1891. /* 0000 0110 ... */
  1892. /* 0000 */ V(15, 0, 1), /* 94 */
  1893. /* 0001 */ V(15, 0, 1),
  1894. /* 0010 */ V(15, 0, 1),
  1895. /* 0011 */ V(15, 0, 1),
  1896. /* 0100 */ V(15, 0, 1),
  1897. /* 0101 */ V(15, 0, 1),
  1898. /* 0110 */ V(15, 0, 1),
  1899. /* 0111 */ V(15, 0, 1),
  1900. /* 1000 */ V(3, 15, 2),
  1901. /* 1001 */ V(3, 15, 2),
  1902. /* 1010 */ V(3, 15, 2),
  1903. /* 1011 */ V(3, 15, 2),
  1904. /* 1100 */ PTR(294, 4),
  1905. /* 1101 */ PTR(310, 3),
  1906. /* 1110 */ PTR(318, 3),
  1907. /* 1111 */ PTR(326, 3),
  1908. /* 0000 1000 ... */
  1909. /* 0 */ V(2, 15, 1), /* 110 */
  1910. /* 1 */ V(0, 15, 1),
  1911. /* 0000 1011 ... */
  1912. /* 0000 */ PTR(334, 2), /* 112 */
  1913. /* 0001 */ PTR(338, 2),
  1914. /* 0010 */ PTR(342, 2),
  1915. /* 0011 */ PTR(346, 1),
  1916. /* 0100 */ PTR(348, 2),
  1917. /* 0101 */ PTR(352, 2),
  1918. /* 0110 */ PTR(356, 1),
  1919. /* 0111 */ PTR(358, 2),
  1920. /* 1000 */ PTR(362, 2),
  1921. /* 1001 */ PTR(366, 2),
  1922. /* 1010 */ PTR(370, 2),
  1923. /* 1011 */ V(14, 3, 4),
  1924. /* 1100 */ PTR(374, 1),
  1925. /* 1101 */ PTR(376, 1),
  1926. /* 1110 */ PTR(378, 1),
  1927. /* 1111 */ PTR(380, 1),
  1928. /* 0000 1100 ... */
  1929. /* 0000 */ PTR(382, 1), /* 128 */
  1930. /* 0001 */ PTR(384, 1),
  1931. /* 0010 */ PTR(386, 1),
  1932. /* 0011 */ V(0, 13, 4),
  1933. /* 0100 */ PTR(388, 1),
  1934. /* 0101 */ PTR(390, 1),
  1935. /* 0110 */ PTR(392, 1),
  1936. /* 0111 */ V(3, 12, 4),
  1937. /* 1000 */ PTR(394, 1),
  1938. /* 1001 */ V(1, 12, 4),
  1939. /* 1010 */ V(12, 0, 4),
  1940. /* 1011 */ PTR(396, 1),
  1941. /* 1100 */ V(14, 2, 3),
  1942. /* 1101 */ V(14, 2, 3),
  1943. /* 1110 */ V(2, 14, 4),
  1944. /* 1111 */ V(1, 14, 4),
  1945. /* 0000 1101 ... */
  1946. /* 0000 */ V(13, 3, 4), /* 144 */
  1947. /* 0001 */ V(2, 13, 4),
  1948. /* 0010 */ V(13, 2, 4),
  1949. /* 0011 */ V(13, 1, 4),
  1950. /* 0100 */ V(3, 11, 4),
  1951. /* 0101 */ PTR(398, 1),
  1952. /* 0110 */ V(1, 13, 3),
  1953. /* 0111 */ V(1, 13, 3),
  1954. /* 1000 */ V(12, 4, 4),
  1955. /* 1001 */ V(6, 11, 4),
  1956. /* 1010 */ V(12, 3, 4),
  1957. /* 1011 */ V(10, 7, 4),
  1958. /* 1100 */ V(2, 12, 3),
  1959. /* 1101 */ V(2, 12, 3),
  1960. /* 1110 */ V(12, 2, 4),
  1961. /* 1111 */ V(11, 5, 4),
  1962. /* 0000 1110 ... */
  1963. /* 0000 */ V(12, 1, 4), /* 160 */
  1964. /* 0001 */ V(0, 12, 4),
  1965. /* 0010 */ V(4, 11, 4),
  1966. /* 0011 */ V(11, 4, 4),
  1967. /* 0100 */ V(6, 10, 4),
  1968. /* 0101 */ V(10, 6, 4),
  1969. /* 0110 */ V(11, 3, 3),
  1970. /* 0111 */ V(11, 3, 3),
  1971. /* 1000 */ V(5, 10, 4),
  1972. /* 1001 */ V(10, 5, 4),
  1973. /* 1010 */ V(2, 11, 3),
  1974. /* 1011 */ V(2, 11, 3),
  1975. /* 1100 */ V(11, 2, 3),
  1976. /* 1101 */ V(11, 2, 3),
  1977. /* 1110 */ V(1, 11, 3),
  1978. /* 1111 */ V(1, 11, 3),
  1979. /* 0000 1111 ... */
  1980. /* 0000 */ V(11, 1, 3), /* 176 */
  1981. /* 0001 */ V(11, 1, 3),
  1982. /* 0010 */ V(0, 11, 4),
  1983. /* 0011 */ V(11, 0, 4),
  1984. /* 0100 */ V(6, 9, 4),
  1985. /* 0101 */ V(9, 6, 4),
  1986. /* 0110 */ V(4, 10, 4),
  1987. /* 0111 */ V(10, 4, 4),
  1988. /* 1000 */ V(7, 8, 4),
  1989. /* 1001 */ V(8, 7, 4),
  1990. /* 1010 */ V(10, 3, 3),
  1991. /* 1011 */ V(10, 3, 3),
  1992. /* 1100 */ V(3, 10, 4),
  1993. /* 1101 */ V(5, 9, 4),
  1994. /* 1110 */ V(2, 10, 3),
  1995. /* 1111 */ V(2, 10, 3),
  1996. /* 0001 0000 ... */
  1997. /* 0000 */ V(9, 5, 4), /* 192 */
  1998. /* 0001 */ V(6, 8, 4),
  1999. /* 0010 */ V(10, 1, 3),
  2000. /* 0011 */ V(10, 1, 3),
  2001. /* 0100 */ V(8, 6, 4),
  2002. /* 0101 */ V(7, 7, 4),
  2003. /* 0110 */ V(9, 4, 3),
  2004. /* 0111 */ V(9, 4, 3),
  2005. /* 1000 */ V(4, 9, 4),
  2006. /* 1001 */ V(5, 7, 4),
  2007. /* 1010 */ V(6, 7, 3),
  2008. /* 1011 */ V(6, 7, 3),
  2009. /* 1100 */ V(10, 2, 2),
  2010. /* 1101 */ V(10, 2, 2),
  2011. /* 1110 */ V(10, 2, 2),
  2012. /* 1111 */ V(10, 2, 2),
  2013. /* 0001 0001 ... */
  2014. /* 000 */ V(1, 10, 2), /* 208 */
  2015. /* 001 */ V(1, 10, 2),
  2016. /* 010 */ V(0, 10, 3),
  2017. /* 011 */ V(10, 0, 3),
  2018. /* 100 */ V(3, 9, 3),
  2019. /* 101 */ V(9, 3, 3),
  2020. /* 110 */ V(5, 8, 3),
  2021. /* 111 */ V(8, 5, 3),
  2022. /* 0001 0010 ... */
  2023. /* 000 */ V(2, 9, 2), /* 216 */
  2024. /* 001 */ V(2, 9, 2),
  2025. /* 010 */ V(9, 2, 2),
  2026. /* 011 */ V(9, 2, 2),
  2027. /* 100 */ V(7, 6, 3),
  2028. /* 101 */ V(0, 9, 3),
  2029. /* 110 */ V(1, 9, 2),
  2030. /* 111 */ V(1, 9, 2),
  2031. /* 0001 0011 ... */
  2032. /* 000 */ V(9, 1, 2), /* 224 */
  2033. /* 001 */ V(9, 1, 2),
  2034. /* 010 */ V(9, 0, 3),
  2035. /* 011 */ V(4, 8, 3),
  2036. /* 100 */ V(8, 4, 3),
  2037. /* 101 */ V(7, 5, 3),
  2038. /* 110 */ V(3, 8, 3),
  2039. /* 111 */ V(8, 3, 3),
  2040. /* 0001 0100 ... */
  2041. /* 000 */ V(6, 6, 3), /* 232 */
  2042. /* 001 */ V(2, 8, 3),
  2043. /* 010 */ V(8, 2, 2),
  2044. /* 011 */ V(8, 2, 2),
  2045. /* 100 */ V(4, 7, 3),
  2046. /* 101 */ V(7, 4, 3),
  2047. /* 110 */ V(1, 8, 2),
  2048. /* 111 */ V(1, 8, 2),
  2049. /* 0001 0101 ... */
  2050. /* 000 */ V(8, 1, 2), /* 240 */
  2051. /* 001 */ V(8, 1, 2),
  2052. /* 010 */ V(8, 0, 2),
  2053. /* 011 */ V(8, 0, 2),
  2054. /* 100 */ V(0, 8, 3),
  2055. /* 101 */ V(5, 6, 3),
  2056. /* 110 */ V(3, 7, 2),
  2057. /* 111 */ V(3, 7, 2),
  2058. /* 0001 0110 ... */
  2059. /* 000 */ V(7, 3, 2), /* 248 */
  2060. /* 001 */ V(7, 3, 2),
  2061. /* 010 */ V(6, 5, 3),
  2062. /* 011 */ V(4, 6, 3),
  2063. /* 100 */ V(2, 7, 2),
  2064. /* 101 */ V(2, 7, 2),
  2065. /* 110 */ V(7, 2, 2),
  2066. /* 111 */ V(7, 2, 2),
  2067. /* 0001 0111 ... */
  2068. /* 000 */ V(6, 4, 3), /* 256 */
  2069. /* 001 */ V(5, 5, 3),
  2070. /* 010 */ V(0, 7, 2),
  2071. /* 011 */ V(0, 7, 2),
  2072. /* 100 */ V(1, 7, 1),
  2073. /* 101 */ V(1, 7, 1),
  2074. /* 110 */ V(1, 7, 1),
  2075. /* 111 */ V(1, 7, 1),
  2076. /* 0001 1000 ... */
  2077. /* 00 */ V(7, 1, 1), /* 264 */
  2078. /* 01 */ V(7, 1, 1),
  2079. /* 10 */ V(7, 0, 2),
  2080. /* 11 */ V(3, 6, 2),
  2081. /* 0001 1001 ... */
  2082. /* 00 */ V(6, 3, 2), /* 268 */
  2083. /* 01 */ V(4, 5, 2),
  2084. /* 10 */ V(5, 4, 2),
  2085. /* 11 */ V(2, 6, 2),
  2086. /* 0001 1010 ... */
  2087. /* 0 */ V(6, 2, 1), /* 272 */
  2088. /* 1 */ V(1, 6, 1),
  2089. /* 0001 1011 ... */
  2090. /* 00 */ V(6, 1, 1), /* 274 */
  2091. /* 01 */ V(6, 1, 1),
  2092. /* 10 */ V(0, 6, 2),
  2093. /* 11 */ V(6, 0, 2),
  2094. /* 0001 1100 ... */
  2095. /* 00 */ V(5, 3, 1), /* 278 */
  2096. /* 01 */ V(5, 3, 1),
  2097. /* 10 */ V(3, 5, 2),
  2098. /* 11 */ V(4, 4, 2),
  2099. /* 0001 1101 ... */
  2100. /* 0 */ V(2, 5, 1), /* 282 */
  2101. /* 1 */ V(5, 2, 1),
  2102. /* 0001 1111 ... */
  2103. /* 0 */ V(1, 5, 1), /* 284 */
  2104. /* 1 */ V(0, 5, 1),
  2105. /* 0010 0000 ... */
  2106. /* 0 */ V(3, 4, 1), /* 286 */
  2107. /* 1 */ V(4, 3, 1),
  2108. /* 0010 0001 ... */
  2109. /* 0 */ V(5, 0, 1), /* 288 */
  2110. /* 1 */ V(2, 4, 1),
  2111. /* 0010 0010 ... */
  2112. /* 0 */ V(4, 2, 1), /* 290 */
  2113. /* 1 */ V(3, 3, 1),
  2114. /* 0010 0101 ... */
  2115. /* 0 */ V(0, 4, 1), /* 292 */
  2116. /* 1 */ V(4, 0, 1),
  2117. /* 0000 0110 1100 ... */
  2118. /* 0000 */ V(12, 14, 4), /* 294 */
  2119. /* 0001 */ PTR(400, 1),
  2120. /* 0010 */ V(13, 14, 3),
  2121. /* 0011 */ V(13, 14, 3),
  2122. /* 0100 */ V(14, 9, 3),
  2123. /* 0101 */ V(14, 9, 3),
  2124. /* 0110 */ V(14, 10, 4),
  2125. /* 0111 */ V(13, 9, 4),
  2126. /* 1000 */ V(14, 14, 2),
  2127. /* 1001 */ V(14, 14, 2),
  2128. /* 1010 */ V(14, 14, 2),
  2129. /* 1011 */ V(14, 14, 2),
  2130. /* 1100 */ V(14, 13, 3),
  2131. /* 1101 */ V(14, 13, 3),
  2132. /* 1110 */ V(14, 11, 3),
  2133. /* 1111 */ V(14, 11, 3),
  2134. /* 0000 0110 1101 ... */
  2135. /* 000 */ V(11, 14, 2), /* 310 */
  2136. /* 001 */ V(11, 14, 2),
  2137. /* 010 */ V(12, 13, 2),
  2138. /* 011 */ V(12, 13, 2),
  2139. /* 100 */ V(13, 12, 3),
  2140. /* 101 */ V(13, 11, 3),
  2141. /* 110 */ V(10, 14, 2),
  2142. /* 111 */ V(10, 14, 2),
  2143. /* 0000 0110 1110 ... */
  2144. /* 000 */ V(12, 12, 2), /* 318 */
  2145. /* 001 */ V(12, 12, 2),
  2146. /* 010 */ V(10, 13, 3),
  2147. /* 011 */ V(13, 10, 3),
  2148. /* 100 */ V(7, 14, 3),
  2149. /* 101 */ V(10, 12, 3),
  2150. /* 110 */ V(12, 10, 2),
  2151. /* 111 */ V(12, 10, 2),
  2152. /* 0000 0110 1111 ... */
  2153. /* 000 */ V(12, 9, 3), /* 326 */
  2154. /* 001 */ V(7, 13, 3),
  2155. /* 010 */ V(5, 14, 2),
  2156. /* 011 */ V(5, 14, 2),
  2157. /* 100 */ V(11, 13, 1),
  2158. /* 101 */ V(11, 13, 1),
  2159. /* 110 */ V(11, 13, 1),
  2160. /* 111 */ V(11, 13, 1),
  2161. /* 0000 1011 0000 ... */
  2162. /* 00 */ V(9, 14, 1), /* 334 */
  2163. /* 01 */ V(9, 14, 1),
  2164. /* 10 */ V(11, 12, 2),
  2165. /* 11 */ V(12, 11, 2),
  2166. /* 0000 1011 0001 ... */
  2167. /* 00 */ V(8, 14, 2), /* 338 */
  2168. /* 01 */ V(14, 8, 2),
  2169. /* 10 */ V(9, 13, 2),
  2170. /* 11 */ V(14, 7, 2),
  2171. /* 0000 1011 0010 ... */
  2172. /* 00 */ V(11, 11, 2), /* 342 */
  2173. /* 01 */ V(8, 13, 2),
  2174. /* 10 */ V(13, 8, 2),
  2175. /* 11 */ V(6, 14, 2),
  2176. /* 0000 1011 0011 ... */
  2177. /* 0 */ V(14, 6, 1), /* 346 */
  2178. /* 1 */ V(9, 12, 1),
  2179. /* 0000 1011 0100 ... */
  2180. /* 00 */ V(10, 11, 2), /* 348 */
  2181. /* 01 */ V(11, 10, 2),
  2182. /* 10 */ V(14, 5, 2),
  2183. /* 11 */ V(13, 7, 2),
  2184. /* 0000 1011 0101 ... */
  2185. /* 00 */ V(4, 14, 1), /* 352 */
  2186. /* 01 */ V(4, 14, 1),
  2187. /* 10 */ V(14, 4, 2),
  2188. /* 11 */ V(8, 12, 2),
  2189. /* 0000 1011 0110 ... */
  2190. /* 0 */ V(12, 8, 1), /* 356 */
  2191. /* 1 */ V(3, 14, 1),
  2192. /* 0000 1011 0111 ... */
  2193. /* 00 */ V(6, 13, 1), /* 358 */
  2194. /* 01 */ V(6, 13, 1),
  2195. /* 10 */ V(13, 6, 2),
  2196. /* 11 */ V(9, 11, 2),
  2197. /* 0000 1011 1000 ... */
  2198. /* 00 */ V(11, 9, 2), /* 362 */
  2199. /* 01 */ V(10, 10, 2),
  2200. /* 10 */ V(14, 1, 1),
  2201. /* 11 */ V(14, 1, 1),
  2202. /* 0000 1011 1001 ... */
  2203. /* 00 */ V(13, 4, 1), /* 366 */
  2204. /* 01 */ V(13, 4, 1),
  2205. /* 10 */ V(11, 8, 2),
  2206. /* 11 */ V(10, 9, 2),
  2207. /* 0000 1011 1010 ... */
  2208. /* 00 */ V(7, 11, 1), /* 370 */
  2209. /* 01 */ V(7, 11, 1),
  2210. /* 10 */ V(11, 7, 2),
  2211. /* 11 */ V(13, 0, 2),
  2212. /* 0000 1011 1100 ... */
  2213. /* 0 */ V(0, 14, 1), /* 374 */
  2214. /* 1 */ V(14, 0, 1),
  2215. /* 0000 1011 1101 ... */
  2216. /* 0 */ V(5, 13, 1), /* 376 */
  2217. /* 1 */ V(13, 5, 1),
  2218. /* 0000 1011 1110 ... */
  2219. /* 0 */ V(7, 12, 1), /* 378 */
  2220. /* 1 */ V(12, 7, 1),
  2221. /* 0000 1011 1111 ... */
  2222. /* 0 */ V(4, 13, 1), /* 380 */
  2223. /* 1 */ V(8, 11, 1),
  2224. /* 0000 1100 0000 ... */
  2225. /* 0 */ V(9, 10, 1), /* 382 */
  2226. /* 1 */ V(6, 12, 1),
  2227. /* 0000 1100 0001 ... */
  2228. /* 0 */ V(12, 6, 1), /* 384 */
  2229. /* 1 */ V(3, 13, 1),
  2230. /* 0000 1100 0010 ... */
  2231. /* 0 */ V(5, 12, 1), /* 386 */
  2232. /* 1 */ V(12, 5, 1),
  2233. /* 0000 1100 0100 ... */
  2234. /* 0 */ V(8, 10, 1), /* 388 */
  2235. /* 1 */ V(10, 8, 1),
  2236. /* 0000 1100 0101 ... */
  2237. /* 0 */ V(9, 9, 1), /* 390 */
  2238. /* 1 */ V(4, 12, 1),
  2239. /* 0000 1100 0110 ... */
  2240. /* 0 */ V(11, 6, 1), /* 392 */
  2241. /* 1 */ V(7, 10, 1),
  2242. /* 0000 1100 1000 ... */
  2243. /* 0 */ V(5, 11, 1), /* 394 */
  2244. /* 1 */ V(8, 9, 1),
  2245. /* 0000 1100 1011 ... */
  2246. /* 0 */ V(9, 8, 1), /* 396 */
  2247. /* 1 */ V(7, 9, 1),
  2248. /* 0000 1101 0101 ... */
  2249. /* 0 */ V(9, 7, 1), /* 398 */
  2250. /* 1 */ V(8, 8, 1),
  2251. /* 0000 0110 1100 0001 ... */
  2252. /* 0 */ V(14, 12, 1), /* 400 */
  2253. /* 1 */ V(13, 13, 1)
  2254. };
  2255. static
  2256. union huffpair const hufftab24[] = {
  2257. /* 0000 */ PTR(16, 4),
  2258. /* 0001 */ PTR(32, 4),
  2259. /* 0010 */ PTR(48, 4),
  2260. /* 0011 */ V(15, 15, 4),
  2261. /* 0100 */ PTR(64, 4),
  2262. /* 0101 */ PTR(80, 4),
  2263. /* 0110 */ PTR(96, 4),
  2264. /* 0111 */ PTR(112, 4),
  2265. /* 1000 */ PTR(128, 4),
  2266. /* 1001 */ PTR(144, 4),
  2267. /* 1010 */ PTR(160, 3),
  2268. /* 1011 */ PTR(168, 2),
  2269. /* 1100 */ V(1, 1, 4),
  2270. /* 1101 */ V(0, 1, 4),
  2271. /* 1110 */ V(1, 0, 4),
  2272. /* 1111 */ V(0, 0, 4),
  2273. /* 0000 ... */
  2274. /* 0000 */ V(14, 15, 4), /* 16 */
  2275. /* 0001 */ V(15, 14, 4),
  2276. /* 0010 */ V(13, 15, 4),
  2277. /* 0011 */ V(15, 13, 4),
  2278. /* 0100 */ V(12, 15, 4),
  2279. /* 0101 */ V(15, 12, 4),
  2280. /* 0110 */ V(11, 15, 4),
  2281. /* 0111 */ V(15, 11, 4),
  2282. /* 1000 */ V(15, 10, 3),
  2283. /* 1001 */ V(15, 10, 3),
  2284. /* 1010 */ V(10, 15, 4),
  2285. /* 1011 */ V(9, 15, 4),
  2286. /* 1100 */ V(15, 9, 3),
  2287. /* 1101 */ V(15, 9, 3),
  2288. /* 1110 */ V(15, 8, 3),
  2289. /* 1111 */ V(15, 8, 3),
  2290. /* 0001 ... */
  2291. /* 0000 */ V(8, 15, 4), /* 32 */
  2292. /* 0001 */ V(7, 15, 4),
  2293. /* 0010 */ V(15, 7, 3),
  2294. /* 0011 */ V(15, 7, 3),
  2295. /* 0100 */ V(6, 15, 3),
  2296. /* 0101 */ V(6, 15, 3),
  2297. /* 0110 */ V(15, 6, 3),
  2298. /* 0111 */ V(15, 6, 3),
  2299. /* 1000 */ V(5, 15, 3),
  2300. /* 1001 */ V(5, 15, 3),
  2301. /* 1010 */ V(15, 5, 3),
  2302. /* 1011 */ V(15, 5, 3),
  2303. /* 1100 */ V(4, 15, 3),
  2304. /* 1101 */ V(4, 15, 3),
  2305. /* 1110 */ V(15, 4, 3),
  2306. /* 1111 */ V(15, 4, 3),
  2307. /* 0010 ... */
  2308. /* 0000 */ V(3, 15, 3), /* 48 */
  2309. /* 0001 */ V(3, 15, 3),
  2310. /* 0010 */ V(15, 3, 3),
  2311. /* 0011 */ V(15, 3, 3),
  2312. /* 0100 */ V(2, 15, 3),
  2313. /* 0101 */ V(2, 15, 3),
  2314. /* 0110 */ V(15, 2, 3),
  2315. /* 0111 */ V(15, 2, 3),
  2316. /* 1000 */ V(15, 1, 3),
  2317. /* 1001 */ V(15, 1, 3),
  2318. /* 1010 */ V(1, 15, 4),
  2319. /* 1011 */ V(15, 0, 4),
  2320. /* 1100 */ PTR(172, 3),
  2321. /* 1101 */ PTR(180, 3),
  2322. /* 1110 */ PTR(188, 3),
  2323. /* 1111 */ PTR(196, 3),
  2324. /* 0100 ... */
  2325. /* 0000 */ PTR(204, 4), /* 64 */
  2326. /* 0001 */ PTR(220, 3),
  2327. /* 0010 */ PTR(228, 3),
  2328. /* 0011 */ PTR(236, 3),
  2329. /* 0100 */ PTR(244, 2),
  2330. /* 0101 */ PTR(248, 2),
  2331. /* 0110 */ PTR(252, 2),
  2332. /* 0111 */ PTR(256, 2),
  2333. /* 1000 */ PTR(260, 2),
  2334. /* 1001 */ PTR(264, 2),
  2335. /* 1010 */ PTR(268, 2),
  2336. /* 1011 */ PTR(272, 2),
  2337. /* 1100 */ PTR(276, 2),
  2338. /* 1101 */ PTR(280, 3),
  2339. /* 1110 */ PTR(288, 2),
  2340. /* 1111 */ PTR(292, 2),
  2341. /* 0101 ... */
  2342. /* 0000 */ PTR(296, 2), /* 80 */
  2343. /* 0001 */ PTR(300, 3),
  2344. /* 0010 */ PTR(308, 2),
  2345. /* 0011 */ PTR(312, 3),
  2346. /* 0100 */ PTR(320, 1),
  2347. /* 0101 */ PTR(322, 2),
  2348. /* 0110 */ PTR(326, 2),
  2349. /* 0111 */ PTR(330, 1),
  2350. /* 1000 */ PTR(332, 2),
  2351. /* 1001 */ PTR(336, 1),
  2352. /* 1010 */ PTR(338, 1),
  2353. /* 1011 */ PTR(340, 1),
  2354. /* 1100 */ PTR(342, 1),
  2355. /* 1101 */ PTR(344, 1),
  2356. /* 1110 */ PTR(346, 1),
  2357. /* 1111 */ PTR(348, 1),
  2358. /* 0110 ... */
  2359. /* 0000 */ PTR(350, 1), /* 96 */
  2360. /* 0001 */ PTR(352, 1),
  2361. /* 0010 */ PTR(354, 1),
  2362. /* 0011 */ PTR(356, 1),
  2363. /* 0100 */ PTR(358, 1),
  2364. /* 0101 */ PTR(360, 1),
  2365. /* 0110 */ PTR(362, 1),
  2366. /* 0111 */ PTR(364, 1),
  2367. /* 1000 */ PTR(366, 1),
  2368. /* 1001 */ PTR(368, 1),
  2369. /* 1010 */ PTR(370, 2),
  2370. /* 1011 */ PTR(374, 1),
  2371. /* 1100 */ PTR(376, 2),
  2372. /* 1101 */ V(7, 3, 4),
  2373. /* 1110 */ PTR(380, 1),
  2374. /* 1111 */ V(7, 2, 4),
  2375. /* 0111 ... */
  2376. /* 0000 */ V(4, 6, 4), /* 112 */
  2377. /* 0001 */ V(6, 4, 4),
  2378. /* 0010 */ V(5, 5, 4),
  2379. /* 0011 */ V(7, 1, 4),
  2380. /* 0100 */ V(3, 6, 4),
  2381. /* 0101 */ V(6, 3, 4),
  2382. /* 0110 */ V(4, 5, 4),
  2383. /* 0111 */ V(5, 4, 4),
  2384. /* 1000 */ V(2, 6, 4),
  2385. /* 1001 */ V(6, 2, 4),
  2386. /* 1010 */ V(1, 6, 4),
  2387. /* 1011 */ V(6, 1, 4),
  2388. /* 1100 */ PTR(382, 1),
  2389. /* 1101 */ V(3, 5, 4),
  2390. /* 1110 */ V(5, 3, 4),
  2391. /* 1111 */ V(4, 4, 4),
  2392. /* 1000 ... */
  2393. /* 0000 */ V(2, 5, 4), /* 128 */
  2394. /* 0001 */ V(5, 2, 4),
  2395. /* 0010 */ V(1, 5, 4),
  2396. /* 0011 */ PTR(384, 1),
  2397. /* 0100 */ V(5, 1, 3),
  2398. /* 0101 */ V(5, 1, 3),
  2399. /* 0110 */ V(3, 4, 4),
  2400. /* 0111 */ V(4, 3, 4),
  2401. /* 1000 */ V(2, 4, 3),
  2402. /* 1001 */ V(2, 4, 3),
  2403. /* 1010 */ V(4, 2, 3),
  2404. /* 1011 */ V(4, 2, 3),
  2405. /* 1100 */ V(3, 3, 3),
  2406. /* 1101 */ V(3, 3, 3),
  2407. /* 1110 */ V(1, 4, 3),
  2408. /* 1111 */ V(1, 4, 3),
  2409. /* 1001 ... */
  2410. /* 0000 */ V(4, 1, 3), /* 144 */
  2411. /* 0001 */ V(4, 1, 3),
  2412. /* 0010 */ V(0, 4, 4),
  2413. /* 0011 */ V(4, 0, 4),
  2414. /* 0100 */ V(2, 3, 3),
  2415. /* 0101 */ V(2, 3, 3),
  2416. /* 0110 */ V(3, 2, 3),
  2417. /* 0111 */ V(3, 2, 3),
  2418. /* 1000 */ V(1, 3, 2),
  2419. /* 1001 */ V(1, 3, 2),
  2420. /* 1010 */ V(1, 3, 2),
  2421. /* 1011 */ V(1, 3, 2),
  2422. /* 1100 */ V(3, 1, 2),
  2423. /* 1101 */ V(3, 1, 2),
  2424. /* 1110 */ V(3, 1, 2),
  2425. /* 1111 */ V(3, 1, 2),
  2426. /* 1010 ... */
  2427. /* 000 */ V(0, 3, 3), /* 160 */
  2428. /* 001 */ V(3, 0, 3),
  2429. /* 010 */ V(2, 2, 2),
  2430. /* 011 */ V(2, 2, 2),
  2431. /* 100 */ V(1, 2, 1),
  2432. /* 101 */ V(1, 2, 1),
  2433. /* 110 */ V(1, 2, 1),
  2434. /* 111 */ V(1, 2, 1),
  2435. /* 1011 ... */
  2436. /* 00 */ V(2, 1, 1), /* 168 */
  2437. /* 01 */ V(2, 1, 1),
  2438. /* 10 */ V(0, 2, 2),
  2439. /* 11 */ V(2, 0, 2),
  2440. /* 0010 1100 ... */
  2441. /* 000 */ V(0, 15, 1), /* 172 */
  2442. /* 001 */ V(0, 15, 1),
  2443. /* 010 */ V(0, 15, 1),
  2444. /* 011 */ V(0, 15, 1),
  2445. /* 100 */ V(14, 14, 3),
  2446. /* 101 */ V(13, 14, 3),
  2447. /* 110 */ V(14, 13, 3),
  2448. /* 111 */ V(12, 14, 3),
  2449. /* 0010 1101 ... */
  2450. /* 000 */ V(14, 12, 3), /* 180 */
  2451. /* 001 */ V(13, 13, 3),
  2452. /* 010 */ V(11, 14, 3),
  2453. /* 011 */ V(14, 11, 3),
  2454. /* 100 */ V(12, 13, 3),
  2455. /* 101 */ V(13, 12, 3),
  2456. /* 110 */ V(10, 14, 3),
  2457. /* 111 */ V(14, 10, 3),
  2458. /* 0010 1110 ... */
  2459. /* 000 */ V(11, 13, 3), /* 188 */
  2460. /* 001 */ V(13, 11, 3),
  2461. /* 010 */ V(12, 12, 3),
  2462. /* 011 */ V(9, 14, 3),
  2463. /* 100 */ V(14, 9, 3),
  2464. /* 101 */ V(10, 13, 3),
  2465. /* 110 */ V(13, 10, 3),
  2466. /* 111 */ V(11, 12, 3),
  2467. /* 0010 1111 ... */
  2468. /* 000 */ V(12, 11, 3), /* 196 */
  2469. /* 001 */ V(8, 14, 3),
  2470. /* 010 */ V(14, 8, 3),
  2471. /* 011 */ V(9, 13, 3),
  2472. /* 100 */ V(13, 9, 3),
  2473. /* 101 */ V(7, 14, 3),
  2474. /* 110 */ V(14, 7, 3),
  2475. /* 111 */ V(10, 12, 3),
  2476. /* 0100 0000 ... */
  2477. /* 0000 */ V(12, 10, 3), /* 204 */
  2478. /* 0001 */ V(12, 10, 3),
  2479. /* 0010 */ V(11, 11, 3),
  2480. /* 0011 */ V(11, 11, 3),
  2481. /* 0100 */ V(8, 13, 3),
  2482. /* 0101 */ V(8, 13, 3),
  2483. /* 0110 */ V(13, 8, 3),
  2484. /* 0111 */ V(13, 8, 3),
  2485. /* 1000 */ V(0, 14, 4),
  2486. /* 1001 */ V(14, 0, 4),
  2487. /* 1010 */ V(0, 13, 3),
  2488. /* 1011 */ V(0, 13, 3),
  2489. /* 1100 */ V(14, 6, 2),
  2490. /* 1101 */ V(14, 6, 2),
  2491. /* 1110 */ V(14, 6, 2),
  2492. /* 1111 */ V(14, 6, 2),
  2493. /* 0100 0001 ... */
  2494. /* 000 */ V(6, 14, 3), /* 220 */
  2495. /* 001 */ V(9, 12, 3),
  2496. /* 010 */ V(12, 9, 2),
  2497. /* 011 */ V(12, 9, 2),
  2498. /* 100 */ V(5, 14, 2),
  2499. /* 101 */ V(5, 14, 2),
  2500. /* 110 */ V(11, 10, 2),
  2501. /* 111 */ V(11, 10, 2),
  2502. /* 0100 0010 ... */
  2503. /* 000 */ V(14, 5, 2), /* 228 */
  2504. /* 001 */ V(14, 5, 2),
  2505. /* 010 */ V(10, 11, 3),
  2506. /* 011 */ V(7, 13, 3),
  2507. /* 100 */ V(13, 7, 2),
  2508. /* 101 */ V(13, 7, 2),
  2509. /* 110 */ V(14, 4, 2),
  2510. /* 111 */ V(14, 4, 2),
  2511. /* 0100 0011 ... */
  2512. /* 000 */ V(8, 12, 2), /* 236 */
  2513. /* 001 */ V(8, 12, 2),
  2514. /* 010 */ V(12, 8, 2),
  2515. /* 011 */ V(12, 8, 2),
  2516. /* 100 */ V(4, 14, 3),
  2517. /* 101 */ V(2, 14, 3),
  2518. /* 110 */ V(3, 14, 2),
  2519. /* 111 */ V(3, 14, 2),
  2520. /* 0100 0100 ... */
  2521. /* 00 */ V(6, 13, 2), /* 244 */
  2522. /* 01 */ V(13, 6, 2),
  2523. /* 10 */ V(14, 3, 2),
  2524. /* 11 */ V(9, 11, 2),
  2525. /* 0100 0101 ... */
  2526. /* 00 */ V(11, 9, 2), /* 248 */
  2527. /* 01 */ V(10, 10, 2),
  2528. /* 10 */ V(14, 2, 2),
  2529. /* 11 */ V(1, 14, 2),
  2530. /* 0100 0110 ... */
  2531. /* 00 */ V(14, 1, 2), /* 252 */
  2532. /* 01 */ V(5, 13, 2),
  2533. /* 10 */ V(13, 5, 2),
  2534. /* 11 */ V(7, 12, 2),
  2535. /* 0100 0111 ... */
  2536. /* 00 */ V(12, 7, 2), /* 256 */
  2537. /* 01 */ V(4, 13, 2),
  2538. /* 10 */ V(8, 11, 2),
  2539. /* 11 */ V(11, 8, 2),
  2540. /* 0100 1000 ... */
  2541. /* 00 */ V(13, 4, 2), /* 260 */
  2542. /* 01 */ V(9, 10, 2),
  2543. /* 10 */ V(10, 9, 2),
  2544. /* 11 */ V(6, 12, 2),
  2545. /* 0100 1001 ... */
  2546. /* 00 */ V(12, 6, 2), /* 264 */
  2547. /* 01 */ V(3, 13, 2),
  2548. /* 10 */ V(13, 3, 2),
  2549. /* 11 */ V(2, 13, 2),
  2550. /* 0100 1010 ... */
  2551. /* 00 */ V(13, 2, 2), /* 268 */
  2552. /* 01 */ V(1, 13, 2),
  2553. /* 10 */ V(7, 11, 2),
  2554. /* 11 */ V(11, 7, 2),
  2555. /* 0100 1011 ... */
  2556. /* 00 */ V(13, 1, 2), /* 272 */
  2557. /* 01 */ V(5, 12, 2),
  2558. /* 10 */ V(12, 5, 2),
  2559. /* 11 */ V(8, 10, 2),
  2560. /* 0100 1100 ... */
  2561. /* 00 */ V(10, 8, 2), /* 276 */
  2562. /* 01 */ V(9, 9, 2),
  2563. /* 10 */ V(4, 12, 2),
  2564. /* 11 */ V(12, 4, 2),
  2565. /* 0100 1101 ... */
  2566. /* 000 */ V(6, 11, 2), /* 280 */
  2567. /* 001 */ V(6, 11, 2),
  2568. /* 010 */ V(11, 6, 2),
  2569. /* 011 */ V(11, 6, 2),
  2570. /* 100 */ V(13, 0, 3),
  2571. /* 101 */ V(0, 12, 3),
  2572. /* 110 */ V(3, 12, 2),
  2573. /* 111 */ V(3, 12, 2),
  2574. /* 0100 1110 ... */
  2575. /* 00 */ V(12, 3, 2), /* 288 */
  2576. /* 01 */ V(7, 10, 2),
  2577. /* 10 */ V(10, 7, 2),
  2578. /* 11 */ V(2, 12, 2),
  2579. /* 0100 1111 ... */
  2580. /* 00 */ V(12, 2, 2), /* 292 */
  2581. /* 01 */ V(5, 11, 2),
  2582. /* 10 */ V(11, 5, 2),
  2583. /* 11 */ V(1, 12, 2),
  2584. /* 0101 0000 ... */
  2585. /* 00 */ V(8, 9, 2), /* 296 */
  2586. /* 01 */ V(9, 8, 2),
  2587. /* 10 */ V(12, 1, 2),
  2588. /* 11 */ V(4, 11, 2),
  2589. /* 0101 0001 ... */
  2590. /* 000 */ V(12, 0, 3), /* 300 */
  2591. /* 001 */ V(0, 11, 3),
  2592. /* 010 */ V(3, 11, 2),
  2593. /* 011 */ V(3, 11, 2),
  2594. /* 100 */ V(11, 0, 3),
  2595. /* 101 */ V(0, 10, 3),
  2596. /* 110 */ V(1, 10, 2),
  2597. /* 111 */ V(1, 10, 2),
  2598. /* 0101 0010 ... */
  2599. /* 00 */ V(11, 4, 1), /* 308 */
  2600. /* 01 */ V(11, 4, 1),
  2601. /* 10 */ V(6, 10, 2),
  2602. /* 11 */ V(10, 6, 2),
  2603. /* 0101 0011 ... */
  2604. /* 000 */ V(7, 9, 2), /* 312 */
  2605. /* 001 */ V(7, 9, 2),
  2606. /* 010 */ V(9, 7, 2),
  2607. /* 011 */ V(9, 7, 2),
  2608. /* 100 */ V(10, 0, 3),
  2609. /* 101 */ V(0, 9, 3),
  2610. /* 110 */ V(9, 0, 2),
  2611. /* 111 */ V(9, 0, 2),
  2612. /* 0101 0100 ... */
  2613. /* 0 */ V(11, 3, 1), /* 320 */
  2614. /* 1 */ V(8, 8, 1),
  2615. /* 0101 0101 ... */
  2616. /* 00 */ V(2, 11, 2), /* 322 */
  2617. /* 01 */ V(5, 10, 2),
  2618. /* 10 */ V(11, 2, 1),
  2619. /* 11 */ V(11, 2, 1),
  2620. /* 0101 0110 ... */
  2621. /* 00 */ V(10, 5, 2), /* 326 */
  2622. /* 01 */ V(1, 11, 2),
  2623. /* 10 */ V(11, 1, 2),
  2624. /* 11 */ V(6, 9, 2),
  2625. /* 0101 0111 ... */
  2626. /* 0 */ V(9, 6, 1), /* 330 */
  2627. /* 1 */ V(10, 4, 1),
  2628. /* 0101 1000 ... */
  2629. /* 00 */ V(4, 10, 2), /* 332 */
  2630. /* 01 */ V(7, 8, 2),
  2631. /* 10 */ V(8, 7, 1),
  2632. /* 11 */ V(8, 7, 1),
  2633. /* 0101 1001 ... */
  2634. /* 0 */ V(3, 10, 1), /* 336 */
  2635. /* 1 */ V(10, 3, 1),
  2636. /* 0101 1010 ... */
  2637. /* 0 */ V(5, 9, 1), /* 338 */
  2638. /* 1 */ V(9, 5, 1),
  2639. /* 0101 1011 ... */
  2640. /* 0 */ V(2, 10, 1), /* 340 */
  2641. /* 1 */ V(10, 2, 1),
  2642. /* 0101 1100 ... */
  2643. /* 0 */ V(10, 1, 1), /* 342 */
  2644. /* 1 */ V(6, 8, 1),
  2645. /* 0101 1101 ... */
  2646. /* 0 */ V(8, 6, 1), /* 344 */
  2647. /* 1 */ V(7, 7, 1),
  2648. /* 0101 1110 ... */
  2649. /* 0 */ V(4, 9, 1), /* 346 */
  2650. /* 1 */ V(9, 4, 1),
  2651. /* 0101 1111 ... */
  2652. /* 0 */ V(3, 9, 1), /* 348 */
  2653. /* 1 */ V(9, 3, 1),
  2654. /* 0110 0000 ... */
  2655. /* 0 */ V(5, 8, 1), /* 350 */
  2656. /* 1 */ V(8, 5, 1),
  2657. /* 0110 0001 ... */
  2658. /* 0 */ V(2, 9, 1), /* 352 */
  2659. /* 1 */ V(6, 7, 1),
  2660. /* 0110 0010 ... */
  2661. /* 0 */ V(7, 6, 1), /* 354 */
  2662. /* 1 */ V(9, 2, 1),
  2663. /* 0110 0011 ... */
  2664. /* 0 */ V(1, 9, 1), /* 356 */
  2665. /* 1 */ V(9, 1, 1),
  2666. /* 0110 0100 ... */
  2667. /* 0 */ V(4, 8, 1), /* 358 */
  2668. /* 1 */ V(8, 4, 1),
  2669. /* 0110 0101 ... */
  2670. /* 0 */ V(5, 7, 1), /* 360 */
  2671. /* 1 */ V(7, 5, 1),
  2672. /* 0110 0110 ... */
  2673. /* 0 */ V(3, 8, 1), /* 362 */
  2674. /* 1 */ V(8, 3, 1),
  2675. /* 0110 0111 ... */
  2676. /* 0 */ V(6, 6, 1), /* 364 */
  2677. /* 1 */ V(2, 8, 1),
  2678. /* 0110 1000 ... */
  2679. /* 0 */ V(8, 2, 1), /* 366 */
  2680. /* 1 */ V(1, 8, 1),
  2681. /* 0110 1001 ... */
  2682. /* 0 */ V(4, 7, 1), /* 368 */
  2683. /* 1 */ V(7, 4, 1),
  2684. /* 0110 1010 ... */
  2685. /* 00 */ V(8, 1, 1), /* 370 */
  2686. /* 01 */ V(8, 1, 1),
  2687. /* 10 */ V(0, 8, 2),
  2688. /* 11 */ V(8, 0, 2),
  2689. /* 0110 1011 ... */
  2690. /* 0 */ V(5, 6, 1), /* 374 */
  2691. /* 1 */ V(6, 5, 1),
  2692. /* 0110 1100 ... */
  2693. /* 00 */ V(1, 7, 1), /* 376 */
  2694. /* 01 */ V(1, 7, 1),
  2695. /* 10 */ V(0, 7, 2),
  2696. /* 11 */ V(7, 0, 2),
  2697. /* 0110 1110 ... */
  2698. /* 0 */ V(3, 7, 1), /* 380 */
  2699. /* 1 */ V(2, 7, 1),
  2700. /* 0111 1100 ... */
  2701. /* 0 */ V(0, 6, 1), /* 382 */
  2702. /* 1 */ V(6, 0, 1),
  2703. /* 1000 0011 ... */
  2704. /* 0 */ V(0, 5, 1), /* 384 */
  2705. /* 1 */ V(5, 0, 1)
  2706. };
  2707. # undef V
  2708. # undef PTR
  2709. /* external tables */
  2710. union huffquad const *const mad_huff_quad_table[2] = { hufftabA, hufftabB };
  2711. struct hufftable const mad_huff_pair_table[32] = {
  2712. /* 0 */ { hufftab0, 0, 0 },
  2713. /* 1 */ { hufftab1, 0, 3 },
  2714. /* 2 */ { hufftab2, 0, 3 },
  2715. /* 3 */ { hufftab3, 0, 3 },
  2716. /* 4 */ { 0 /* not used */ },
  2717. /* 5 */ { hufftab5, 0, 3 },
  2718. /* 6 */ { hufftab6, 0, 4 },
  2719. /* 7 */ { hufftab7, 0, 4 },
  2720. /* 8 */ { hufftab8, 0, 4 },
  2721. /* 9 */ { hufftab9, 0, 4 },
  2722. /* 10 */ { hufftab10, 0, 4 },
  2723. /* 11 */ { hufftab11, 0, 4 },
  2724. /* 12 */ { hufftab12, 0, 4 },
  2725. /* 13 */ { hufftab13, 0, 4 },
  2726. /* 14 */ { 0 /* not used */ },
  2727. /* 15 */ { hufftab15, 0, 4 },
  2728. /* 16 */ { hufftab16, 1, 4 },
  2729. /* 17 */ { hufftab16, 2, 4 },
  2730. /* 18 */ { hufftab16, 3, 4 },
  2731. /* 19 */ { hufftab16, 4, 4 },
  2732. /* 20 */ { hufftab16, 6, 4 },
  2733. /* 21 */ { hufftab16, 8, 4 },
  2734. /* 22 */ { hufftab16, 10, 4 },
  2735. /* 23 */ { hufftab16, 13, 4 },
  2736. /* 24 */ { hufftab24, 4, 4 },
  2737. /* 25 */ { hufftab24, 5, 4 },
  2738. /* 26 */ { hufftab24, 6, 4 },
  2739. /* 27 */ { hufftab24, 7, 4 },
  2740. /* 28 */ { hufftab24, 8, 4 },
  2741. /* 29 */ { hufftab24, 9, 4 },
  2742. /* 30 */ { hufftab24, 11, 4 },
  2743. /* 31 */ { hufftab24, 13, 4 }
  2744. };