decord/source/module_4975.js

28 lines
594 B
JavaScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 4975
// Function ID: 4976
2026-08-12 06:57:52 +00:00
// Dependencies: [4976, 4974]
2026-08-07 06:50:47 +00:00
// Module 4975
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
2026-08-12 06:57:52 +00:00
isTiffFile(byteLength) {
let tmp = byteLength;
if (tmp) {
tmp = byteLength.byteLength >= 4;
2026-08-07 06:50:47 +00:00
}
2026-08-12 06:57:52 +00:00
if (tmp) {
const uint16 = byteLength.getUint16(0);
tmp = byteLength.getUint16(2, uint16 === module(4976).LITTLE_ENDIAN) === 42;
2026-08-07 06:50:47 +00:00
}
2026-08-12 06:57:52 +00:00
return tmp;
2026-08-08 06:10:11 +00:00
},
2026-08-12 06:57:52 +00:00
findTiffOffsets() {
if (module(4974).USE_EXIF) {
return { hasAppMarkers: true, tiffHeaderOffset: 0 };
} else {
return {};
}
}
2026-08-07 06:50:47 +00:00
};