decord/source/__polyfill/05xxx/module_5302.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

31 lines
695 B
JavaScript

// Module ID: 5302
// Function ID: 5303
// Dependencies: [5303, 5301]
// Module 5302
import _modDef5301 from "module_5301" /* 5301 */;
import _modDef5303 from "module_5303" /* 5303 */;
importDefault = arg2;
const dependencyMap = arg6;
export default {
isTiffFile(byteLength) {
let tmp = byteLength;
if (tmp) {
tmp = byteLength.byteLength >= 4;
}
if (tmp) {
const uint16 = byteLength.getUint16(0);
tmp = byteLength.getUint16(2, uint16 === _modDef5303.LITTLE_ENDIAN) === 42;
}
return tmp;
},
findTiffOffsets() {
if (_modDef5301.USE_EXIF) {
return { hasAppMarkers: true, tiffHeaderOffset: 0 };
} else {
return {};
}
}
};