decord/source/__polyfill/05xxx/module_5178.js
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

27 lines
594 B
JavaScript

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