32 {0x01, 9}, {0x01, 8}, {0x01, 7}, {0x01, 6}, {0x01, 5}, {0x01, 4}, {0x01, 3},
33 {0x04, 3}, {0x05, 3}, {0x06, 3}, {0x07, 3},
34 {0x03, 3}, {0x05, 4}, {0x09, 5}, {0x11, 6}, {0x21, 7}, {0x41, 8}, {0x81, 9},
36 {0x01, 9}, {0x01, 8}, {0x01, 7}, {0x01, 6}, {0x01, 5}, {0x01, 4}, {0x01, 3},
38 {0x03, 3}, {0x05, 4}, {0x09, 5}, {0x11, 6}, {0x21, 7}, {0x41, 8}, {0x81, 9},
40 {0x01, 9}, {0x01, 8}, {0x01, 7}, {0x01, 6}, {0x01, 5}, {0x01, 4}, {0x01, 3},
42 {0x03, 3}, {0x05, 4}, {0x09, 5}, {0x11, 6}, {0x21, 7}, {0x41, 8}, {0x81, 9},
47 { 0x01, 0x01, 0x00, 0x1f }, { 0x03, 0x02, 0x00, 0x1b },
48 { 0x07, 0x02, 0x01, 0x1f }, { 0x0F, 0x02, 0x02, 0x19 },
49 { 0x07, 0x02, 0x01, 0x03 }, { 0x0F, 0x02, 0x02, 0x1f },
50 { 0x1F, 0x02, 0x03, 0x01 }, { 0x07, 0x02, 0x01, 0x1a },
51 { 0x0F, 0x02, 0x02, 0x1f }, { 0x1F, 0x02, 0x03, 0x18 },
52 { 0x0F, 0x02, 0x02, 0x02 }, { 0x1F, 0x02, 0x03, 0x1f },
53 { 0x3F, 0x02, 0x04, 0x00 }, { 0x0F, 0x03, 0x01, 0x1f },
54 { 0x1F, 0x03, 0x02, 0x18 }, { 0x0F, 0x03, 0x01, 0x02 },
55 { 0x1F, 0x03, 0x02, 0x1f }, { 0x3F, 0x03, 0x03, 0x00 },
56 { 0x1F, 0x04, 0x01, 0x01 }, { 0x1F, 0x04, 0x01, 0x18 },
57 { 0x3F, 0x04, 0x02, 0x00 },
60 #if FF_API_OLD_CHANNEL_LAYOUT
61 const uint64_t ff_mlp_channel_layouts[12] = {
77 #define CRC_TABLE_SIZE 257
79 #define CRC_TABLE_SIZE 1024
103 crc ^=
AV_RL16(buf + buf_size - 2);
109 uint8_t checksum =
av_crc(
crc_63, 0x3c, buf, buf_size - 1);
110 checksum ^= buf[buf_size-1];
117 int num_bytes = (bit_size + 2) / 8;
119 int crc =
crc_1D[buf[0] & 0x3f];
121 crc ^= buf[num_bytes - 1];
123 for (
i = 0;
i < ((bit_size + 2) & 7);
i++) {
127 crc ^= (buf[num_bytes] >> (7 -
i)) & 1;
135 uint32_t scratch = 0;
136 const uint8_t *buf_end = buf + buf_size;
138 for (; ((intptr_t) buf & 3) && buf < buf_end; buf++)
140 for (; buf < buf_end - 3; buf += 4)
141 scratch ^= *((
const uint32_t*)buf);
145 for (; buf < buf_end; buf++)