decord/source/__polyfill/05xxx/module_5215.js
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

96 lines
3.5 KiB
JavaScript

// Module ID: 5215
// Function ID: 5216
// Dependencies: [5216, 5217, 5219, 5220, 5221, 5225, 5226, 5227, 5228, 5213]
// Module 5215
import getDataView from "getDataView" /* 5213 */;
require = arg1;
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
parseAppMarkers(byteLength, flag2) {
if (module(5216).USE_TIFF) {
let tmpResult = tmp(5217);
if (tmpResult.isTiffFile(byteLength)) {
tmpResult = tmp(5217);
const findTiffOffsetsResult = tmpResult.findTiffOffsets();
let obj = { fileType: null };
obj[0] = { value: "tiff", description: "TIFF" };
return getDataView.objectAssign({}, findTiffOffsetsResult, obj);
}
}
if (module(5216).USE_JPEG) {
if (tmpResult1.isJpegFile(byteLength)) {
const tmpResult2 = tmp(5219);
const findJpegOffsetsResult = tmp(5219).findJpegOffsets(byteLength);
obj = { fileType: null };
obj[0] = { value: "jpeg", description: "JPEG" };
return getDataView.objectAssign({}, findJpegOffsetsResult, obj);
}
tmpResult1 = tmp(5219);
}
if (module(5216).USE_PNG) {
if (tmpResult3.isPngFile(byteLength)) {
const tmpResult4 = tmp(5220);
const findPngOffsetsResult = tmp(5220).findPngOffsets(byteLength, flag2);
obj1 = { fileType: null };
obj1[0] = { value: "png", description: "PNG" };
return getDataView.objectAssign({}, findPngOffsetsResult, obj1);
}
tmpResult3 = tmp(5220);
}
if (module(5216).USE_HEIC) {
if (tmpResult5.isHeicFile(byteLength)) {
const tmpResult6 = tmp(5221);
const findHeicOffsetsResult = tmp(5221).findHeicOffsets(byteLength);
const obj2 = { fileType: null };
obj2[0] = { value: "heic", description: "HEIC" };
return getDataView.objectAssign({}, findHeicOffsetsResult, obj2);
}
tmpResult5 = tmp(5221);
}
if (module(5216).USE_AVIF) {
if (tmpResult7.isAvifFile(byteLength)) {
const tmpResult8 = tmp(5225);
const findAvifOffsetsResult = tmp(5225).findAvifOffsets(byteLength);
const obj3 = { fileType: null };
obj3[0] = { value: "avif", description: "AVIF" };
return getDataView.objectAssign({}, findAvifOffsetsResult, obj3);
}
tmpResult7 = tmp(5225);
}
if (module(5216).USE_WEBP) {
if (tmpResult9.isWebpFile(byteLength)) {
const tmpResult10 = tmp(5226);
const findOffsetsResult = tmp(5226).findOffsets(byteLength);
const obj4 = { fileType: null };
obj4[0] = { value: "webp", description: "WebP" };
return getDataView.objectAssign({}, findOffsetsResult, obj4);
}
tmpResult9 = tmp(5226);
}
if (module(5216).USE_GIF) {
if (tmpResult11.isGifFile(byteLength)) {
const tmpResult12 = tmp(5227);
const findOffsetsResult1 = tmp(5227).findOffsets(byteLength);
const obj5 = { fileType: null };
obj5[0] = { value: "gif", description: "GIF" };
return getDataView.objectAssign({}, findOffsetsResult1, obj5);
}
tmpResult11 = tmp(5227);
}
if (module(5216).USE_XMP) {
if (tmpResult13.isXMLFile(byteLength)) {
const tmpResult14 = tmp(5228);
const findOffsetsResult2 = tmp(5228).findOffsets(byteLength);
const obj6 = { fileType: null };
obj6[0] = { value: "xml", description: "XML" };
return getDataView.objectAssign({}, findOffsetsResult2, obj6);
}
tmpResult13 = tmp(5228);
}
error = new Error("Invalid image format");
throw error;
}
};