decord/source/module_4916.js

28 lines
594 B
JavaScript
Raw Normal View History

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