decord/source/__polyfill/05xxx/module_5217.js
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

27 lines
594 B
JavaScript

// Module ID: 5217
// Function ID: 5218
// Dependencies: [5218, 5216]
// Module 5217
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(5218).LITTLE_ENDIAN) === 42;
}
return tmp;
},
findTiffOffsets() {
if (module(5216).USE_EXIF) {
return { hasAppMarkers: true, tiffHeaderOffset: 0 };
} else {
return {};
}
}
};