30 #define DEFAULT_PACKET_SIZE 1024
31 #define OVERREAD_SIZE 3
77 for (; p < end - 3; p += 4) {
80 if (x & (~(x+0x01010101)) & 0x80808080) {
83 }
else if (p[1] == 0xff) {
85 }
else if (p[2] == 0xff) {
87 }
else if (p[3] == 0xff) {
93 for (; p <
end; ++p) {
94 if (*p == 0xff)
return p;
104 unsigned int soi_pos;
109 if (current_pos > current_pos + cache_size)
113 current_pos + cache_size +
136 uint8_t *startmarker_ptr, *
end, *search_end, marker;
155 if (startmarker_ptr >= search_end - 1 ||
156 *(startmarker_ptr + 1) !=
EOI)
break;
159 if (startmarker_ptr != search_end) {
160 marker = *(startmarker_ptr + 1);
165 mxg->
soi_ptr = startmarker_ptr;
166 }
else if (marker ==
EOI) {
174 #if FF_API_DESTRUCT_PACKET
193 }
else if ( (
SOF0 <= marker && marker <=
SOF15) ||
194 (
SOS <= marker && marker <=
COM) ) {
213 if (marker ==
APP13 && size >= 16) {
217 #if FF_API_DESTRUCT_PACKET
223 pkt->
size = size - 14;
224 pkt->
data = startmarker_ptr + 16;
234 }
else if (marker ==
COM && size >= 18 &&
235 !strncmp(startmarker_ptr + 4,
"MXF", 3)) {