2026-08-08 06:10:11 +00:00
|
|
|
// Module ID: 4939
|
|
|
|
|
// Function ID: 4940
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: parseBox
|
2026-08-08 06:10:11 +00:00
|
|
|
// Dependencies: [4940]
|
2026-07-29 08:29:29 +00:00
|
|
|
|
2026-08-08 06:10:11 +00:00
|
|
|
// Module 4939 (parseBox)
|
2026-07-29 08:29:29 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const dependencyMap = arg6;
|
|
|
|
|
arg5.default = {
|
2026-07-31 08:44:05 +00:00
|
|
|
isHeicFile(getUint32) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (getUint32) {
|
|
|
|
|
try {
|
2026-08-08 06:10:11 +00:00
|
|
|
let parseBoxResult = require(4940) /* parseBox */.parseBox(getUint32, 0);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (parseBoxResult) {
|
2026-07-31 08:44:05 +00:00
|
|
|
const items = ["heic", "heix", "hevc", "hevx", "heim", "heis", "hevm", "hevs", "mif1"];
|
|
|
|
|
parseBoxResult = -1 !== items.indexOf(parseBoxResult.majorBrand);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return parseBoxResult;
|
|
|
|
|
} catch (err) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-07-31 08:44:05 +00:00
|
|
|
findHeicOffsets(byteLength) {
|
2026-08-08 06:10:11 +00:00
|
|
|
return require(4940) /* parseBox */.findOffsets(byteLength);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
};
|