decord/source/__polyfill/05xxx/module_5267.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

90 lines
3.4 KiB
JavaScript

// Module ID: 5267
// Function ID: 5268
// Dependencies: [5268, 5269, 5271, 5272, 5273, 5277, 5278, 5279, 5280, 5265]
// Module 5267
import _mod5265 from "module_5265" /* 5265 */;
import _modDef5268 from "module_5268" /* 5268 */;
require = arg1;
importDefault = arg2;
const dependencyMap = arg6;
export default {
parseAppMarkers(byteLength, flag2) {
if (_modDef5268.USE_TIFF) {
if (tmpResult.isTiffFile(byteLength)) {
const tmpResult16 = tmp(5269);
const findTiffOffsetsResult = tmp(5269).findTiffOffsets();
const obj = { fileType: { value: "tiff", description: "TIFF" } };
return _mod5265.objectAssign({}, findTiffOffsetsResult, obj);
}
tmpResult = tmp(5269);
}
if (_modDef5268.USE_JPEG) {
if (tmpResult17.isJpegFile(byteLength)) {
const tmpResult18 = tmp(5271);
const findJpegOffsetsResult = tmp(5271).findJpegOffsets(byteLength);
const obj2 = { fileType: { value: "jpeg", description: "JPEG" } };
return _mod5265.objectAssign({}, findJpegOffsetsResult, obj2);
}
tmpResult17 = tmp(5271);
}
if (_modDef5268.USE_PNG) {
if (tmpResult19.isPngFile(byteLength)) {
const tmpResult20 = tmp(5272);
const findPngOffsetsResult = tmp(5272).findPngOffsets(byteLength, flag2);
const obj3 = { fileType: { value: "png", description: "PNG" } };
return _mod5265.objectAssign({}, findPngOffsetsResult, obj3);
}
tmpResult19 = tmp(5272);
}
if (_modDef5268.USE_HEIC) {
if (tmpResult21.isHeicFile(byteLength)) {
const tmpResult22 = tmp(5273);
const findHeicOffsetsResult = tmp(5273).findHeicOffsets(byteLength);
const obj4 = { fileType: { value: "heic", description: "HEIC" } };
return _mod5265.objectAssign({}, findHeicOffsetsResult, obj4);
}
tmpResult21 = tmp(5273);
}
if (_modDef5268.USE_AVIF) {
if (tmpResult23.isAvifFile(byteLength)) {
const tmpResult24 = tmp(5277);
const findAvifOffsetsResult = tmp(5277).findAvifOffsets(byteLength);
const obj5 = { fileType: { value: "avif", description: "AVIF" } };
return _mod5265.objectAssign({}, findAvifOffsetsResult, obj5);
}
tmpResult23 = tmp(5277);
}
if (_modDef5268.USE_WEBP) {
if (tmpResult25.isWebpFile(byteLength)) {
const tmpResult26 = tmp(5278);
const findOffsetsResult = tmp(5278).findOffsets(byteLength);
const obj6 = { fileType: { value: "webp", description: "WebP" } };
return _mod5265.objectAssign({}, findOffsetsResult, obj6);
}
tmpResult25 = tmp(5278);
}
if (_modDef5268.USE_GIF) {
if (tmpResult27.isGifFile(byteLength)) {
const tmpResult28 = tmp(5279);
const findOffsetsResult1 = tmp(5279).findOffsets(byteLength);
const obj7 = { fileType: { value: "gif", description: "GIF" } };
return _mod5265.objectAssign({}, findOffsetsResult1, obj7);
}
tmpResult27 = tmp(5279);
}
if (_modDef5268.USE_XMP) {
if (tmpResult29.isXMLFile(byteLength)) {
const tmpResult30 = tmp(5280);
const findOffsetsResult2 = tmp(5280).findOffsets(byteLength);
const obj8 = { fileType: { value: "xml", description: "XML" } };
return _mod5265.objectAssign({}, findOffsetsResult2, obj8);
}
tmpResult29 = tmp(5280);
}
const error = new Error("Invalid image format");
throw error;
}
};