68 static const uint8_t lut[256] = {
69 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
70 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
71 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
72 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
73 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
74 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
75 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
76 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
77 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
78 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
79 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
80 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
81 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
82 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1,
83 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
84 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
86 return marker < 0xFF00 ? 0 : lut[marker & 0xFF];
104 for (
i = 0;
i < buf_size;
i++) {
105 state64 = state64 << 8 | buf[
i];
124 m->
skip_bytes = (state64 & 0xFFFFFFFF) - 9 > 0?
125 (state64 & 0xFFFFFFFF) - 9 : 0;
132 if (state64 == 0x6A5020200D0A870A) {
145 if ((state64 & 0xFFFFFFFF) == 0x0000000C && bytes_read >= 3) {
147 }
else if ((state64 & 0xFFFF) == 0xFF4F) {
156 }
else if ((state64 & 0xFFFF) == 0xFFD9) {
165 if ((state64 & 0xFFFF) == 0xFF90) {
190 const uint8_t **poutbuf,
int *poutbuf_size,
191 const uint8_t *buf,
int buf_size)
210 *poutbuf_size = buf_size;