143 size_t write(
const char* data,
size_t len) {
144 return write(
reinterpret_cast<const uint8_t*
>(data), len);
179 size_t box_size =
readU32(str + idx) - 8;
191 if (idx >= len)
break;
198 for (
int j = 0;
j < len - 4;
j++) {
202 size_t box_size =
readU32(data +
j) - 8;
203 if (box_size < 8)
continue;
229 "%s- #%u %u) %s, Offset: %u, Size: %u, Data Size: %u, Available: %u",
space,
298 strncpy(type, (
char*)(p + 4), 4);
301 size_t headerSize = 8;
303 if (
boxSize < headerSize)
return false;
478 return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
532 "moov",
"trak",
"mdia",
"minf",
"stbl",
"edts",
"dinf",
"udta",
533 "ilst",
"moof",
"traf",
"mfra",
"tref",
"iprp",
"sinf",
"schi"};
573 return (type !=
nullptr &&
isalnum(type[offset]) &&
Structure for type-specific callbacks.
Definition MP4Parser.h:58
BoxCallback cb
Callback function.
Definition MP4Parser.h:60
char type[5]
4-character box type
Definition MP4Parser.h:59
bool callGeneric
If true, also call the generic callback after this one.
Definition MP4Parser.h:61