decord/source/module_4872.js

28 lines
594 B
JavaScript
Raw Normal View History

2026-08-03 11:20:01 +00:00
// Module ID: 4872
// Function ID: 4873
// Dependencies: [4873, 4871]
2026-07-28 08:39:19 +00:00
2026-08-03 11:20:01 +00:00
// Module 4872
2026-07-29 08:29:29 +00:00
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
isTiffFile(byteLength) {
let tmp = byteLength;
if (tmp) {
tmp = byteLength.byteLength >= 4;
2026-07-28 08:39:19 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp) {
const uint16 = byteLength.getUint16(0);
2026-08-03 11:20:01 +00:00
tmp = byteLength.getUint16(2, uint16 === module(4873).LITTLE_ENDIAN) === 42;
2026-07-28 08:39:19 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
},
findTiffOffsets() {
2026-08-03 11:20:01 +00:00
if (module(4871).USE_EXIF) {
2026-07-29 08:29:29 +00:00
return { hasAppMarkers: true, tiffHeaderOffset: 0 };
} else {
return {};
2026-07-28 08:39:19 +00:00
}
}
};