blob: abe598350b1fcd21f6075fda29e73fe213dd90b0 [file] [log] [blame]
/*
* On2 Audio for Video Codec decoder
*
* Copyright (c) 2013 Konstantin Shishkov
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "on2avcdata.h"
static const int on2avc_swb_start_long[] = {
0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 48, 56, 64,
72, 80, 88, 96, 108, 120, 132, 144, 156, 172, 188, 204, 224, 244,
264, 288, 312, 340, 368, 400, 432, 464, 496, 528, 560, 592, 624, 656,
688, 720, 752, 784, 816, 848, 880, 1024
};
static const int on2avc_swb_start_short[] = {
0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 56, 68, 80, 108, 128
};
static const int on2avc_swb_start_mode_4_40[] = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104,
112, 120, 128, 144, 160, 176, 192, 208, 224, 240, 256, 264, 272, 280,
288, 296, 304, 312, 320, 328, 336, 344, 352, 360, 368, 376, 384, 400,
416, 432, 448, 464, 480, 496, 512, 520, 528, 536, 544, 552, 560, 568,
576, 584, 592, 600, 608, 616, 624, 632, 640, 648, 656, 664, 672, 680,
688, 696, 704, 712, 720, 728, 736, 744, 752, 760, 768, 800, 832, 864,
896, 928, 960, 992, 1024
};
static const int on2avc_swb_start_mode_5_40[] = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 136,
144, 152, 160, 168, 176, 184, 192, 208, 224, 240, 256, 264, 272, 280,
288, 296, 304, 312, 320, 328, 336, 344, 352, 360, 368, 376, 384, 416,
448, 480, 512, 516, 520, 524, 528, 532, 536, 540, 548, 556, 568, 580,
592, 608, 624, 640, 656, 672, 688, 704, 720, 736, 752, 768, 784, 800,
816, 832, 848, 864, 880, 896, 912, 928, 944, 1024
};
static const int on2avc_swb_start_mode_6_40[] = {
0, 4, 8, 12, 16, 20, 24, 28, 36, 44, 56, 68, 80, 96,
112, 128, 144, 160, 176, 192, 208, 224, 240, 256, 272, 288, 304, 320,
336, 352, 368, 384, 400, 416, 432, 512, 520, 528, 536, 544, 552, 560,
568, 576, 592, 608, 624, 640, 648, 656, 664, 672, 680, 688, 696, 704,
720, 736, 752, 768, 776, 784, 792, 800, 808, 816, 824, 832, 840, 848,
856, 864, 872, 880, 888, 896, 928, 960, 992, 1024
};
static const int on2avc_swb_start_mode_4_44[] = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104,
112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216,
224, 232, 240, 248, 256, 264, 272, 280, 288, 296, 304, 312, 320, 328,
336, 344, 352, 360, 368, 376, 384, 392, 400, 408, 416, 424, 432, 440,
448, 456, 464, 472, 480, 488, 496, 504, 512, 528, 544, 560, 576, 592,
608, 624, 640, 672, 704, 736, 768, 832, 896, 960, 1024
};
static const int on2avc_swb_start_mode_5_44[] = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104,
112, 120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216,
224, 232, 240, 248, 256, 272, 288, 304, 320, 352, 384, 448, 512, 516,
520, 524, 528, 532, 536, 540, 548, 556, 568, 580, 592, 608, 624, 640,
656, 672, 688, 704, 720, 736, 752, 768, 784, 800, 816, 832, 848, 864,
880, 896, 912, 928, 944, 1024
};
static const int on2avc_swb_start_mode_6_44[] = {
0, 4, 8, 12, 16, 20, 24, 28, 36, 44, 56, 68, 80, 96,
112, 128, 144, 160, 176, 192, 208, 224, 240, 256, 272, 288, 304, 320,
336, 352, 368, 384, 400, 416, 432, 512, 520, 528, 536, 544, 552, 560,
568, 576, 584, 592, 600, 608, 616, 624, 632, 640, 648, 656, 664, 672,
680, 688, 696, 704, 712, 720, 728, 736, 744, 752, 760, 768, 784, 800,
816, 832, 864, 896, 960, 1024
};
const On2AVCMode ff_on2avc_modes_40[8] = {
{ 1, 49, on2avc_swb_start_long },
{ 1, 49, on2avc_swb_start_long },
{ 1, 49, on2avc_swb_start_long },
{ 8, 14, on2avc_swb_start_short },
{ 1, 88, on2avc_swb_start_mode_4_40 },
{ 1, 79, on2avc_swb_start_mode_5_40 },
{ 1, 79, on2avc_swb_start_mode_6_40 },
{ 1, 49, on2avc_swb_start_long },
};
const On2AVCMode ff_on2avc_modes_44[8] = {
{ 1, 49, on2avc_swb_start_long },
{ 1, 49, on2avc_swb_start_long },
{ 1, 49, on2avc_swb_start_long },
{ 8, 14, on2avc_swb_start_short },
{ 1, 80, on2avc_swb_start_mode_4_44 },
{ 1, 75, on2avc_swb_start_mode_5_44 },
{ 1, 75, on2avc_swb_start_mode_6_44 },
{ 1, 49, on2avc_swb_start_long },
};
const uint32_t ff_on2avc_scale_diff_codes[ON2AVC_SCALE_DIFFS] = {
0x6FFFF, 0xBFFF2, 0xBFFF3, 0xBFFF4, 0xBFFF5, 0xBFFF6,
0xBFFF7, 0xBFFF8, 0xBFFF9, 0xBFFFA, 0xBFFFB, 0xBFFFC,
0xBFFFD, 0xBFFFE, 0xBFFFF, 0xDF9A0, 0xDF9A1, 0xDF9A2,
0xDF9A3, 0xDF9A4, 0xDF9A5, 0xDF9A6, 0xDF9A7, 0xDF9A8,
0xDF9A9, 0x37FFE, 0x6FCDE, 0x6FFFA, 0x0BFF7, 0x0B7FF,
0x0DF9F, 0x05FF8, 0x0B7FE, 0x05FF9, 0x06FCE, 0x05BFE,
0x037FE, 0x02DFE, 0x00DFA, 0x00DFE, 0x017FC, 0x00DBE,
0x00B7E, 0x005FE, 0x0037D, 0x002DE, 0x0017E, 0x0016C,
0x000DE, 0x000BE, 0x0006C, 0x0005A, 0x0003E, 0x00034,
0x0002C, 0x0001F, 0x0000E, 0x0000E, 0x00006, 0x00002,
0x00000, 0x00004, 0x0000A, 0x0000C, 0x0001E, 0x0001E,
0x0002E, 0x00035, 0x0003F, 0x0005E, 0x0006E, 0x000DA,
0x0016D, 0x0016E, 0x001B6, 0x002FE, 0x0036E, 0x0037C,
0x005BE, 0x006DE, 0x006FE, 0x00DBF, 0x00DFB, 0x016FE,
0x017FD, 0x01BFE, 0x01BF2, 0x02FFE, 0x06FCC, 0x05FFE,
0x05FFA, 0x06FFE, 0x0BFF6, 0x0BFFE, 0x0DF9E, 0x00DF8,
0x0DFFE, 0x37FFC, 0x6FFFB, 0x5FFF8, 0xDF9AA, 0xDF9AB,
0xDF9AC, 0xDF9AD, 0xDF9AE, 0xDF9AF, 0xDF9B0, 0xDF9B1,
0xDF9B2, 0xDF9B3, 0x6FFFE, 0xDF9B4, 0xDF9B5, 0xDF9B6,
0xDF9B7, 0xDF9B8, 0xDF9B9, 0xDF9BA, 0xDF9BB, 0xDF9BE,
0xDF9BF,
};
const uint8_t ff_on2avc_scale_diff_bits[ON2AVC_SCALE_DIFFS] = {
20, 20, 20, 20, 20, 20,
20, 20, 20, 20, 20, 20,
20, 20, 20, 21, 21, 21,
21, 21, 21, 21, 21, 21,
21, 19, 20, 20, 16, 16,
17, 15, 16, 15, 16, 15,
15, 14, 13, 13, 13, 13,
12, 11, 11, 10, 9, 9,
9, 8, 8, 7, 7, 7,
6, 5, 5, 4, 3, 3,
2, 3, 4, 5, 5, 6,
6, 7, 7, 7, 8, 9,
9, 9, 10, 10, 11, 11,
11, 12, 12, 13, 13, 13,
13, 14, 14, 14, 16, 15,
15, 16, 16, 16, 17, 13,
17, 19, 20, 19, 21, 21,
21, 21, 21, 21, 21, 21,
21, 21, 20, 21, 21, 21,
21, 21, 21, 21, 21, 21,
21,
};
#define ON2AVC_CB1_CODES 41
static const uint32_t on2avc_cb1_codes[ON2AVC_CB1_CODES] = {
0x0000, 0x0022, 0x001C, 0x001B, 0x0024, 0x0030,
0x0029, 0x0027, 0x0021, 0x002B, 0x002E, 0x0020,
0x0026, 0x0033, 0x0031, 0x002C, 0x002A, 0x001E,
0x0094, 0x01FF, 0x01F7, 0x012E, 0x001A, 0x01F5,
0x007E, 0x012C, 0x01FC, 0x002D, 0x0032, 0x0028,
0x002F, 0x001D, 0x01FD, 0x012D, 0x007C, 0x01F4,
0x0023, 0x012F, 0x01F6, 0x01FE, 0x0095,
};
static const uint8_t on2avc_cb1_bits[ON2AVC_CB1_CODES] = {
1, 6, 5, 5, 6, 6,
6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 5,
8, 9, 9, 9, 5, 9,
7, 9, 9, 6, 6, 6,
6, 5, 9, 9, 7, 9,
6, 9, 9, 9, 8,
};
static const uint16_t on2avc_cb1_syms[ON2AVC_CB1_CODES] = {
0x0000, 0x0011, 0x001F, 0x00F1, 0x00FF, 0x0101,
0x010F, 0x0110, 0x01F0, 0x0F01, 0x0F0F, 0x0F10,
0x0FF0, 0x1001, 0x100F, 0x1010, 0x10F0, 0x1100,
0x1111, 0x111F, 0x11F1, 0x11FF, 0x1F00, 0x1F11,
0x1F1F, 0x1FF1, 0x1FFF, 0xF001, 0xF00F, 0xF010,
0xF0F0, 0xF100, 0xF111, 0xF11F, 0xF1F1, 0xF1FF,
0xFF00, 0xFF11, 0xFF1F, 0xFFF1, 0xFFFF,
};
#define ON2AVC_CB2_CODES 41
static const uint32_t on2avc_cb2_codes[ON2AVC_CB2_CODES] = {
0x0006, 0x0003, 0x001F, 0x001E, 0x0000, 0x0014,
0x0009, 0x000E, 0x000D, 0x000C, 0x0015, 0x0008,
0x0010, 0x000F, 0x0004, 0x0012, 0x0007, 0x0016,
0x0005, 0x002F, 0x0017, 0x0006, 0x001D, 0x002C,
0x005E, 0x0014, 0x0016, 0x0006, 0x0011, 0x000A,
0x0013, 0x001C, 0x002D, 0x0015, 0x005F, 0x002E,
0x0002, 0x0007, 0x005D, 0x005C, 0x0004,
};
static const uint8_t on2avc_cb2_bits[ON2AVC_CB2_CODES] = {
3, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5,
7, 7, 7, 7, 5, 7,
7, 7, 7, 5, 5, 5,
5, 5, 7, 7, 7, 7,
5, 7, 7, 7, 7,
};
static const uint16_t on2avc_cb2_syms[ON2AVC_CB2_CODES] = {
0x0000, 0x0011, 0x001F, 0x00F1, 0x00FF, 0x0101,
0x010F, 0x0110, 0x01F0, 0x0F01, 0x0F0F, 0x0F10,
0x0FF0, 0x1001, 0x100F, 0x1010, 0x10F0, 0x1100,
0x1111, 0x111F, 0x11F1, 0x11FF, 0x1F00, 0x1F11,
0x1F1F, 0x1FF1, 0x1FFF, 0xF001, 0xF00F, 0xF010,
0xF0F0, 0xF100, 0xF111, 0xF11F, 0xF1F1, 0xF1FF,
0xFF00, 0xFF11, 0xFF1F, 0xFFF1, 0xFFFF,
};
#define ON2AVC_CB3_CODES 313
static const uint32_t on2avc_cb3_codes[ON2AVC_CB3_CODES] = {
0x00000, 0x00044, 0x00042, 0x00034, 0x0002E, 0x000CD,
0x002DF, 0x0024A, 0x000CC, 0x0022E, 0x002D6, 0x00031,
0x0003B, 0x00048, 0x00052, 0x00056, 0x001B8, 0x00160,
0x001FA, 0x0015E, 0x0015C, 0x0014E, 0x0003C, 0x0010C,
0x00166, 0x000CA, 0x0324C, 0x00FDA, 0x003DE, 0x002DB,
0x0057F, 0x02C9E, 0x008BF, 0x0037F, 0x021DC, 0x00B1E,
0x002DE, 0x002D2, 0x000C8, 0x014D6, 0x03576, 0x002CA,
0x002CF, 0x003DB, 0x007FE, 0x01F7E, 0x005A3, 0x008BE,
0x02D7E, 0x002D3, 0x0037E, 0x0004D, 0x0004C, 0x00041,
0x0016A, 0x0010D, 0x0015D, 0x0011F, 0x00162, 0x0021E,
0x00055, 0x00161, 0x001BE, 0x0004E, 0x0004A, 0x0004B,
0x003EE, 0x00352, 0x0043A, 0x0033E, 0x0035C, 0x0036C,
0x00050, 0x0032F, 0x003D6, 0x00039, 0x0067E, 0x00536,
0x000FE, 0x001F4, 0x0036D, 0x007EF, 0x00CFE, 0x002D0,
0x00F8C, 0x00D96, 0x001E9, 0x001F6, 0x00476, 0x00367,
0x001F2, 0x01FF6, 0x016BB, 0x007FC, 0x00D5C, 0x00B24,
0x00C92, 0x0014F, 0x01EA6, 0x01936, 0x00366, 0x0035E,
0x00116, 0x00FBE, 0x01B5E, 0x0092F, 0x007EE, 0x00CEE,
0x00B26, 0x0011E, 0x014DF, 0x035DE, 0x00030, 0x00473,
0x005A2, 0x001BC, 0x000D6, 0x002DA, 0x00B5E, 0x007AA,
0x002C8, 0x00D94, 0x00D97, 0x001AA, 0x001EE, 0x0003A,
0x035DF, 0x03D4F, 0x0064F, 0x0064A, 0x02D73, 0x1ABBE,
0x0B1CF, 0x00F8E, 0x06AFF, 0x0475E, 0x00472, 0x00596,
0x003E7, 0x0036E, 0x00196, 0x0357E, 0x03F6E, 0x0324E,
0x0324F, 0x0163B, 0x0192F, 0x001B4, 0x0326A, 0x02C9F,
0x0021F, 0x0F8FF, 0x064D6, 0x007BE, 0x00DDF, 0x033BC,
0x033BD, 0x06AEE, 0x00876, 0x07C7E, 0x0B1CE, 0x00D76,
0x00DDC, 0x001EC, 0x0649B, 0x0B1CD, 0x00F8D, 0x007D6,
0x01AEE, 0x0163F, 0x03E3E, 0x00A6A, 0x06D7E, 0x0DDDF,
0x00F7E, 0x00DAE, 0x0036F, 0x00338, 0x0016C, 0x033BF,
0x036BE, 0x01FF7, 0x01937, 0x01ABA, 0x014D7, 0x0014C,
0x01F7F, 0x0475F, 0x00040, 0x07FFC, 0x03F6F, 0x00477,
0x00496, 0x014DE, 0x0649A, 0x064D7, 0x02C9C, 0x0B1CC,
0x1ABBF, 0x00648, 0x006BA, 0x00364, 0x0032E, 0x00126,
0x03D4E, 0x02C72, 0x011D6, 0x01638, 0x01934, 0x02C9D,
0x0016E, 0x021DD, 0x03DFF, 0x001F0, 0x07FFE, 0x043BF,
0x00D5E, 0x00FAE, 0x0092E, 0x07FFF, 0x0F8FE, 0x02D7F,
0x043BE, 0x06D7F, 0x008E9, 0x00FFA, 0x0021C, 0x06EEE,
0x0D5DE, 0x00F57, 0x00CFF, 0x016BA, 0x07FFD, 0x06AFE,
0x021DE, 0x0DDDE, 0x023AE, 0x00FAF, 0x006D6, 0x0037B,
0x003E6, 0x001B9, 0x01F1E, 0x033BE, 0x0192E, 0x016BE,
0x01FB6, 0x01BBA, 0x0019E, 0x03776, 0x03DFE, 0x00046,
0x00051, 0x0004F, 0x003D7, 0x0033A, 0x00376, 0x00353,
0x00356, 0x003EA, 0x00054, 0x00339, 0x003E2, 0x0002F,
0x0064C, 0x00534, 0x00238, 0x001A8, 0x002C6, 0x00D95,
0x00F52, 0x002CE, 0x007DE, 0x00B2F, 0x000D8, 0x001BA,
0x0036A, 0x0035F, 0x00127, 0x01EFE, 0x016B8, 0x008EA,
0x00CEC, 0x007EC, 0x00A6E, 0x00114, 0x01ABE, 0x00FFE,
0x0037A, 0x0045E, 0x00124, 0x0163E, 0x02D72, 0x00CED,
0x00B2E, 0x00C96, 0x007A8, 0x001FE, 0x0163A, 0x01FFE,
0x00038, 0x0057E, 0x0064E, 0x001F8, 0x001E8, 0x002BE,
0x00DDE, 0x00F56, 0x003DA, 0x00B25, 0x008E8, 0x001F9,
0x00115,
};
static const uint8_t on2avc_cb3_bits[ON2AVC_CB3_CODES] = {
1, 7, 7, 6, 6, 8,
10, 10, 8, 10, 10, 6,
6, 7, 7, 7, 9, 9,
9, 9, 9, 9, 6, 9,
9, 8, 14, 12, 10, 10,
11, 14, 12, 10, 14, 12,
10, 10, 8, 13, 14, 10,
10, 10, 11, 13, 11, 12,
14, 10, 10, 7, 7, 7,
9, 9, 9, 9, 9, 10,
7, 9, 9, 7, 7, 7,
10, 10, 11, 10, 10, 10,
7, 10, 10, 6, 11, 11,
8, 9, 10, 11, 12, 10,
12, 12, 9, 9, 11, 10,
9, 13, 13, 11, 12, 12,
12, 9, 13, 13, 10, 10,
9, 12, 13, 12, 11, 12,
12, 9, 13, 14, 6, 11,
11, 9, 8, 10, 12, 11,
10, 12, 12, 9, 9, 6,
14, 14, 11, 11, 14, 17,
16, 12, 15, 15, 11, 11,
10, 10, 9, 14, 14, 14,
14, 13, 13, 9, 14, 14,
10, 16, 15, 11, 12, 14,
14, 15, 12, 15, 16, 12,
12, 9, 15, 16, 12, 11,
13, 13, 14, 12, 15, 16,
12, 12, 10, 10, 9, 14,
14, 13, 13, 13, 13, 9,
13, 15, 7, 15, 14, 11,
11, 13, 15, 15, 14, 16,
17, 11, 11, 10, 10, 9,
14, 14, 13, 13, 13, 14,
9, 14, 14, 9, 15, 15,
12, 12, 12, 15, 16, 14,
15, 15, 12, 12, 10, 15,
16, 12, 12, 13, 15, 15,
14, 16, 14, 12, 11, 10,
10, 9, 13, 14, 13, 13,
13, 13, 9, 14, 14, 7,
7, 7, 10, 10, 10, 10,
10, 10, 7, 10, 10, 6,
11, 11, 10, 9, 10, 12,
12, 10, 11, 12, 8, 9,
10, 10, 9, 13, 13, 12,
12, 11, 12, 9, 13, 12,
10, 11, 9, 13, 14, 12,
12, 12, 11, 9, 13, 13,
6, 11, 11, 9, 9, 10,
12, 12, 10, 12, 12, 9,
9,
};
static const uint16_t on2avc_cb3_syms[ON2AVC_CB3_CODES] = {
0x0000, 0x0002, 0x000E, 0x0011, 0x001F, 0x0020,
0x0022, 0x002E, 0x00E0, 0x00E2, 0x00EE, 0x00F1,
0x00FF, 0x0101, 0x010F, 0x0110, 0x0112, 0x011E,
0x0121, 0x012F, 0x01E1, 0x01EF, 0x01F0, 0x01F2,
0x01FE, 0x0200, 0x0202, 0x020E, 0x0211, 0x021F,
0x0220, 0x0222, 0x022E, 0x02E0, 0x02E2, 0x02EE,
0x02F1, 0x02FF, 0x0E00, 0x0E02, 0x0E0E, 0x0E11,
0x0E1F, 0x0E20, 0x0E22, 0x0E2E, 0x0EE0, 0x0EE2,
0x0EEE, 0x0EF1, 0x0EFF, 0x0F01, 0x0F0F, 0x0F10,
0x0F12, 0x0F1E, 0x0F21, 0x0F2F, 0x0FE1, 0x0FEF,
0x0FF0, 0x0FF2, 0x0FFE, 0x1001, 0x100F, 0x1010,
0x1012, 0x101E, 0x1021, 0x102F, 0x10E1, 0x10EF,
0x10F0, 0x10F2, 0x10FE, 0x1100, 0x1102, 0x110E,
0x1111, 0x111F, 0x1120, 0x1122, 0x112E, 0x11E0,
0x11E2, 0x11EE, 0x11F1, 0x11FF, 0x1201, 0x120F,
0x1210, 0x1212, 0x121E, 0x1221, 0x122F, 0x12E1,
0x12EF, 0x12F0, 0x12F2, 0x12FE, 0x1E01, 0x1E0F,
0x1E10, 0x1E12, 0x1E1E, 0x1E21, 0x1E2F, 0x1EE1,
0x1EEF, 0x1EF0, 0x1EF2, 0x1EFE, 0x1F00, 0x1F02,
0x1F0E, 0x1F11, 0x1F1F, 0x1F20, 0x1F22, 0x1F2E,
0x1FE0, 0x1FE2, 0x1FEE, 0x1FF1, 0x1FFF, 0x2000,
0x2002, 0x200E, 0x2011, 0x201F, 0x2020, 0x2022,
0x202E, 0x20E0, 0x20E2, 0x20EE, 0x20F1, 0x20FF,
0x2101, 0x210F, 0x2110, 0x2112, 0x211E, 0x2121,
0x212F, 0x21E1, 0x21EF, 0x21F0, 0x21F2, 0x21FE,
0x2200, 0x2202, 0x220E, 0x2211, 0x221F, 0x2220,
0x2222, 0x222E, 0x22E0, 0x22E2, 0x22EE, 0x22F1,
0x22FF, 0x2E00, 0x2E02, 0x2E0E, 0x2E11, 0x2E1F,
0x2E20, 0x2E22, 0x2E2E, 0x2EE0, 0x2EE2, 0x2EEE,
0x2EF1, 0x2EFF, 0x2F01, 0x2F0F, 0x2F10, 0x2F12,
0x2F1E, 0x2F21, 0x2F2F, 0x2FE1, 0x2FEF, 0x2FF0,
0x2FF2, 0x2FFE, 0xE000, 0xE002, 0xE00E, 0xE011,
0xE01F, 0xE020, 0xE022, 0xE02E, 0xE0E0, 0xE0E2,
0xE0EE, 0xE0F1, 0xE0FF, 0xE101, 0xE10F, 0xE110,
0xE112, 0xE11E, 0xE121, 0xE12F, 0xE1E1, 0xE1EF,
0xE1F0, 0xE1F2, 0xE1FE, 0xE200, 0xE202, 0xE20E,
0xE211, 0xE21F, 0xE220, 0xE222, 0xE22E, 0xE2E0,
0xE2E2, 0xE2EE, 0xE2F1, 0xE2FF, 0xEE00, 0xEE02,
0xEE0E, 0xEE11, 0xEE1F, 0xEE20, 0xEE22, 0xEE2E,
0xEEE0, 0xEEE2, 0xEEEE, 0xEEF1, 0xEEFF, 0xEF01,
0xEF0F, 0xEF10, 0xEF12, 0xEF1E, 0xEF21, 0xEF2F,
0xEFE1, 0xEFEF, 0xEFF0, 0xEFF2, 0xEFFE, 0xF001,
0xF00F, 0xF010, 0xF012, 0xF01E, 0xF021, 0xF02F,
0xF0E1, 0xF0EF, 0xF0F0, 0xF0F2, 0xF0FE, 0xF100,
0xF102, 0xF10E, 0xF111, 0xF11F, 0xF120, 0xF122,
0xF12E, 0xF1E0, 0xF1E2, 0xF1EE, 0xF1F1, 0xF1FF,
0xF201, 0xF20F, 0xF210, 0xF212, 0xF21E, 0xF221,
0xF22F, 0xF2E1, 0xF2EF, 0xF2F0, 0xF2F2, 0xF2FE,
0xFE01, 0xFE0F, 0xFE10, 0xFE12, 0xFE1E, 0xFE21,
0xFE2F, 0xFEE1, 0xFEEF, 0xFEF0, 0xFEF2, 0xFEFE,
0xFF00, 0xFF02, 0xFF0E, 0xFF11, 0xFF1F, 0xFF20,
0xFF22, 0xFF2E, 0xFFE0, 0xFFE2, 0xFFEE, 0xFFF1,
0xFFFF,
};
#define ON2AVC_CB4_CODES 313
static const uint32_t on2avc_cb4_codes[ON2AVC_CB4_CODES] = {
0x000A, 0x013B, 0x0127, 0x0004, 0x0015, 0x012C,
0x065F, 0x08CD, 0x016A, 0x08E7, 0x06BA, 0x001B,
0x001D, 0x0018, 0x000A, 0x0002, 0x00C0, 0x012B,
0x00CE, 0x013C, 0x012A, 0x012D, 0x0020, 0x0128,
0x0121, 0x00FC, 0x066B, 0x0472, 0x010A, 0x004E,
0x06AE, 0x063F, 0x1ABF, 0x0B4E, 0x084E, 0x1ABE,
0x010E, 0x0094, 0x00C8, 0x0464, 0x069A, 0x00C9,
0x00FA, 0x041B, 0x2FDE, 0x08CB, 0x05B7, 0x1ABD,
0x066A, 0x008D, 0x00F8, 0x0003, 0x001A, 0x001E,
0x0120, 0x011E, 0x0138, 0x0125, 0x0170, 0x00C4,
0x000B, 0x013E, 0x00C5, 0x000C, 0x000E, 0x001C,
0x00FE, 0x009C, 0x010F, 0x0115, 0x009F, 0x008C,
0x0008, 0x002E, 0x00CF, 0x001C, 0x0110, 0x002F,
0x002C, 0x0002, 0x0116, 0x01FE, 0x032D, 0x00CB,
0x030D, 0x02EC, 0x002E, 0x0037, 0x00CF, 0x0086,
0x00C8, 0x032C, 0x031E, 0x01AC, 0x030C, 0x02ED,
0x035C, 0x013A, 0x02FF, 0x02E2, 0x00BE, 0x00CE,
0x0126, 0x0356, 0x034E, 0x0347, 0x025F, 0x0306,
0x02DA, 0x0168, 0x02E7, 0x020F, 0x0016, 0x0081,
0x0114, 0x0024, 0x001B, 0x010C, 0x03FE, 0x027F,
0x0084, 0x02F9, 0x0237, 0x0000, 0x001A, 0x011A,
0x05A6, 0x04A6, 0x00F9, 0x00CC, 0x05B6, 0x0BF6,
0x0B96, 0x0446, 0x08CE, 0x007F, 0x002C, 0x000E,
0x0080, 0x00C9, 0x00BA, 0x035E, 0x03EF, 0x0345,
0x02FE, 0x02FB, 0x02E6, 0x00D2, 0x021C, 0x0238,
0x06BB, 0x0B97, 0x007E, 0x01AA, 0x023A, 0x05BE,
0x031D, 0x094E, 0x1ABC, 0x0948, 0x088E, 0x02E4,
0x0273, 0x084C, 0x08CC, 0x094B, 0x02D2, 0x023B,
0x043E, 0x2FDF, 0x063E, 0x109B, 0x08CA, 0x08E6,
0x02DE, 0x02F4, 0x00D4, 0x002D, 0x00CA, 0x020E,
0x0344, 0x02FD, 0x030F, 0x02EE, 0x02D6, 0x0123,
0x02F7, 0x03ED, 0x009E, 0x05CA, 0x060E, 0x000D,
0x004D, 0x0444, 0x043F, 0x094A, 0x05FA, 0x109A,
0x0B4F, 0x00FD, 0x0117, 0x0096, 0x0082, 0x0122,
0x025D, 0x0304, 0x034C, 0x027B, 0x035B, 0x02FC,
0x00FC, 0x035F, 0x03EE, 0x088B, 0x0C1E, 0x088A,
0x02F5, 0x0272, 0x17EE, 0x0C1F, 0x084F, 0x088F,
0x069B, 0x0949, 0x023F, 0x02E3, 0x07FE, 0x041A,
0x0B7E, 0x027A, 0x0336, 0x07FF, 0x08CF, 0x094F,
0x065E, 0x0B7F, 0x02DD, 0x0212, 0x01FB, 0x00C6,
0x0095, 0x00D0, 0x023E, 0x025C, 0x02FC, 0x032E,
0x025E, 0x021E, 0x00BC, 0x021D, 0x035A, 0x0007,
0x000F, 0x0006, 0x00C2, 0x000C, 0x00BD, 0x00CD,
0x0113, 0x0118, 0x001D, 0x00CA, 0x008E, 0x0014,
0x010D, 0x0085, 0x0001, 0x003E, 0x008F, 0x0236,
0x030E, 0x00FF, 0x025E, 0x0337, 0x000A, 0x0026,
0x010B, 0x009D, 0x012E, 0x025F, 0x02EF, 0x0305,
0x02DC, 0x027E, 0x02FE, 0x0124, 0x034F, 0x003E,
0x004F, 0x00BC, 0x016C, 0x02D7, 0x03EC, 0x02FA,
0x02F8, 0x02F6, 0x01FA, 0x00CC, 0x02FF, 0x0334,
0x001E, 0x004C, 0x0112, 0x0036, 0x0022, 0x00FE,
0x031C, 0x0346, 0x0108, 0x020C, 0x001E, 0x0012,
0x0026,
};
static const uint8_t on2avc_cb4_bits[ON2AVC_CB4_CODES] = {
4, 9, 9, 6, 6, 9,
11, 12, 9, 12, 11, 6,
5, 6, 6, 6, 8, 9,
8, 9, 9, 9, 6, 9,
9, 9, 11, 11, 9, 9,
11, 11, 13, 12, 12, 13,
9, 9, 9, 11, 11, 9,
9, 12, 14, 12, 11, 13,
11, 9, 9, 6, 6, 6,
9, 9, 9, 9, 9, 8,
6, 9, 8, 6, 6, 6,
8, 9, 9, 9, 9, 9,
6, 9, 8, 5, 9, 9,
6, 7, 9, 9, 10, 9,
10, 10, 7, 6, 9, 9,
8, 10, 10, 9, 10, 10,
10, 9, 11, 10, 9, 9,
9, 10, 10, 10, 10, 10,
10, 9, 10, 11, 6, 9,
9, 7, 7, 9, 10, 10,
9, 10, 10, 7, 7, 9,
11, 11, 9, 9, 11, 12,
12, 11, 12, 12, 9, 9,
9, 8, 8, 10, 11, 10,
11, 10, 10, 8, 11, 10,
11, 12, 12, 9, 10, 11,
10, 12, 13, 12, 12, 10,
10, 12, 12, 12, 10, 10,
12, 14, 11, 13, 12, 12,
10, 10, 8, 9, 8, 11,
10, 11, 10, 10, 10, 9,
10, 11, 9, 11, 11, 9,
9, 11, 12, 12, 11, 13,
12, 9, 9, 9, 9, 9,
11, 10, 10, 10, 10, 11,
8, 10, 11, 12, 12, 12,
10, 10, 13, 12, 12, 12,
11, 12, 10, 10, 11, 12,
12, 10, 10, 11, 12, 12,
11, 12, 10, 10, 9, 8,
9, 8, 10, 11, 10, 10,
11, 11, 8, 11, 10, 6,
6, 6, 8, 9, 9, 9,
9, 9, 6, 9, 9, 6,
9, 9, 7, 6, 9, 10,
10, 9, 10, 10, 7, 7,
9, 9, 9, 11, 10, 10,
10, 10, 10, 9, 10, 11,
9, 9, 9, 10, 11, 10,
10, 10, 9, 8, 10, 10,
5, 9, 9, 6, 7, 9,
10, 10, 9, 11, 10, 7,
6,
};
static const uint16_t on2avc_cb4_syms[ON2AVC_CB4_CODES] = {
0x0000, 0x0002, 0x000E, 0x0011, 0x001F, 0x0020,
0x0022, 0x002E, 0x00E0, 0x00E2, 0x00EE, 0x00F1,
0x00FF, 0x0101, 0x010F, 0x0110, 0x0112, 0x011E,
0x0121, 0x012F, 0x01E1, 0x01EF, 0x01F0, 0x01F2,
0x01FE, 0x0200, 0x0202, 0x020E, 0x0211, 0x021F,
0x0220, 0x0222, 0x022E, 0x02E0, 0x02E2, 0x02EE,
0x02F1, 0x02FF, 0x0E00, 0x0E02, 0x0E0E, 0x0E11,
0x0E1F, 0x0E20, 0x0E22, 0x0E2E, 0x0EE0, 0x0EE2,
0x0EEE, 0x0EF1, 0x0EFF, 0x0F01, 0x0F0F, 0x0F10,
0x0F12, 0x0F1E, 0x0F21, 0x0F2F, 0x0FE1, 0x0FEF,
0x0FF0, 0x0FF2, 0x0FFE, 0x1001, 0x100F, 0x1010,
0x1012, 0x101E, 0x1021, 0x102F, 0x10E1, 0x10EF,
0x10F0, 0x10F2, 0x10FE, 0x1100, 0x1102, 0x110E,
0x1111, 0x111F, 0x1120, 0x1122, 0x112E, 0x11E0,
0x11E2, 0x11EE, 0x11F1, 0x11FF, 0x1201, 0x120F,
0x1210, 0x1212, 0x121E, 0x1221, 0x122F, 0x12E1,
0x12EF, 0x12F0, 0x12F2, 0x12FE, 0x1E01, 0x1E0F,
0x1E10, 0x1E12, 0x1E1E, 0x1E21, 0x1E2F, 0x1EE1,
0x1EEF, 0x1EF0, 0x1EF2, 0x1EFE, 0x1F00, 0x1F02,
0x1F0E, 0x1F11, 0x1F1F, 0x1F20, 0x1F22, 0x1F2E,
0x1FE0, 0x1FE2, 0x1FEE, 0x1FF1, 0x1FFF, 0x2000,
0x2002, 0x200E, 0x2011, 0x201F, 0x2020, 0x2022,
0x202E, 0x20E0, 0x20E2, 0x20EE, 0x20F1, 0x20FF,
0x2101, 0x210F, 0x2110, 0x2112, 0x211E, 0x2121,
0x212F, 0x21E1, 0x21EF, 0x21F0, 0x21F2, 0x21FE,
0x2200, 0x2202, 0x220E, 0x2211, 0x221F, 0x2220,
0x2222, 0x222E, 0x22E0, 0x22E2, 0x22EE, 0x22F1,
0x22FF, 0x2E00, 0x2E02, 0x2E0E, 0x2E11, 0x2E1F,
0x2E20, 0x2E22, 0x2E2E, 0x2EE0, 0x2EE2, 0x2EEE,
0x2EF1, 0x2EFF, 0x2F01, 0x2F0F, 0x2F10, 0x2F12,
0x2F1E, 0x2F21, 0x2F2F, 0x2FE1, 0x2FEF, 0x2FF0,
0x2FF2, 0x2FFE, 0xE000, 0xE002, 0xE00E, 0xE011,
0xE01F, 0xE020, 0xE022, 0xE02E, 0xE0E0, 0xE0E2,
0xE0EE, 0xE0F1, 0xE0FF, 0xE101, 0xE10F, 0xE110,
0xE112, 0xE11E, 0xE121, 0xE12F, 0xE1E1, 0xE1EF,
0xE1F0, 0xE1F2, 0xE1FE, 0xE200, 0xE202, 0xE20E,
0xE211, 0xE21F, 0xE220, 0xE222, 0xE22E, 0xE2E0,
0xE2E2, 0xE2EE, 0xE2F1, 0xE2FF, 0xEE00, 0xEE02,
0xEE0E, 0xEE11, 0xEE1F, 0xEE20, 0xEE22, 0xEE2E,
0xEEE0, 0xEEE2, 0xEEEE, 0xEEF1, 0xEEFF, 0xEF01,
0xEF0F, 0xEF10, 0xEF12, 0xEF1E, 0xEF21, 0xEF2F,
0xEFE1, 0xEFEF, 0xEFF0, 0xEFF2, 0xEFFE, 0xF001,
0xF00F, 0xF010, 0xF012, 0xF01E, 0xF021, 0xF02F,
0xF0E1, 0xF0EF, 0xF0F0, 0xF0F2, 0xF0FE, 0xF100,
0xF102, 0xF10E, 0xF111, 0xF11F, 0xF120, 0xF122,
0xF12E, 0xF1E0, 0xF1E2, 0xF1EE, 0xF1F1, 0xF1FF,
0xF201, 0xF20F, 0xF210, 0xF212, 0xF21E, 0xF221,
0xF22F, 0xF2E1, 0xF2EF, 0xF2F0, 0xF2F2, 0xF2FE,
0xFE01, 0xFE0F, 0xFE10, 0xFE12, 0xFE1E, 0xFE21,
0xFE2F, 0xFEE1, 0xFEEF, 0xFEF0, 0xFEF2, 0xFEFE,
0xFF00, 0xFF02, 0xFF0E, 0xFF11, 0xFF1F, 0xFF20,
0xFF22, 0xFF2E, 0xFFE0, 0xFFE2, 0xFFEE, 0xFFF1,
0xFFFF,
};
#define ON2AVC_CB5_CODES 1201
static const uint32_t on2avc_cb5_codes[ON2AVC_CB5_CODES] = {
0x00000, 0x000D6, 0x000E2, 0x00044, 0x0009E, 0x0009A,
0x0003A, 0x004E6, 0x00A29, 0x007FE, 0x0024A, 0x004EE,
0x00496, 0x001EE, 0x001C8, 0x008FA, 0x0050F, 0x001EF,
0x00486, 0x00906, 0x00904, 0x0003E, 0x00094, 0x000A6,
0x00046, 0x00061, 0x0012A, 0x0020D, 0x00060, 0x00066,
0x00452, 0x00692, 0x0087E, 0x00242, 0x0050C, 0x008BE,
0x0024C, 0x0045A, 0x0025A, 0x001C6, 0x002EE, 0x00294,
0x006CE, 0x001EC, 0x00492, 0x00690, 0x00055, 0x00474,
0x0063E, 0x00524, 0x04802, 0x04DC5, 0x00DEF, 0x01A62,
0x00E6A, 0x00A7F, 0x027FB, 0x034B5, 0x036C5, 0x00A3A,
0x036C6, 0x0219B, 0x00296, 0x0090F, 0x027FA, 0x028C8,
0x0052A, 0x0127E, 0x0598E, 0x034B4, 0x00C78, 0x0146E,
0x00F5F, 0x00BAA, 0x00432, 0x0FF63, 0x0598F, 0x0091C,
0x00257, 0x0240B, 0x014E6, 0x00E6B, 0x05173, 0x01647,
0x007F9, 0x022F3, 0x04DC6, 0x022F2, 0x0087F, 0x036C7,
0x01AB9, 0x00C79, 0x06944, 0x043C6, 0x0043E, 0x00218,
0x031C4, 0x014E5, 0x0093E, 0x0FF62, 0x3FAE0, 0x00328,
0x00228, 0x01428, 0x03FEA, 0x007A3, 0x034B3, 0x0D23B,
0x00B29, 0x01AB8, 0x028C7, 0x0598D, 0x00B28, 0x0149B,
0x0149A, 0x008EE, 0x027F9, 0x07FC0, 0x00CFE, 0x0025E,
0x01CBB, 0x026EF, 0x00512, 0x0297B, 0x05172, 0x00D36,
0x00FCA, 0x01EA5, 0x00D86, 0x01FC5, 0x031C3, 0x02CD6,
0x00276, 0x01F8A, 0x04801, 0x00B2A, 0x00329, 0x00FC9,
0x03F0C, 0x00D35, 0x01971, 0x04DC4, 0x036C4, 0x00A4F,
0x00FEA, 0x01FC4, 0x0122A, 0x00058, 0x001CA, 0x0013A,
0x0005E, 0x00054, 0x0053E, 0x0039E, 0x006C6, 0x00284,
0x001C2, 0x0087A, 0x0020E, 0x0050E, 0x006F2, 0x00288,
0x0029E, 0x00457, 0x006F9, 0x005D3, 0x00248, 0x008F7,
0x00068, 0x0069D, 0x00497, 0x0005F, 0x0091D, 0x00738,
0x00057, 0x0005A, 0x00A3E, 0x009CF, 0x00D3E, 0x00D87,
0x00C6B, 0x00CBD, 0x003F6, 0x00A74, 0x00C6E, 0x0049C,
0x012FE, 0x0137F, 0x00DBB, 0x010DA, 0x00CAB, 0x0127F,
0x00056, 0x00A2A, 0x0083E, 0x00040, 0x00BAE, 0x00BA2,
0x0012E, 0x006F0, 0x0096E, 0x0022C, 0x00FDE, 0x011EB,
0x01ABE, 0x007EA, 0x014E7, 0x011F2, 0x00256, 0x009FC,
0x0297C, 0x01C13, 0x006F4, 0x00B26, 0x0144E, 0x021EE,
0x001C0, 0x00707, 0x00B3F, 0x00244, 0x00E0B, 0x02CD8,
0x034B6, 0x00B2B, 0x00914, 0x027FD, 0x028CA, 0x01396,
0x014EB, 0x01972, 0x01B71, 0x013BE, 0x00D9A, 0x00D3F,
0x009C9, 0x014EA, 0x031C6, 0x022F5, 0x027FC, 0x0240D,
0x0297D, 0x006F5, 0x02CD7, 0x0396A, 0x0018C, 0x04DC7,
0x028CB, 0x007E7, 0x0D23C, 0x043C8, 0x008FC, 0x00C7A,
0x031C7, 0x018EB, 0x0396B, 0x0D23D, 0x036C9, 0x01973,
0x018EA, 0x07FC1, 0x08FD8, 0x01673, 0x0067C, 0x027FE,
0x036C8, 0x004BE, 0x08FD9, 0x07FC2, 0x009B6, 0x00148,
0x026F0, 0x05174, 0x0071C, 0x07279, 0x08FD7, 0x005D4,
0x00E0A, 0x01A63, 0x01F8B, 0x0114E, 0x01ABA, 0x05990,
0x043C7, 0x01BEE, 0x3FAE1, 0x1FE94, 0x01CBE, 0x006F3,
0x018E7, 0x0240C, 0x006FA, 0x03967, 0x08FD6, 0x0045B,
0x00DBA, 0x01A65, 0x03969, 0x00CFF, 0x0067E, 0x026F1,
0x028C9, 0x022F4, 0x018D2, 0x01B70, 0x011EA, 0x00BBF,
0x00B3E, 0x0144D, 0x00D3D, 0x0146F, 0x01A64, 0x01FFF,
0x01B6F, 0x03968, 0x024EB, 0x00656, 0x031C5, 0x0727A,
0x0003C, 0x00D22, 0x00D99, 0x0021A, 0x00706, 0x007EE,
0x0013E, 0x00CBC, 0x01C12, 0x01A66, 0x0022E, 0x00E77,
0x01672, 0x004D8, 0x006D3, 0x01CBF, 0x01ABB, 0x008BF,
0x00E76, 0x01BEF, 0x01FC6, 0x001B2, 0x00736, 0x008FB,
0x0021D, 0x000D7, 0x04804, 0x06948, 0x00D37, 0x0396E,
0x06949, 0x0120A, 0x03F0F, 0x1437E, 0x043CB, 0x028D0,
0x0A2BE, 0x08FDD, 0x05996, 0x022F6, 0x1FE96, 0x0FF64,
0x026F2, 0x028CF, 0x04DCB, 0x03F0E, 0x00A3F, 0x05178,
0x05995, 0x00BA3, 0x00A4A, 0x07FC8, 0x0727E, 0x007AA,
0x003D0, 0x0599A, 0x02CDB, 0x034BB, 0x07FC9, 0x0D261,
0x04805, 0x04806, 0x0727F, 0x022F7, 0x018FE, 0x0240F,
0x02CDA, 0x031CB, 0x04DCC, 0x034BA, 0x036CB, 0x0052B,
0x05997, 0x036CE, 0x00907, 0x08FDF, 0x043CD, 0x00E7E,
0x0517A, 0x04DCD, 0x0197E, 0x0A2BF, 0x028D1, 0x04807,
0x028D2, 0x04808, 0x0D262, 0x024ED, 0x01ABF, 0x072C0,
0x1437F, 0x034BE, 0x05179, 0x144F0, 0x072C1, 0x029C1,
0x08FDE, 0x043CC, 0x023AE, 0x00A3B, 0x1FE97, 0x08FE1,
0x0142A, 0x006AC, 0x04809, 0x024EE, 0x00C7B, 0x3FAE3,
0x08FE2, 0x01F8F, 0x0A2C0, 0x023AF, 0x08FE3, 0x02416,
0x072C2, 0x0FF65, 0x00FCB, 0x08FE0, 0x144F1, 0x01EA6,
0x00590, 0x04DCE, 0x0396F, 0x01FC7, 0x05991, 0x3FAE2,
0x0096C, 0x00657, 0x034B8, 0x05992, 0x0240E, 0x0A2BC,
0x08FDA, 0x0114F, 0x0727C, 0x06945, 0x05175, 0x01B72,
0x0727B, 0x07FC3, 0x01472, 0x0A2BB, 0x0D23E, 0x00CBE,
0x00636, 0x034B7, 0x043C9, 0x008AA, 0x08FDB, 0x0D23F,
0x02852, 0x0727D, 0x05994, 0x00E3E, 0x031CA, 0x06947,
0x04DC8, 0x02CD9, 0x1FE95, 0x0D260, 0x028CD, 0x024EC,
0x04803, 0x07FC4, 0x01976, 0x028CC, 0x05993, 0x07FC5,
0x027FF, 0x06946, 0x03FEB, 0x03F0D, 0x0096D, 0x08FDC,
0x04DC9, 0x0097E, 0x003D3, 0x0A2BD, 0x0286E, 0x07FC6,
0x07FC7, 0x034B9, 0x029C0, 0x01F8E, 0x04DCA, 0x05177,
0x01977, 0x03FEE, 0x0297E, 0x028CE, 0x036CA, 0x05176,
0x0297F, 0x00596, 0x02853, 0x043CA, 0x0090E, 0x144FA,
0x0D26A, 0x008AB, 0x000CE, 0x072C3, 0x034BF, 0x02417,
0x3FAF0, 0x3FAEF, 0x026F3, 0x1FEA0, 0x3FAF1, 0x1FE9F,
0x0D269, 0x0FF6A, 0x1FE9D, 0x029C6, 0x3FAEE, 0x1FE9E,
0x036CF, 0x001AA, 0x0480E, 0x0A2C7, 0x000A0, 0x07FCE,
0x3FAF4, 0x008F8, 0x3FAF5, 0x144FB, 0x00A16, 0x024EF,
0x04DD3, 0x0694E, 0x1FEA2, 0x3FAF7, 0x3FAF6, 0x0D26B,
0x04DD2, 0x3FAF2, 0x1FEA1, 0x08FE6, 0x0122B, 0x08FE7,
0x0480F, 0x00C6F, 0x0FF6B, 0x3FAF3, 0x008EF, 0x00C7E,
0x3FAF8, 0x1FEA4, 0x00DF6, 0x00362, 0x0694F, 0x0599B,
0x0142B, 0x1FEA6, 0x1FEA5, 0x03FEF, 0x07FCF, 0x1FEA7,
0x3FAF9, 0x029C7, 0x0D26E, 0x144FE, 0x01C3E, 0x1FEA3,
0x0A2CA, 0x01CE6, 0x0049E, 0x043CF, 0x04EFE, 0x0036B,
0x3FAFE, 0x11F32, 0x01EAE, 0x1FEAA, 0x0D26F, 0x049D2,
0x02EAE, 0x0356A, 0x08FEA, 0x07ABE, 0x08FEB, 0x3FAFF,
0x1FEAB, 0x0292E, 0x144FF, 0x3FAFA, 0x08FE8, 0x01EA7,
0x0B27A, 0x0A2CB, 0x0164E, 0x3FAFB, 0x08FE9, 0x021EF,
0x00A76, 0x1FE9A, 0x144F2, 0x029C3, 0x3FAE8, 0x3FAE7,
0x014EE, 0x03F12, 0x0D264, 0x08FE4, 0x0FF67, 0x1FE9B,
0x144F3, 0x0FF66, 0x0D263, 0x3FAE5, 0x3FAE4, 0x029C2,
0x031FE, 0x0A2C1, 0x1FE98, 0x01FD6, 0x3FAE6, 0x1FE99,
0x01473, 0x00D9B, 0x144F5, 0x144F4, 0x00FD2, 0x0036A,
0x043CE, 0x03F13, 0x0517B, 0x0D267, 0x144F6, 0x01756,
0x0A2C2, 0x144F8, 0x144F7, 0x0480A, 0x0FF68, 0x0D265,
0x01B73, 0x0D266, 0x3FAE9, 0x01A67, 0x00493, 0x0694B,
0x0694A, 0x00082, 0x03F7E, 0x04DCF, 0x009B7, 0x3FAEB,
0x1FE9C, 0x0071D, 0x028D3, 0x0D268, 0x0A2C5, 0x0A2C6,
0x3FAED, 0x3FAEC, 0x08FE5, 0x07FCA, 0x3FAEA, 0x144F9,
0x0A2C3, 0x00D3C, 0x07FCB, 0x0480B, 0x009CA, 0x0FF69,
0x0A2C4, 0x0091E, 0x007EB, 0x1FE85, 0x0FF56, 0x0091F,
0x0019E, 0x0693A, 0x0593E, 0x020FC, 0x1FE86, 0x0FF57,
0x027F4, 0x0146A, 0x04BFC, 0x0CBF9, 0x0CBF8, 0x1FE83,
0x3F7F5, 0x08F9E, 0x3F7F6, 0x1FE84, 0x036C0, 0x00098,
0x0593C, 0x071F9, 0x0006E, 0x0593F, 0x03963, 0x00A3C,
0x13BFD, 0x1FE89, 0x007F2, 0x00FD3, 0x03F08, 0x03D5E,
0x034A9, 0x13BFF, 0x13BFE, 0x071FA, 0x011E8, 0x1FE87,
0x3F7F7, 0x0FF58, 0x01B66, 0x07FB8, 0x05168, 0x0070E,
0x0FF59, 0x1FE88, 0x009B3, 0x00BBC, 0x1FE8B, 0x3F7F8,
0x00FE6, 0x004FC, 0x0CBFC, 0x03FE6, 0x022F0, 0x1FE8C,
0x0CBFD, 0x01CE7, 0x08F9F, 0x0FF5A, 0x071FD, 0x1FE8A,
0x071FB, 0x14378, 0x01AB4, 0x0CBFB, 0x0CBFA, 0x036C1,
0x0037E, 0x05980, 0x071FC, 0x00D5E, 0x3F7FC, 0x08FD0,
0x014EF, 0x3F7FE, 0x3F7FD, 0x01CFE, 0x01FBE, 0x05982,
0x1437A, 0x04BFD, 0x1FE8E, 0x3F7FF, 0x071FF, 0x0FF5B,
0x1FE8D, 0x3F7F9, 0x14379, 0x047F7, 0x05981, 0x071FE,
0x014E2, 0x3F7FB, 0x3F7FA, 0x02CCE, 0x0037F, 0x0A27E,
0x3D5FA, 0x02CCC, 0x1FE80, 0x1FD7E, 0x01496, 0x018E4,
0x3D5FB, 0x05164, 0x070FD, 0x3D5FC, 0x11F33, 0x0277E,
0x0FF54, 0x08F98, 0x07FB6, 0x070FC, 0x026E8, 0x07FB7,
0x034A6, 0x0356B, 0x3D5F9, 0x3D5F8, 0x034A8, 0x0114C,
0x3F7F0, 0x3D5FF, 0x00C74, 0x0024D, 0x05167, 0x049D3,
0x0292F, 0x08F9C, 0x3F7F1, 0x01CB6, 0x03962, 0x070FF,
0x08F9D, 0x08F9A, 0x3D5FD, 0x0A2B0, 0x024E8, 0x070FE,
0x3D5FE, 0x01A5E, 0x00392, 0x08F9B, 0x05166, 0x00099,
0x06939, 0x06938, 0x009B2, 0x0C7FE, 0x3F7F4, 0x007F7,
0x011D6, 0x02EAF, 0x028BE, 0x071F8, 0x0C7FF, 0x1FE82,
0x047F6, 0x06936, 0x3F7F3, 0x3F7F2, 0x1FE81, 0x026EA,
0x0C7FC, 0x0B27B, 0x009FA, 0x0C7FD, 0x13BFC, 0x007A8,
0x000D4, 0x08FD1, 0x0D234, 0x00D34, 0x07274, 0x05988,
0x00F5C, 0x0516D, 0x0516E, 0x0516C, 0x036C3, 0x0A2B4,
0x0D235, 0x036C2, 0x034AC, 0x0D233, 0x07FBA, 0x034AB,
0x0A2B3, 0x1437D, 0x1437C, 0x00B3B, 0x07273, 0x0516B,
0x00D84, 0x009FB, 0x0693F, 0x0598A, 0x007F8, 0x005D6,
0x047FB, 0x024EA, 0x026EC, 0x0516F, 0x047FC, 0x031A7,
0x01397, 0x026ED, 0x02975, 0x02CD1, 0x034AD, 0x07275,
0x027F6, 0x05989, 0x043C1, 0x0693E, 0x00454, 0x034AE,
0x043C2, 0x007F6, 0x0A2B7, 0x07FBB, 0x02408, 0x0598B,
0x047FD, 0x01B6A, 0x04DC1, 0x0FF5F, 0x07FBC, 0x01B6B,
0x07277, 0x0D236, 0x020FD, 0x01B68, 0x0A2B5, 0x0FF5E,
0x02976, 0x043C3, 0x02977, 0x0A2B6, 0x012DE, 0x07276,
0x03FE9, 0x01B69, 0x00A4C, 0x0FF60, 0x1FE93, 0x013BC,
0x00592, 0x02978, 0x02CD3, 0x00D8E, 0x0D237, 0x05170,
0x01FC1, 0x028C2, 0x06941, 0x0D238, 0x07278, 0x034AF,
0x06940, 0x00E5E, 0x08FD2, 0x07FBD, 0x020FE, 0x007E6,
0x043C4, 0x02CD2, 0x0166E, 0x0CBFF, 0x0CBFE, 0x00A5C,
0x005D0, 0x026EB, 0x047F8, 0x01F88, 0x1FE90, 0x1FE8F,
0x00C68, 0x021EC, 0x0A2B1, 0x0D230, 0x04BFE, 0x0693B,
0x028BF, 0x028C0, 0x07270, 0x0FF5C, 0x00E08, 0x00360,
0x0436C, 0x05983, 0x009BE, 0x0FF5D, 0x1FE91, 0x01A60,
0x04BFF, 0x0A2B2, 0x0436E, 0x03F0A, 0x07FB9, 0x05984,
0x01FC0, 0x1FE92, 0x1437B, 0x01646, 0x03F09, 0x0693C,
0x027F5, 0x047F9, 0x034AA, 0x0D231, 0x0436D, 0x01AB6,
0x047FA, 0x07271, 0x00CFA, 0x006CF, 0x07272, 0x05986,
0x00B3A, 0x00654, 0x028C1, 0x0436F, 0x02CD0, 0x03FE8,
0x05987, 0x043C0, 0x0146B, 0x02974, 0x031A6, 0x02CCF,
0x03964, 0x04DC0, 0x0516A, 0x05985, 0x05169, 0x02406,
0x003D6, 0x0D232, 0x0693D, 0x0005C, 0x006F6, 0x0086E,
0x00062, 0x0005B, 0x006F1, 0x007E0, 0x00D98, 0x00BBE,
0x00E72, 0x00D8F, 0x004DA, 0x0137B, 0x0137A, 0x00386,
0x00A7E, 0x00C6A, 0x00CBA, 0x00F5E, 0x00F5D, 0x013BD,
0x00064, 0x009CE, 0x008EC, 0x0003B, 0x00F56, 0x00CAA,
0x00246, 0x008ED, 0x0086C, 0x001ED, 0x00C77, 0x0240A,
0x01B6D, 0x0086F, 0x02CD5, 0x01FC3, 0x0073E, 0x005D2,
0x01970, 0x014E4, 0x00456, 0x00B22, 0x0114D, 0x02198,
0x00138, 0x0069C, 0x00737, 0x0020C, 0x00A4E, 0x04DC2,
0x018E6, 0x00E1E, 0x006D2, 0x047FF, 0x02979, 0x01FFE,
0x04800, 0x021ED, 0x028C6, 0x00917, 0x01671, 0x01CFF,
0x00CFB, 0x00FE7, 0x00A1A, 0x0146D, 0x01670, 0x01B6E,
0x0137E, 0x006D1, 0x01FFD, 0x028C5, 0x00176, 0x05171,
0x0219A, 0x0023C, 0x0A2BA, 0x043C5, 0x006F8, 0x006DF,
0x01EA4, 0x01CBA, 0x027F8, 0x0FF61, 0x08FD5, 0x0177B,
0x02199, 0x0D23A, 0x03966, 0x0297A, 0x00A38, 0x0177A,
0x01A61, 0x00597, 0x07FBF, 0x04DC3, 0x007F4, 0x00196,
0x034B0, 0x03F0B, 0x008F6, 0x0598C, 0x08FD3, 0x003D2,
0x006D0, 0x01FC2, 0x031C1, 0x026EE, 0x0A2B9, 0x0D239,
0x0175F, 0x0175E, 0x031C0, 0x06942, 0x01FF6, 0x00A3D,
0x0166F, 0x027F7, 0x009C8, 0x0A2B8, 0x07FBE, 0x00734,
0x00FC6, 0x03965, 0x06943, 0x010CF, 0x006DE, 0x02CD4,
0x08FD4, 0x034B2, 0x01CB8, 0x028C3, 0x01FFC, 0x0041E,
0x0146C, 0x01B6C, 0x00C76, 0x00B3C, 0x010CE, 0x022F1,
0x0144C, 0x012DF, 0x01436, 0x0073A, 0x034B1, 0x031C2,
0x00042, 0x00DEE, 0x00B3D, 0x001CC, 0x00A17, 0x007E8,
0x0021C, 0x00A28, 0x01CB9, 0x02409, 0x00916, 0x020FF,
0x047FE, 0x00726, 0x00238, 0x011E9, 0x01AB7, 0x0071E,
0x00FC8, 0x028C4, 0x00D85, 0x00239, 0x008EA, 0x007A2,
0x0012C,
};
static const uint8_t on2avc_cb5_bits[ON2AVC_CB5_CODES] = {
1, 8, 8, 7, 8, 8,
6, 11, 12, 11, 10, 11,
11, 9, 9, 12, 11, 9,
11, 12, 12, 6, 8, 8,
7, 7, 9, 10, 7, 7,
11, 11, 12, 10, 11, 12,
10, 11, 10, 9, 10, 10,
11, 9, 11, 11, 7, 11,
11, 11, 15, 15, 12, 13,
12, 12, 14, 14, 14, 12,
14, 14, 10, 12, 14, 14,
11, 13, 15, 14, 12, 13,
12, 12, 11, 16, 15, 12,
10, 14, 13, 12, 15, 13,
11, 14, 15, 14, 12, 14,
13, 12, 15, 15, 11, 10,
14, 13, 12, 16, 18, 10,
10, 13, 14, 11, 14, 16,
12, 13, 14, 15, 12, 13,
13, 12, 14, 15, 12, 10,
13, 14, 11, 14, 15, 12,
12, 13, 12, 13, 14, 14,
10, 13, 15, 12, 10, 12,
14, 12, 13, 15, 14, 12,
12, 13, 13, 7, 9, 9,
7, 7, 11, 10, 11, 10,
9, 12, 10, 11, 11, 10,
10, 11, 11, 11, 10, 12,
7, 11, 11, 7, 12, 11,
7, 7, 12, 12, 12, 12,
12, 12, 10, 12, 12, 11,
13, 13, 12, 13, 12, 13,
7, 12, 12, 7, 12, 12,
9, 11, 12, 10, 12, 13,
13, 11, 13, 13, 10, 12,
14, 13, 11, 12, 13, 14,
9, 11, 12, 10, 12, 14,
14, 12, 12, 14, 14, 13,
13, 13, 13, 13, 12, 12,
12, 13, 14, 14, 14, 14,
14, 11, 14, 14, 9, 15,
14, 11, 16, 15, 12, 12,
14, 13, 14, 16, 14, 13,
13, 15, 16, 13, 11, 14,
14, 11, 16, 15, 12, 9,
14, 15, 11, 15, 16, 11,
12, 13, 13, 13, 13, 15,
15, 13, 18, 17, 13, 11,
13, 14, 11, 14, 16, 11,
12, 13, 14, 12, 11, 14,
14, 14, 13, 13, 13, 12,
12, 13, 12, 13, 13, 13,
13, 14, 14, 11, 14, 15,
6, 12, 12, 10, 11, 11,
9, 12, 13, 13, 10, 12,
13, 11, 11, 13, 13, 12,
12, 13, 13, 9, 11, 12,
10, 8, 15, 15, 12, 14,
15, 13, 14, 17, 15, 14,
16, 16, 15, 14, 17, 16,
14, 14, 15, 14, 12, 15,
15, 12, 12, 15, 15, 11,
10, 15, 14, 14, 15, 16,
15, 15, 15, 14, 13, 14,
14, 14, 15, 14, 14, 11,
15, 14, 12, 16, 15, 12,
15, 15, 13, 16, 14, 15,
14, 15, 16, 14, 13, 15,
17, 14, 15, 17, 15, 14,
16, 15, 14, 12, 17, 16,
13, 11, 15, 14, 12, 18,
16, 13, 16, 14, 16, 14,
15, 16, 12, 16, 17, 13,
11, 15, 14, 13, 15, 18,
12, 11, 14, 15, 14, 16,
16, 13, 15, 15, 15, 13,
15, 15, 13, 16, 16, 12,
11, 14, 15, 12, 16, 16,
14, 15, 15, 12, 14, 15,
15, 14, 17, 16, 14, 14,
15, 15, 13, 14, 15, 15,
14, 15, 14, 14, 12, 16,
15, 12, 10, 16, 14, 15,
15, 14, 14, 13, 15, 15,
13, 14, 14, 14, 14, 15,
14, 11, 14, 15, 12, 17,
16, 12, 8, 15, 14, 14,
18, 18, 14, 17, 18, 17,
16, 16, 17, 14, 18, 17,
14, 9, 15, 16, 8, 15,
18, 12, 18, 17, 12, 14,
15, 15, 17, 18, 18, 16,
15, 18, 17, 16, 13, 16,
15, 12, 16, 18, 12, 12,
18, 17, 12, 10, 15, 15,
13, 17, 17, 14, 15, 17,
18, 14, 16, 17, 13, 17,
16, 13, 11, 15, 15, 10,
18, 17, 13, 17, 16, 15,
14, 14, 16, 15, 16, 18,
17, 14, 17, 18, 16, 13,
16, 16, 13, 18, 16, 14,
12, 17, 17, 14, 18, 18,
13, 14, 16, 16, 16, 17,
17, 16, 16, 18, 18, 14,
14, 16, 17, 13, 18, 17,
13, 12, 17, 17, 12, 10,
15, 14, 15, 16, 17, 13,
16, 17, 17, 15, 16, 16,
13, 16, 18, 13, 11, 15,
15, 8, 14, 15, 12, 18,
17, 11, 14, 16, 16, 16,
18, 18, 16, 15, 18, 17,
16, 12, 15, 15, 12, 16,
16, 12, 11, 17, 16, 12,
9, 15, 15, 14, 17, 16,
14, 13, 15, 16, 16, 17,
18, 16, 18, 17, 14, 8,
15, 15, 7, 15, 14, 12,
17, 17, 11, 12, 14, 14,
14, 17, 17, 15, 13, 17,
18, 16, 13, 15, 15, 11,
16, 17, 12, 12, 17, 18,
12, 11, 16, 14, 14, 17,
16, 13, 16, 16, 15, 17,
15, 17, 13, 16, 16, 14,
10, 15, 15, 12, 18, 16,
13, 18, 18, 13, 13, 15,
17, 15, 17, 18, 15, 16,
17, 18, 17, 15, 15, 15,
13, 18, 18, 14, 10, 16,
18, 14, 17, 17, 13, 13,
18, 15, 15, 18, 17, 14,
16, 16, 15, 15, 14, 15,
14, 14, 18, 18, 14, 13,
18, 18, 12, 10, 15, 15,
14, 16, 18, 13, 14, 15,
16, 16, 18, 16, 14, 15,
18, 13, 10, 16, 15, 8,
15, 15, 12, 16, 18, 11,
13, 14, 14, 15, 16, 17,
15, 15, 18, 18, 17, 14,
16, 16, 12, 16, 17, 11,
8, 16, 16, 12, 15, 15,
12, 15, 15, 15, 14, 16,
16, 14, 14, 16, 15, 14,
16, 17, 17, 12, 15, 15,
12, 12, 15, 15, 11, 11,
15, 14, 14, 15, 15, 14,
13, 14, 14, 14, 14, 15,
14, 15, 15, 15, 11, 14,
15, 11, 16, 15, 14, 15,
15, 13, 15, 16, 15, 13,
15, 16, 14, 13, 16, 16,
14, 15, 14, 16, 13, 15,
14, 13, 12, 16, 17, 13,
11, 14, 14, 12, 16, 15,
13, 14, 15, 16, 15, 14,
15, 12, 16, 15, 14, 11,
15, 14, 13, 16, 16, 12,
11, 14, 15, 13, 17, 17,
12, 14, 16, 16, 15, 15,
14, 14, 15, 16, 12, 10,
15, 15, 12, 16, 17, 13,
15, 16, 15, 14, 15, 15,
13, 17, 17, 13, 14, 15,
14, 15, 14, 16, 15, 13,
15, 15, 12, 11, 15, 15,
12, 11, 14, 15, 14, 14,
15, 15, 13, 14, 14, 14,
14, 15, 15, 15, 15, 14,
10, 16, 15, 7, 11, 12,
7, 7, 11, 11, 12, 12,
12, 12, 11, 13, 13, 10,
12, 12, 12, 12, 12, 13,
7, 12, 12, 6, 12, 12,
10, 12, 12, 9, 12, 14,
13, 12, 14, 13, 11, 11,
13, 13, 11, 12, 13, 14,
9, 11, 11, 10, 12, 15,
13, 12, 11, 15, 14, 13,
15, 14, 14, 12, 13, 13,
12, 12, 12, 13, 13, 13,
13, 11, 13, 14, 9, 15,
14, 10, 16, 15, 11, 11,
13, 13, 14, 16, 16, 13,
14, 16, 14, 14, 12, 13,
13, 11, 15, 15, 11, 9,
14, 14, 12, 15, 16, 10,
11, 13, 14, 14, 16, 16,
13, 13, 14, 15, 13, 12,
13, 14, 12, 16, 15, 11,
12, 14, 15, 13, 11, 14,
16, 14, 13, 14, 13, 11,
13, 13, 12, 12, 13, 14,
13, 13, 13, 11, 14, 14,
7, 12, 12, 9, 12, 11,
10, 12, 13, 14, 12, 14,
15, 11, 10, 13, 13, 11,
12, 14, 12, 10, 12, 11,
9,
};
static const uint16_t on2avc_cb5_syms[ON2AVC_CB5_CODES] = {
0x0000, 0x0002, 0x000E, 0x0011, 0x0013, 0x001D,
0x001F, 0x0020, 0x0022, 0x002E, 0x0031, 0x0033,
0x003D, 0x003F, 0x00D1, 0x00D3, 0x00DD, 0x00DF,
0x00E0, 0x00E2, 0x00EE, 0x00F1, 0x00F3, 0x00FD,
0x00FF, 0x0101, 0x0103, 0x010D, 0x010F, 0x0110,
0x0112, 0x011E, 0x0121, 0x0123, 0x012D, 0x012F,
0x0130, 0x0132, 0x013E, 0x01D0, 0x01D2, 0x01DE,
0x01E1, 0x01E3, 0x01ED, 0x01EF, 0x01F0, 0x01F2,
0x01FE, 0x0200, 0x0202, 0x020E, 0x0211, 0x0213,
0x021D, 0x021F, 0x0220, 0x0222, 0x022E, 0x0231,
0x0233, 0x023D, 0x023F, 0x02D1, 0x02D3, 0x02DD,
0x02DF, 0x02E0, 0x02E2, 0x02EE, 0x02F1, 0x02F3,
0x02FD, 0x02FF, 0x0301, 0x0303, 0x030D, 0x030F,
0x0310, 0x0312, 0x031E, 0x0321, 0x0323, 0x032D,
0x032F, 0x0330, 0x0332, 0x033E, 0x03D0, 0x03D2,
0x03DE, 0x03E1, 0x03E3, 0x03ED, 0x03EF, 0x03F0,
0x03F2, 0x03FE, 0x0D01, 0x0D03, 0x0D0D, 0x0D0F,
0x0D10, 0x0D12, 0x0D1E, 0x0D21, 0x0D23, 0x0D2D,
0x0D2F, 0x0D30, 0x0D32, 0x0D3E, 0x0DD0, 0x0DD2,
0x0DDE, 0x0DE1, 0x0DE3, 0x0DED, 0x0DEF, 0x0DF0,
0x0DF2, 0x0DFE, 0x0E00, 0x0E02, 0x0E0E, 0x0E11,
0x0E13, 0x0E1D, 0x0E1F, 0x0E20, 0x0E22, 0x0E2E,
0x0E31, 0x0E33, 0x0E3D, 0x0E3F, 0x0ED1, 0x0ED3,
0x0EDD, 0x0EDF, 0x0EE0, 0x0EE2, 0x0EEE, 0x0EF1,
0x0EF3, 0x0EFD, 0x0EFF, 0x0F01, 0x0F03, 0x0F0D,
0x0F0F, 0x0F10, 0x0F12, 0x0F1E, 0x0F21, 0x0F23,
0x0F2D, 0x0F2F, 0x0F30, 0x0F32, 0x0F3E, 0x0FD0,
0x0FD2, 0x0FDE, 0x0FE1, 0x0FE3, 0x0FED, 0x0FEF,
0x0FF0, 0x0FF2, 0x0FFE, 0x1001, 0x1003, 0x100D,
0x100F, 0x1010, 0x1012, 0x101E, 0x1021, 0x1023,
0x102D, 0x102F, 0x1030, 0x1032, 0x103E, 0x10D0,
0x10D2, 0x10DE, 0x10E1, 0x10E3, 0x10ED, 0x10EF,
0x10F0, 0x10F2, 0x10FE, 0x1100, 0x1102, 0x110E,
0x1111, 0x1113, 0x111D, 0x111F, 0x1120, 0x1122,
0x112E, 0x1131, 0x1133, 0x113D, 0x113F, 0x11D1,
0x11D3, 0x11DD, 0x11DF, 0x11E0, 0x11E2, 0x11EE,
0x11F1, 0x11F3, 0x11FD, 0x11FF, 0x1201, 0x1203,
0x120D, 0x120F, 0x1210, 0x1212, 0x121E, 0x1221,
0x1223, 0x122D, 0x122F, 0x1230, 0x1232, 0x123E,
0x12D0, 0x12D2, 0x12DE, 0x12E1, 0x12E3, 0x12ED,
0x12EF, 0x12F0, 0x12F2, 0x12FE, 0x1300, 0x1302,
0x130E, 0x1311, 0x1313, 0x131D, 0x131F, 0x1320,
0x1322, 0x132E, 0x1331, 0x1333, 0x133D, 0x133F,
0x13D1, 0x13D3, 0x13DD, 0x13DF, 0x13E0, 0x13E2,
0x13EE, 0x13F1, 0x13F3, 0x13FD, 0x13FF, 0x1D00,
0x1D02, 0x1D0E, 0x1D11, 0x1D13, 0x1D1D, 0x1D1F,
0x1D20, 0x1D22, 0x1D2E, 0x1D31, 0x1D33, 0x1D3D,
0x1D3F, 0x1DD1, 0x1DD3, 0x1DDD, 0x1DDF, 0x1DE0,
0x1DE2, 0x1DEE, 0x1DF1, 0x1DF3, 0x1DFD, 0x1DFF,
0x1E01, 0x1E03, 0x1E0D, 0x1E0F, 0x1E10, 0x1E12,
0x1E1E, 0x1E21, 0x1E23, 0x1E2D, 0x1E2F, 0x1E30,
0x1E32, 0x1E3E, 0x1ED0, 0x1ED2, 0x1EDE, 0x1EE1,
0x1EE3, 0x1EED, 0x1EEF, 0x1EF0, 0x1EF2, 0x1EFE,
0x1F00, 0x1F02, 0x1F0E, 0x1F11, 0x1F13, 0x1F1D,
0x1F1F, 0x1F20, 0x1F22, 0x1F2E, 0x1F31, 0x1F33,
0x1F3D, 0x1F3F, 0x1FD1, 0x1FD3, 0x1FDD, 0x1FDF,
0x1FE0, 0x1FE2, 0x1FEE, 0x1FF1, 0x1FF3, 0x1FFD,
0x1FFF, 0x2000, 0x2002, 0x200E, 0x2011, 0x2013,
0x201D, 0x201F, 0x2020, 0x2022, 0x202E, 0x2031,
0x2033, 0x203D, 0x203F, 0x20D1, 0x20D3, 0x20DD,
0x20DF, 0x20E0, 0x20E2, 0x20EE, 0x20F1, 0x20F3,
0x20FD, 0x20FF, 0x2101, 0x2103, 0x210D, 0x210F,
0x2110, 0x2112, 0x211E, 0x2121, 0x2123, 0x212D,
0x212F, 0x2130, 0x2132, 0x213E, 0x21D0, 0x21D2,
0x21DE, 0x21E1, 0x21E3, 0x21ED, 0x21EF, 0x21F0,
0x21F2, 0x21FE, 0x2200, 0x2202, 0x220E, 0x2211,
0x2213, 0x221D, 0x221F, 0x2220, 0x2222, 0x222E,
0x2231, 0x2233, 0x223D, 0x223F, 0x22D1, 0x22D3,
0x22DD, 0x22DF, 0x22E0, 0x22E2, 0x22EE, 0x22F1,
0x22F3, 0x22FD, 0x22FF, 0x2301, 0x2303, 0x230D,
0x230F, 0x2310, 0x2312, 0x231E, 0x2321, 0x2323,
0x232D, 0x232F, 0x2330, 0x2332, 0x233E, 0x23D0,
0x23D2, 0x23DE, 0x23E1, 0x23E3, 0x23ED, 0x23EF,
0x23F0, 0x23F2, 0x23FE, 0x2D01, 0x2D03, 0x2D0D,
0x2D0F, 0x2D10, 0x2D12, 0x2D1E, 0x2D21, 0x2D23,
0x2D2D, 0x2D2F, 0x2D30, 0x2D32, 0x2D3E, 0x2DD0,
0x2DD2, 0x2DDE, 0x2DE1, 0x2DE3, 0x2DED, 0x2DEF,
0x2DF0, 0x2DF2, 0x2DFE, 0x2E00, 0x2E02, 0x2E0E,
0x2E11, 0x2E13, 0x2E1D, 0x2E1F, 0x2E20, 0x2E22,
0x2E2E, 0x2E31, 0x2E33, 0x2E3D, 0x2E3F, 0x2ED1,
0x2ED3, 0x2EDD, 0x2EDF, 0x2EE0, 0x2EE2, 0x2EEE,
0x2EF1, 0x2EF3, 0x2EFD, 0x2EFF, 0x2F01, 0x2F03,
0x2F0D, 0x2F0F, 0x2F10, 0x2F12, 0x2F1E, 0x2F21,
0x2F23, 0x2F2D, 0x2F2F, 0x2F30, 0x2F32, 0x2F3E,
0x2FD0, 0x2FD2, 0x2FDE, 0x2FE1, 0x2FE3, 0x2FED,
0x2FEF, 0x2FF0, 0x2FF2, 0x2FFE, 0x3001, 0x3003,
0x300D, 0x300F, 0x3010, 0x3012, 0x301E, 0x3021,
0x3023, 0x302D, 0x302F, 0x3030, 0x3032, 0x303E,
0x30D0, 0x30D2, 0x30DE, 0x30E1, 0x30E3, 0x30ED,
0x30EF, 0x30F0, 0x30F2, 0x30FE, 0x3100, 0x3102,
0x310E, 0x3111, 0x3113, 0x311D, 0x311F, 0x3120,
0x3122, 0x312E, 0x3131, 0x3133, 0x313D, 0x313F,
0x31D1, 0x31D3, 0x31DD, 0x31DF, 0x31E0, 0x31E2,
0x31EE, 0x31F1, 0x31F3, 0x31FD, 0x31FF, 0x3201,
0x3203, 0x320D, 0x320F, 0x3210, 0x3212, 0x321E,
0x3221, 0x3223, 0x322D, 0x322F, 0x3230, 0x3232,
0x323E, 0x32D0, 0x32D2, 0x32DE, 0x32E1, 0x32E3,
0x32ED, 0x32EF, 0x32F0, 0x32F2, 0x32FE, 0x3300,
0x3302, 0x330E, 0x3311, 0x3313, 0x331D, 0x331F,
0x3320, 0x3322, 0x332E, 0x3331, 0x3333, 0x333D,
0x333F, 0x33D1, 0x33D3, 0x33DD, 0x33DF, 0x33E0,
0x33E2, 0x33EE, 0x33F1, 0x33F3, 0x33FD, 0x33FF,
0x3D00, 0x3D02, 0x3D0E, 0x3D11, 0x3D13, 0x3D1D,
0x3D1F, 0x3D20, 0x3D22, 0x3D2E, 0x3D31, 0x3D33,
0x3D3D, 0x3D3F, 0x3DD1, 0x3DD3, 0x3DDD, 0x3DDF,
0x3DE0, 0x3DE2, 0x3DEE, 0x3DF1, 0x3DF3, 0x3DFD,
0x3DFF, 0x3E01, 0x3E03, 0x3E0D, 0x3E0F, 0x3E10,
0x3E12, 0x3E1E, 0x3E21, 0x3E23, 0x3E2D, 0x3E2F,
0x3E30, 0x3E32, 0x3E3E, 0x3ED0, 0x3ED2, 0x3EDE,
0x3EE1, 0x3EE3, 0x3EED, 0x3EEF, 0x3EF0, 0x3EF2,
0x3EFE, 0x3F00, 0x3F02, 0x3F0E, 0x3F11, 0x3F13,
0x3F1D, 0x3F1F, 0x3F20, 0x3F22, 0x3F2E, 0x3F31,
0x3F33, 0x3F3D, 0x3F3F, 0x3FD1, 0x3FD3, 0x3FDD,
0x3FDF, 0x3FE0, 0x3FE2, 0x3FEE, 0x3FF1, 0x3FF3,
0x3FFD, 0x3FFF, 0xD001, 0xD003, 0xD00D, 0xD00F,
0xD010, 0xD012, 0xD01E, 0xD021, 0xD023, 0xD02D,
0xD02F, 0xD030, 0xD032, 0xD03E, 0xD0D0, 0xD0D2,
0xD0DE, 0xD0E1, 0xD0E3, 0xD0ED, 0xD0EF, 0xD0F0,
0xD0F2, 0xD0FE, 0xD100, 0xD102, 0xD10E, 0xD111,
0xD113, 0xD11D, 0xD11F, 0xD120, 0xD122, 0xD12E,
0xD131, 0xD133, 0xD13D, 0xD13F, 0xD1D1, 0xD1D3,
0xD1DD, 0xD1DF, 0xD1E0, 0xD1E2, 0xD1EE, 0xD1F1,
0xD1F3, 0xD1FD, 0xD1FF, 0xD201, 0xD203, 0xD20D,
0xD20F, 0xD210, 0xD212, 0xD21E, 0xD221, 0xD223,
0xD22D, 0xD22F, 0xD230, 0xD232, 0xD23E, 0xD2D0,
0xD2D2, 0xD2DE, 0xD2E1, 0xD2E3, 0xD2ED, 0xD2EF,
0xD2F0, 0xD2F2, 0xD2FE, 0xD300, 0xD302, 0xD30E,
0xD311, 0xD313, 0xD31D, 0xD31F, 0xD320, 0xD322,
0xD32E, 0xD331, 0xD333, 0xD33D, 0xD33F, 0xD3D1,
0xD3D3, 0xD3DD, 0xD3DF, 0xD3E0, 0xD3E2, 0xD3EE,
0xD3F1, 0xD3F3, 0xD3FD, 0xD3FF, 0xDD00, 0xDD02,
0xDD0E, 0xDD11, 0xDD13, 0xDD1D, 0xDD1F, 0xDD20,
0xDD22, 0xDD2E, 0xDD31, 0xDD33, 0xDD3D, 0xDD3F,
0xDDD1, 0xDDD3, 0xDDDD, 0xDDDF, 0xDDE0, 0xDDE2,
0xDDEE, 0xDDF1, 0xDDF3, 0xDDFD, 0xDDFF, 0xDE01,
0xDE03, 0xDE0D, 0xDE0F, 0xDE10, 0xDE12, 0xDE1E,
0xDE21, 0xDE23, 0xDE2D, 0xDE2F, 0xDE30, 0xDE32,
0xDE3E, 0xDED0, 0xDED2, 0xDEDE, 0xDEE1, 0xDEE3,
0xDEED, 0xDEEF, 0xDEF0, 0xDEF2, 0xDEFE, 0xDF00,
0xDF02, 0xDF0E, 0xDF11, 0xDF13, 0xDF1D, 0xDF1F,
0xDF20, 0xDF22, 0xDF2E, 0xDF31, 0xDF33, 0xDF3D,
0xDF3F, 0xDFD1, 0xDFD3, 0xDFDD, 0xDFDF, 0xDFE0,
0xDFE2, 0xDFEE, 0xDFF1, 0xDFF3, 0xDFFD, 0xDFFF,
0xE000, 0xE002, 0xE00E, 0xE011, 0xE013, 0xE01D,
0xE01F, 0xE020, 0xE022, 0xE02E, 0xE031, 0xE033,
0xE03D, 0xE03F, 0xE0D1, 0xE0D3, 0xE0DD, 0xE0DF,
0xE0E0, 0xE0E2, 0xE0EE, 0xE0F1, 0xE0F3, 0xE0FD,
0xE0FF, 0xE101, 0xE103, 0xE10D, 0xE10F, 0xE110,
0xE112, 0xE11E, 0xE121, 0xE123, 0xE12D, 0xE12F,
0xE130, 0xE132, 0xE13E, 0xE1D0, 0xE1D2, 0xE1DE,
0xE1E1, 0xE1E3, 0xE1ED, 0xE1EF, 0xE1F0, 0xE1F2,
0xE1FE, 0xE200, 0xE202, 0xE20E, 0xE211, 0xE213,
0xE21D, 0xE21F, 0xE220, 0xE222, 0xE22E, 0xE231,
0xE233, 0xE23D, 0xE23F, 0xE2D1, 0xE2D3, 0xE2DD,
0xE2DF, 0xE2E0, 0xE2E2, 0xE2EE, 0xE2F1, 0xE2F3,
0xE2FD, 0xE2FF, 0xE301, 0xE303, 0xE30D, 0xE30F,
0xE310, 0xE312, 0xE31E, 0xE321, 0xE323, 0xE32D,
0xE32F, 0xE330, 0xE332, 0xE33E, 0xE3D0, 0xE3D2,
0xE3DE, 0xE3E1, 0xE3E3, 0xE3ED, 0xE3EF, 0xE3F0,
0xE3F2, 0xE3FE, 0xED01, 0xED03, 0xED0D, 0xED0F,
0xED10, 0xED12, 0xED1E, 0xED21, 0xED23, 0xED2D,
0xED2F, 0xED30, 0xED32, 0xED3E, 0xEDD0, 0xEDD2,
0xEDDE, 0xEDE1, 0xEDE3, 0xEDED, 0xEDEF, 0xEDF0,
0xEDF2, 0xEDFE, 0xEE00, 0xEE02, 0xEE0E, 0xEE11,
0xEE13, 0xEE1D, 0xEE1F, 0xEE20, 0xEE22, 0xEE2E,
0xEE31, 0xEE33, 0xEE3D, 0xEE3F, 0xEED1, 0xEED3,
0xEEDD, 0xEEDF, 0xEEE0, 0xEEE2, 0xEEEE, 0xEEF1,
0xEEF3, 0xEEFD, 0xEEFF, 0xEF01, 0xEF03, 0xEF0D,
0xEF0F, 0xEF10, 0xEF12, 0xEF1E, 0xEF21, 0xEF23,
0xEF2D, 0xEF2F, 0xEF30, 0xEF32, 0xEF3E, 0xEFD0,
0xEFD2, 0xEFDE, 0xEFE1, 0xEFE3, 0xEFED, 0xEFEF,
0xEFF0, 0xEFF2, 0xEFFE, 0xF001, 0xF003, 0xF00D,
0xF00F, 0xF010, 0xF012, 0xF01E, 0xF021, 0xF023,
0xF02D, 0xF02F, 0xF030, 0xF032, 0xF03E, 0xF0D0,
0xF0D2, 0xF0DE, 0xF0E1, 0xF0E3, 0xF0ED, 0xF0EF,
0xF0F0, 0xF0F2, 0xF0FE, 0xF100, 0xF102, 0xF10E,
0xF111, 0xF113, 0xF11D, 0xF11F, 0xF120, 0xF122,
0xF12E, 0xF131, 0xF133, 0xF13D, 0xF13F, 0xF1D1,
0xF1D3, 0xF1DD, 0xF1DF, 0xF1E0, 0xF1E2, 0xF1EE,
0xF1F1, 0xF1F3, 0xF1FD, 0xF1FF, 0xF201, 0xF203,
0xF20D, 0xF20F, 0xF210, 0xF212, 0xF21E, 0xF221,
0xF223, 0xF22D, 0xF22F, 0xF230, 0xF232, 0xF23E,
0xF2D0, 0xF2D2, 0xF2DE, 0xF2E1, 0xF2E3, 0xF2ED,
0xF2EF, 0xF2F0, 0xF2F2, 0xF2FE, 0xF300, 0xF302,
0xF30E, 0xF311, 0xF313, 0xF31D, 0xF31F, 0xF320,
0xF322, 0xF32E, 0xF331, 0xF333, 0xF33D, 0xF33F,
0xF3D1, 0xF3D3, 0xF3DD, 0xF3DF, 0xF3E0, 0xF3E2,
0xF3EE, 0xF3F1, 0xF3F3, 0xF3FD, 0xF3FF, 0xFD00,
0xFD02, 0xFD0E, 0xFD11, 0xFD13, 0xFD1D, 0xFD1F,
0xFD20, 0xFD22, 0xFD2E, 0xFD31, 0xFD33, 0xFD3D,
0xFD3F, 0xFDD1, 0xFDD3, 0xFDDD, 0xFDDF, 0xFDE0,
0xFDE2, 0xFDEE, 0xFDF1, 0xFDF3, 0xFDFD, 0xFDFF,
0xFE01, 0xFE03, 0xFE0D, 0xFE0F, 0xFE10, 0xFE12,
0xFE1E, 0xFE21, 0xFE23, 0xFE2D, 0xFE2F, 0xFE30,
0xFE32, 0xFE3E, 0xFED0, 0xFED2, 0xFEDE, 0xFEE1,
0xFEE3, 0xFEED, 0xFEEF, 0xFEF0, 0xFEF2, 0xFEFE,
0xFF00, 0xFF02, 0xFF0E, 0xFF11, 0xFF13, 0xFF1D,
0xFF1F, 0xFF20, 0xFF22, 0xFF2E, 0xFF31, 0xFF33,
0xFF3D, 0xFF3F, 0xFFD1, 0xFFD3, 0xFFDD, 0xFFDF,
0xFFE0, 0xFFE2, 0xFFEE, 0xFFF1, 0xFFF3, 0xFFFD,
0xFFFF,
};
#define ON2AVC_CB6_CODES 1201
static const uint32_t on2avc_cb6_codes[ON2AVC_CB6_CODES] = {
0x0018, 0x0088, 0x0082, 0x0024, 0x05B4, 0x08DF,
0x0044, 0x0197, 0x01DE, 0x021F, 0x0D77, 0x0A72,
0x7E77, 0x0B8B, 0x03F1, 0x0433, 0x073F, 0x1E5C,
0x016A, 0x01C5, 0x00D2, 0x0062, 0x0CE4, 0x0096,
0x0020, 0x0052, 0x00B7, 0x0127, 0x003A, 0x0041,
0x00CC, 0x01B6, 0x0124, 0x07D3, 0x01AE, 0x01C4,
0x00DA, 0x03D8, 0x03F3, 0x1638, 0x03F2, 0x12FC,
0x01E2, 0x0DBC, 0x026C, 0x008A, 0x0054, 0x01A6,
0x0195, 0x0164, 0x01E2, 0x026D, 0x0051, 0x049F,
0x01B3, 0x01E0, 0x01B4, 0x026E, 0x07DE, 0x0129,
0x0292, 0x0DBD, 0x013E, 0x00F3, 0x05B5, 0x09A6,
0x01FB, 0x02CF, 0x01FF, 0x037C, 0x004A, 0x067E,
0x016B, 0x002A, 0x09A7, 0x10EE, 0x1639, 0x0135,
0x0CCA, 0x016A, 0x011B, 0x03EE, 0x07A2, 0x0D7E,
0x028F, 0x0FE2, 0x07DA, 0x0357, 0x92F6, 0x0F31,
0x0217, 0x036A, 0x0CE5, 0x07A1, 0x0229, 0x03D9,
0x0377, 0x00B7, 0x01A6, 0x0655, 0x012E, 0x002B,
0x002E, 0x00F2, 0x06F2, 0x02D0, 0x0F98, 0x07A0,
0x009C, 0x0332, 0x0014, 0x01BD, 0x017E, 0x0331,
0x0371, 0x025B, 0x0498, 0x161F, 0x039E, 0x0654,
0x00C2, 0x06BA, 0x0140, 0x021E, 0x02F8, 0x01B4,
0x0134, 0x03FF, 0x0066, 0x0477, 0x01DF, 0x01FE,
0x0A14, 0x029E, 0x0356, 0x038F, 0x035A, 0x3CB3,
0x01B2, 0x016A, 0x011A, 0x00B6, 0x02DE, 0x01DD,
0x017C, 0x0376, 0x002F, 0x0039, 0x03D7, 0x01BE,
0x0056, 0x0050, 0x017C, 0x01CC, 0x0034, 0x0B3E,
0x0499, 0x0014, 0x08DE, 0x037B, 0x03EB, 0x08BF,
0x186E, 0x050F, 0x0030, 0x0169, 0x07F2, 0x00F6,
0x0042, 0x0198, 0x00BC, 0x002E, 0x023A, 0x01E3,
0x0036, 0x004C, 0x012E, 0x01A1, 0x007D, 0x00C3,
0x0392, 0x0063, 0x0F33, 0x016C, 0x01A7, 0x0E77,
0x01DF, 0x0177, 0x0032, 0x03FE, 0x0322, 0x01AC,
0x0030, 0x017E, 0x011E, 0x0022, 0x01FB, 0x012A,
0x002B, 0x0068, 0x00D4, 0x006E, 0x0015, 0x001C,
0x00E5, 0x01A9, 0x0436, 0x053F, 0x05AE, 0x00B2,
0x072A, 0x02EA, 0x008E, 0x0175, 0x02BE, 0x018E,
0x0002, 0x005E, 0x01D6, 0x0055, 0x006A, 0x07F3,
0x02F9, 0x01D4, 0x016E, 0x03AB, 0x00FF, 0x003C,
0x0192, 0x01D6, 0x0256, 0x0137, 0x0148, 0x022A,
0x039C, 0x016D, 0x0116, 0x038A, 0x033E, 0x0156,
0x03CF, 0x004B, 0x00E6, 0x018F, 0x1E5D, 0x03DA,
0x0292, 0x0108, 0x06F5, 0x03DB, 0x0092, 0x0178,
0x014A, 0x03FF, 0x03EE, 0x0A79, 0x0A16, 0x00F7,
0x01B5, 0x0A15, 0x0D7F, 0x02FA, 0x01E4, 0x0157,
0x01E2, 0x0185, 0x057E, 0x07DB, 0x0098, 0x0DBE,
0x019A, 0x05FE, 0x003B, 0x03F5, 0x01BF, 0x01E4,
0x011E, 0x001B, 0x03AA, 0x0337, 0x1F9C, 0x0942,
0x05AB, 0x0430, 0x24BF, 0x163A, 0x037E, 0x014E,
0x00F4, 0x0217, 0x0059, 0x0F32, 0x03F4, 0x01F2,
0x0031, 0x0136, 0x05C6, 0x0076, 0x0006, 0x02FE,
0x03FB, 0x009D, 0x013F, 0x002E, 0x02E6, 0x00AD,
0x0234, 0x021E, 0x0253, 0x012A, 0x0346, 0x029A,
0x012B, 0x021C, 0x02DA, 0x0004, 0x013C, 0x00F5,
0x004E, 0x017D, 0x01F8, 0x0006, 0x01FA, 0x01F9,
0x007A, 0x0067, 0x033B, 0x033A, 0x0586, 0x05C7,
0x05FF, 0x00C8, 0x014B, 0x024F, 0x02C5, 0x00E7,
0x014C, 0x035C, 0x00A2, 0x006A, 0x01F3, 0x0071,
0x005E, 0x0084, 0x063A, 0x03EF, 0x0064, 0x02FE,
0x0255, 0x003A, 0x061A, 0x0333, 0x037F, 0x00FE,
0x115B, 0x0F9A, 0x00A6, 0x027D, 0x0B5F, 0x013F,
0x029E, 0x0293, 0x07B6, 0x000F, 0x0196, 0x02FB,
0x033F, 0x01FE, 0x019E, 0x01B3, 0x037F, 0x00C4,
0x00DE, 0x02D2, 0x007A, 0x03CA, 0x01E3, 0x02F7,
0x00AE, 0x05AF, 0x02FF, 0x026F, 0x00CA, 0x0356,
0x02C7, 0x02D1, 0x0256, 0x006B, 0x0141, 0x012C,
0x03BE, 0x0026, 0x00F0, 0x03A3, 0x02D6, 0x005F,
0x00FF, 0x03F2, 0x00AE, 0x0257, 0x01FE, 0x035E,
0x01B6, 0x00EE, 0x0658, 0x008F, 0x0232, 0x0657,
0x12FD, 0x00AF, 0x00E6, 0x0426, 0x0666, 0x009E,
0x0467, 0x003F, 0x014A, 0x02D3, 0x12FE, 0x099A,
0x03BF, 0x00DD, 0x04DF, 0x009F, 0x00B8, 0x0863,
0x06F7, 0x01B8, 0x0346, 0x0179, 0x0FE3, 0x0667,
0x0659, 0x01CE, 0x00B3, 0x0372, 0x065A, 0x025E,
0x01AA, 0x0276, 0x027E, 0x02DB, 0x0CE6, 0x115A,
0x02E7, 0x0139, 0x03DA, 0x01FA, 0x021C, 0x0943,
0x0862, 0x011F, 0x08B6, 0x07E6, 0x029F, 0x00E5,
0x0656, 0x049A, 0x000E, 0x0F99, 0x06F6, 0x00DC,
0x00EC, 0x014B, 0x0230, 0x04A2, 0x0016, 0x02EB,
0x03AE, 0x02DF, 0x01AA, 0x033E, 0x0196, 0x092E,
0x06F3, 0x00E7, 0x0B5E, 0x03F2, 0x0086, 0x0347,
0x022A, 0x0A17, 0x01EF, 0x067F, 0x004A, 0x037E,
0x02EE, 0x015E, 0x0696, 0x006A, 0x01CD, 0x0077,
0x073F, 0x0016, 0x01E3, 0x012E, 0x00DB, 0x03BD,
0x0496, 0x01C6, 0x0323, 0x005E, 0x02F6, 0x027C,
0x0235, 0x0231, 0x00DA, 0x01EB, 0x0232, 0x02C6,
0x01F2, 0x016F, 0x02C6, 0x036B, 0x0050, 0x0AFE,
0x0F9B, 0x00C6, 0x014E, 0x02BC, 0x01CA, 0x027F,
0x07A5, 0x0DE1, 0x01F1, 0x039E, 0x0DE2, 0x1E5E,
0x065E, 0x0DE0, 0x115F, 0x00F7, 0x02AB, 0x116E,
0x019B, 0x04CE, 0x00D3, 0x01C7, 0x02D6, 0x01F3,
0x016F, 0x014E, 0x05B7, 0x0FA3, 0x0118, 0x025F,
0x017E, 0x0437, 0x049B, 0x05AE, 0x497A, 0x0D2E,
0x05B6, 0x1E5F, 0x0DE3, 0x0512, 0x031A, 0x01F2,
0x007E, 0x015C, 0x035E, 0x04CF, 0x01C8, 0x0194,
0x12FF, 0x1F7F, 0x00E0, 0x01A2, 0x012F, 0x0087,
0x014C, 0x0643, 0x0D5E, 0x017F, 0x07A6, 0x0513,
0x0D5F, 0x022B, 0x065F, 0x03F6, 0x022E, 0x03F7,
0x0642, 0x036E, 0x00D0, 0x01CB, 0x0378, 0x125EE,
0x035F, 0x014F, 0x035F, 0x116F, 0x0A4F, 0x0102,
0x032A, 0x0173, 0x0536, 0x03A7, 0x075E, 0x1F9F,
0x163B, 0x14DA, 0x526E, 0x165F, 0x0A6E, 0x0596,
0x07A7, 0x042A, 0x0172, 0x19C2, 0x07E6, 0x04A3,
0x0327, 0x02A8, 0x07A3, 0x046E, 0x012F, 0x2EFF,
0x01D7, 0x0266, 0x0BBE, 0x066E, 0x186F, 0x0A73,
0x1336, 0x02A9, 0x0373, 0x017F, 0x1F9E, 0x0B62,
0x03A6, 0x0DBF, 0x035B, 0x063B, 0x053B, 0x10EF,
0x016E, 0x011B, 0x115D, 0x115C, 0x00F2, 0x0176,
0x0393, 0x034A, 0x0107, 0x115E, 0x0B63, 0x023F,
0x002A, 0x0CE7, 0x0A7A, 0x06FA, 0x06FB, 0x02AA,
0x02C2, 0x065B, 0x07A4, 0x02D4, 0x0130, 0x0106,
0x01FB, 0x0B3F, 0x01B7, 0x00F6, 0x0056, 0x053F,
0x0126, 0x0048, 0x0233, 0x017D, 0x00A4, 0x08BE,
0x165E, 0x165D, 0x0A7B, 0x0427, 0x078F, 0x1F7E,
0x0641, 0x02E4, 0x01E6, 0x01DA, 0x00F8, 0x043A,
0x02BE, 0x011C, 0x006F, 0x036D, 0x19C3, 0x0020,
0x06AE, 0x0372, 0x0288, 0x00C0, 0x079D, 0x036E,
0x0117, 0x02FB, 0x0538, 0x06F2, 0x12F9, 0x1337,
0x1E58, 0x0214, 0x005E, 0x0CE0, 0x01EE, 0x0A6E,
0x0215, 0x01C2, 0x12FA, 0x033A, 0x009A, 0x0174,
0x0CE2, 0x09A1, 0x00FE, 0x0250, 0x02CA, 0x035E,
0x03A2, 0x0D7D, 0x2EFE, 0x02E8, 0x24BE, 0x1F7C,
0x10EC, 0x04A2, 0x0052, 0x010D, 0x0277, 0x003A,
0x0CDE, 0x0A6F, 0x0086, 0x00E4, 0x12FB, 0x14DE,
0x009E, 0x0062, 0x03CA, 0x03BC, 0x02CA, 0x14DF,
0x0FE0, 0x030C, 0x03F0, 0x06F3, 0x0796, 0x0B1E,
0x05B0, 0x15FE, 0x013A, 0x0CDF, 0x079E, 0x01E2,
0x0166, 0x02BD, 0x0151, 0x0153, 0x0650, 0x0940,
0x010F, 0x3CB2, 0x10ED, 0x057E, 0x03D4, 0x029E,
0x0358, 0x06F4, 0x7E76, 0x017C, 0x15FF, 0x047D,
0x1158, 0x3F3A, 0x0CE3, 0x005F, 0x043A, 0x032F,
0x010E, 0x1E5A, 0x0A4C, 0x0152, 0x125EF, 0x0B88,
0x057F, 0x059E, 0x042B, 0x2936, 0x0138, 0x03A1,
0x03C6, 0x0E56, 0x12F8, 0x149A, 0x526F, 0x0F2E,
0x079C, 0x02FA, 0x0476, 0x0267, 0x0636, 0x03A0,
0x014E, 0x0092, 0x0D7C, 0x05AF, 0x010C, 0x011C,
0x0A10, 0x177E, 0x0131, 0x09A0, 0x03EA, 0x02C2,
0x02D6, 0x0B89, 0x032E, 0x01E8, 0x0F30, 0x01BA,
0x0532, 0x0A6C, 0x0F6E, 0x04CC, 0x008E, 0x036C,
0x0E57, 0x00D6, 0x0162, 0x0024, 0x0252, 0x0F6F,
0x01AE, 0x0150, 0x0038, 0x07CE, 0x01BB, 0x01F6,
0x026A, 0x038B, 0x01DB, 0x07CF, 0x14DB, 0x24BC,
0x0272, 0x053E, 0x073E, 0x078E, 0x0C36, 0x0176,
0x032B, 0x017A, 0x0190, 0x0CCB, 0x047C, 0x0170,
0x0054, 0x03EC, 0x049D, 0x0197, 0x043B, 0x0432,
0x0192, 0x026A, 0x01F0, 0x0076, 0x0216, 0x0A11,
0x1F7D, 0x02C4, 0x0298, 0x1159, 0x0A4E, 0x0116,
0x00E4, 0x0216, 0x029A, 0x000F, 0x04DA, 0x04D2,
0x002B, 0x0011, 0x049E, 0x045A, 0x01BF, 0x01EF,
0x03CE, 0x01F8, 0x026E, 0x0466, 0x02DC, 0x0168,
0x030E, 0x00B4, 0x01C3, 0x03CC, 0x028D, 0x01AE,
0x038E, 0x01B0, 0x0664, 0x0119, 0x01BE, 0x035B,
0x035F, 0x028E, 0x0A78, 0x01DE, 0x0397, 0x03FE,
0x01B1, 0x028E, 0x07D2, 0x09A2, 0x033C, 0x02C1,
0x0FA0, 0x0359, 0x031E, 0x00C1, 0x03D6, 0x0A12,
0x01C4, 0x0330, 0x075F, 0x0B1F, 0x025A, 0x027B,
0x04DB, 0x02E5, 0x01FA, 0x036F, 0x0A13, 0x02BB,
0x00FA, 0x01D4, 0x01F8, 0x018A, 0x161E, 0x0E75,
0x026B, 0x05B3, 0x01BC, 0x05B2, 0x09A3, 0x0424,
0x047E, 0x01EE, 0x0FE1, 0x161D, 0x024C, 0x017E,
0x026B, 0x01DC, 0x00A5, 0x0F2F, 0x161C, 0x028B,
0x0196, 0x0168, 0x01EF, 0x0394, 0x0E74, 0x013C,
0x00C9, 0x032E, 0x0941, 0x0D76, 0x050C, 0x0228,
0x006C, 0x0236, 0x0D2F, 0x0156, 0x00D2, 0x0B8A,
0x0148, 0x028A, 0x028B, 0x033B, 0x0214, 0x01E9,
0x03C2, 0x049C, 0x02BA, 0x02E9, 0x028C, 0x01FC,
0x0103, 0x0B5C, 0x050D, 0x031C, 0x0268, 0x0651,
0x013A, 0x013B, 0x0118, 0x03D5, 0x0252, 0x0044,
0x0637, 0x01D2, 0x000E, 0x00F0, 0x0323, 0x02C3,
0x019A, 0x016C, 0x0046, 0x03E3, 0x024A, 0x00AC,
0x0269, 0x02C0, 0x0396, 0x027A, 0x0253, 0x0273,
0x073E, 0x0322, 0x003A, 0x025E, 0x0336, 0x0257,
0x00D6, 0x0026, 0x03C3, 0x0034, 0x019A, 0x00FB,
0x0038, 0x0040, 0x0096, 0x01F0, 0x0184, 0x021A,
0x003E, 0x0042, 0x050E, 0x03CE, 0x035E, 0x0FA1,
0x017B, 0x02CD, 0x0058, 0x0326, 0x00E4, 0x002E,
0x004F, 0x000C, 0x0164, 0x0048, 0x0048, 0x0194,
0x0074, 0x006E, 0x0070, 0x006C, 0x01A4, 0x00A3,
0x034F, 0x011E, 0x0374, 0x0157, 0x0138, 0x011D,
0x03CF, 0x033D, 0x0132, 0x0050, 0x023E, 0x005A,
0x0076, 0x01EC, 0x005D, 0x0008, 0x004C, 0x024E,
0x0154, 0x001E, 0x01C6, 0x0027, 0x00FE, 0x01EA,
0x02CE, 0x01DD, 0x02CB, 0x035A, 0x0318, 0x013E,
0x009B, 0x0288, 0x0339, 0x024D, 0x031F, 0x0128,
0x00B6, 0x0028, 0x028A, 0x0289, 0x029F, 0x01FD,
0x029A, 0x00F6, 0x0FA2, 0x0347, 0x0080, 0x01A8,
0x028F, 0x0326, 0x0327, 0x0370, 0x165C, 0x043F,
0x0375, 0x013D, 0x1E5B, 0x04DE, 0x0155, 0x00D8,
0x0319, 0x0096, 0x0640, 0x07E7, 0x007C, 0x0652,
0x0373, 0x05DE, 0x00CF, 0x0E76, 0x0653, 0x01A0,
0x0160, 0x0169, 0x01D5, 0x05AA, 0x053A, 0x0B5D,
0x0254, 0x079A, 0x0533, 0x0425, 0x053E, 0x00A6,
0x030F, 0x01A2, 0x00B0, 0x04A3, 0x079F, 0x011A,
0x01EE, 0x02CC, 0x045E, 0x005C, 0x0024, 0x022C,
0x001A, 0x0338, 0x0132, 0x026C, 0x004E, 0x047F,
0x01B2, 0x0113, 0x043E, 0x0336, 0x00F0, 0x02CE,
0x0112, 0x018B, 0x0010, 0x0114, 0x01BE, 0x03FA,
0x002A, 0x00FA, 0x0033, 0x0060, 0x0146, 0x01DC,
0x0000, 0x0025, 0x037A, 0x034E, 0x012E, 0x029B,
0x079B, 0x00E6, 0x03CD, 0x02DD, 0x0117, 0x017A,
0x002C, 0x03E2, 0x003E, 0x0070, 0x00CE, 0x00B1,
0x003B,
};
static const uint8_t on2avc_cb6_bits[ON2AVC_CB6_CODES] = {
7, 10, 10, 7, 12, 12,
7, 10, 11, 11, 12, 15,
17, 12, 13, 11, 15, 13,
10, 11, 11, 7, 13, 13,
7, 7, 12, 12, 7, 7,
9, 9, 9, 11, 10, 9,
12, 12, 13, 13, 13, 13,
9, 12, 10, 10, 7, 9,
9, 10, 12, 11, 10, 11,
11, 9, 11, 11, 11, 11,
12, 12, 13, 11, 12, 12,
10, 11, 12, 12, 10, 11,
11, 10, 12, 14, 13, 11,
12, 12, 11, 10, 13, 14,
10, 12, 12, 12, 16, 12,
12, 10, 13, 13, 13, 12,
11, 11, 11, 13, 14, 13,
13, 11, 11, 10, 13, 13,
11, 12, 12, 13, 16, 12,
14, 10, 13, 13, 10, 13,
11, 11, 10, 11, 11, 9,
11, 11, 10, 11, 12, 12,
13, 12, 12, 10, 13, 14,
12, 11, 11, 12, 11, 9,
11, 11, 10, 7, 12, 13,
7, 7, 9, 9, 10, 12,
13, 10, 12, 10, 10, 12,
13, 12, 10, 10, 11, 9,
7, 9, 9, 7, 10, 10,
7, 7, 9, 9, 10, 11,
10, 10, 12, 11, 11, 12,
11, 11, 10, 10, 10, 9,
7, 9, 9, 7, 9, 9,
7, 10, 10, 7, 10, 10,
11, 10, 11, 11, 11, 10,
11, 12, 10, 9, 10, 10,
8, 10, 9, 7, 10, 11,
11, 9, 9, 10, 10, 10,
10, 11, 10, 11, 10, 10,
10, 11, 11, 10, 11, 11,
10, 10, 11, 10, 13, 12,
11, 10, 13, 12, 10, 11,
11, 10, 11, 12, 13, 12,
11, 13, 14, 11, 10, 11,
11, 9, 13, 12, 10, 12,
11, 11, 10, 13, 13, 9,
11, 11, 10, 11, 15, 13,
11, 11, 14, 13, 11, 10,
11, 11, 10, 12, 13, 9,
10, 11, 11, 10, 10, 10,
10, 11, 11, 11, 10, 11,
10, 10, 10, 11, 10, 10,
11, 11, 10, 10, 10, 11,
7, 9, 9, 8, 9, 9,
7, 10, 10, 10, 11, 11,
11, 10, 10, 12, 11, 10,
9, 10, 10, 7, 9, 10,
7, 10, 11, 11, 10, 11,
11, 10, 11, 12, 12, 12,
13, 13, 12, 11, 13, 13,
11, 11, 11, 11, 9, 11,
11, 9, 9, 12, 11, 9,
9, 10, 11, 10, 11, 11,
11, 11, 11, 11, 11, 11,
11, 10, 11, 11, 10, 9,
10, 10, 11, 12, 11, 10,
12, 11, 10, 11, 10, 12,
11, 11, 13, 11, 10, 13,
13, 11, 12, 12, 11, 11,
11, 11, 10, 10, 13, 13,
10, 10, 11, 11, 10, 12,
13, 10, 12, 11, 12, 11,
13, 13, 10, 14, 13, 10,
10, 11, 11, 10, 13, 13,
10, 10, 10, 11, 10, 13,
12, 10, 12, 12, 12, 12,
13, 13, 11, 13, 13, 10,
10, 11, 11, 11, 12, 12,
10, 11, 11, 10, 12, 12,
11, 11, 13, 12, 11, 10,
13, 13, 10, 11, 12, 12,
10, 11, 11, 11, 9, 12,
11, 10, 9, 11, 11, 10,
11, 11, 10, 12, 11, 11,
10, 11, 11, 10, 11, 11,
10, 9, 10, 10, 9, 12,
13, 9, 13, 10, 11, 11,
13, 14, 11, 14, 14, 13,
13, 14, 13, 11, 13, 13,
11, 12, 11, 11, 13, 11,
11, 9, 12, 12, 9, 11,
11, 11, 13, 14, 15, 12,
12, 13, 14, 12, 10, 11,
11, 9, 13, 12, 9, 10,
13, 13, 10, 9, 11, 11,
10, 12, 13, 11, 13, 12,
13, 13, 13, 13, 10, 13,
12, 10, 10, 11, 10, 17,
13, 13, 11, 13, 14, 11,
11, 11, 12, 12, 11, 15,
13, 13, 17, 14, 13, 12,
13, 13, 11, 14, 13, 11,
10, 13, 13, 11, 14, 14,
11, 12, 12, 11, 13, 15,
14, 13, 14, 16, 15, 13,
12, 12, 13, 11, 14, 14,
11, 10, 13, 13, 10, 9,
10, 10, 11, 13, 13, 10,
13, 13, 12, 13, 13, 13,
10, 13, 13, 10, 10, 11,
11, 12, 11, 11, 9, 12,
12, 9, 11, 11, 11, 12,
14, 14, 12, 12, 14, 13,
12, 10, 11, 11, 9, 12,
12, 9, 10, 14, 14, 9,
12, 11, 11,