decord/source/module_4870.js

95 lines
3.6 KiB
JavaScript
Raw Normal View History

2026-08-03 11:20:01 +00:00
// Module ID: 4870
// Function ID: 4871
// Dependencies: [4871, 4872, 4874, 4875, 4876, 4880, 4881, 4882, 4883, 4868]
2026-07-31 08:44:05 +00:00
2026-08-03 11:20:01 +00:00
// Module 4870
2026-07-31 08:44:05 +00:00
const require = arg1;
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
parseAppMarkers(byteLength, flag2) {
2026-08-03 11:20:01 +00:00
if (module(4871).USE_TIFF) {
let tmpResult = tmp(4872);
2026-07-31 08:44:05 +00:00
if (tmpResult.isTiffFile(byteLength)) {
2026-08-03 11:20:01 +00:00
tmpResult = tmp(4872);
2026-07-31 08:44:05 +00:00
const findTiffOffsetsResult = tmpResult.findTiffOffsets();
let obj = { fileType: null };
obj[0] = { value: "tiff", description: "TIFF" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findTiffOffsetsResult, obj);
2026-07-31 08:44:05 +00:00
}
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_JPEG) {
2026-07-31 08:44:05 +00:00
if (tmpResult1.isJpegFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult2 = tmp(4874);
const findJpegOffsetsResult = tmp(4874).findJpegOffsets(byteLength);
2026-07-31 08:44:05 +00:00
obj = { fileType: null };
obj[0] = { value: "jpeg", description: "JPEG" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findJpegOffsetsResult, obj);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult1 = tmp(4874);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_PNG) {
2026-07-31 08:44:05 +00:00
if (tmpResult3.isPngFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult4 = tmp(4875);
const findPngOffsetsResult = tmp(4875).findPngOffsets(byteLength, flag2);
2026-07-31 08:44:05 +00:00
const obj1 = { fileType: null };
obj1[0] = { value: "png", description: "PNG" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findPngOffsetsResult, obj1);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult3 = tmp(4875);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_HEIC) {
2026-07-31 08:44:05 +00:00
if (tmpResult5.isHeicFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult6 = tmp(4876);
const findHeicOffsetsResult = tmp(4876).findHeicOffsets(byteLength);
2026-07-31 08:44:05 +00:00
const obj2 = { fileType: null };
obj2[0] = { value: "heic", description: "HEIC" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findHeicOffsetsResult, obj2);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult5 = tmp(4876);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_AVIF) {
2026-07-31 08:44:05 +00:00
if (tmpResult7.isAvifFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult8 = tmp(4880);
const findAvifOffsetsResult = tmp(4880).findAvifOffsets(byteLength);
2026-07-31 08:44:05 +00:00
const obj3 = { fileType: null };
obj3[0] = { value: "avif", description: "AVIF" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findAvifOffsetsResult, obj3);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult7 = tmp(4880);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_WEBP) {
2026-07-31 08:44:05 +00:00
if (tmpResult9.isWebpFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult10 = tmp(4881);
const findOffsetsResult = tmp(4881).findOffsets(byteLength);
2026-07-31 08:44:05 +00:00
const obj4 = { fileType: null };
obj4[0] = { value: "webp", description: "WebP" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findOffsetsResult, obj4);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult9 = tmp(4881);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_GIF) {
2026-07-31 08:44:05 +00:00
if (tmpResult11.isGifFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult12 = tmp(4882);
const findOffsetsResult1 = tmp(4882).findOffsets(byteLength);
2026-07-31 08:44:05 +00:00
const obj5 = { fileType: null };
obj5[0] = { value: "gif", description: "GIF" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findOffsetsResult1, obj5);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult11 = tmp(4882);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
if (module(4871).USE_XMP) {
2026-07-31 08:44:05 +00:00
if (tmpResult13.isXMLFile(byteLength)) {
2026-08-03 11:20:01 +00:00
const tmpResult14 = tmp(4883);
const findOffsetsResult2 = tmp(4883).findOffsets(byteLength);
2026-07-31 08:44:05 +00:00
const obj6 = { fileType: null };
obj6[0] = { value: "xml", description: "XML" };
2026-08-03 11:20:01 +00:00
return require(4868) /* getDataView */.objectAssign({}, findOffsetsResult2, obj6);
2026-07-31 08:44:05 +00:00
}
2026-08-03 11:20:01 +00:00
tmpResult13 = tmp(4883);
2026-07-31 08:44:05 +00:00
}
const error = new Error("Invalid image format");
throw error;
}
};