decord/source/__polyfill/05xxx/module_5265.js
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

90 lines
3.4 KiB
JavaScript

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