decord/source/module_4901.js
2026-08-04 08:36:32 +00:00

27 lines
594 B
JavaScript

// Module ID: 4901
// Function ID: 4902
// Dependencies: [4902, 4900]
// Module 4901
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
isTiffFile(byteLength) {
let tmp = byteLength;
if (tmp) {
tmp = byteLength.byteLength >= 4;
}
if (tmp) {
const uint16 = byteLength.getUint16(0);
tmp = byteLength.getUint16(2, uint16 === module(4902).LITTLE_ENDIAN) === 42;
}
return tmp;
},
findTiffOffsets() {
if (module(4900).USE_EXIF) {
return { hasAppMarkers: true, tiffHeaderOffset: 0 };
} else {
return {};
}
}
};