2 const uint8_t gamma[256] = {
4 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
5 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
6 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,
7 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
8 0x01,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
9 0x02,0x03,0x03,0x03,0x03,0x03,0x04,0x04,
10 0x04,0x04,0x04,0x05,0x05,0x05,0x05,0x06,
11 0x06,0x06,0x06,0x07,0x07,0x07,0x07,0x08,
12 0x08,0x08,0x09,0x09,0x09,0x0a,0x0a,0x0a,
13 0x0b,0x0b,0x0c,0x0c,0x0c,0x0d,0x0d,0x0e,
14 0x0e,0x0f,0x0f,0x0f,0x10,0x10,0x11,0x11,
15 0x12,0x12,0x13,0x13,0x14,0x14,0x15,0x16,
16 0x16,0x17,0x17,0x18,0x19,0x19,0x1a,0x1a,
17 0x1b,0x1c,0x1c,0x1d,0x1e,0x1e,0x1f,0x20,
18 0x21,0x21,0x22,0x23,0x24,0x24,0x25,0x26,
19 0x27,0x28,0x28,0x29,0x2a,0x2b,0x2c,0x2d,
20 0x2e,0x2e,0x2f,0x30,0x31,0x32,0x33,0x34,
21 0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,
22 0x3d,0x3e,0x3f,0x40,0x41,0x43,0x44,0x45,
23 0x46,0x47,0x48,0x49,0x4b,0x4c,0x4d,0x4e,
24 0x50,0x51,0x52,0x53,0x55,0x56,0x57,0x59,
25 0x5a,0x5b,0x5d,0x5e,0x5f,0x61,0x62,0x63,
26 0x65,0x66,0x68,0x69,0x6b,0x6c,0x6e,0x6f,
27 0x71,0x72,0x74,0x75,0x77,0x79,0x7a,0x7c,
28 0x7d,0x7f,0x81,0x82,0x84,0x86,0x87,0x89,
29 0x8b,0x8d,0x8e,0x90,0x92,0x94,0x96,0x97,
30 0x99,0x9b,0x9d,0x9f,0xa1,0xa3,0xa5,0xa6,
31 0xa8,0xaa,0xac,0xae,0xb0,0xb2,0xb4,0xb6,
32 0xb8,0xba,0xbd,0xbf,0xc1,0xc3,0xc5,0xc7,
33 0xc9,0xcc,0xce,0xd0,0xd2,0xd4,0xd7,0xd9,
34 0xdb,0xdd,0xe0,0xe2,0xe4,0xe7,0xe9,0xeb,
35 0xee,0xf0,0xf3,0xf5,0xf8,0xfa,0xfd,0xff