decord/source/__polyfill/05xxx/module_5176.js
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

96 lines
3.5 KiB
JavaScript

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