decord/source/__polyfill/05xxx/module_5337.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

49 lines
1.4 KiB
JavaScript

// Module ID: 5337
// Function ID: 5338
// Dependencies: [5314, 5315, 5294]
// Module 5337
import _mod5294 from "module_5294" /* 5294 */;
import get0thIfdOffset from "get0thIfdOffset" /* 5314 */;
import IFD_TYPE_0TH from "IFD_TYPE_0TH" /* 5315 */;
require = arg1;
const dependencyMap = arg6;
export default {
read(byteLength, sum, arg2, byteOrder, arg4) {
const ifd = get0thIfdOffset.readIfd(byteLength, IFD_TYPE_0TH.IFD_TYPE_CANON, sum, sum + arg2, byteOrder, arg4);
let tmp6 = ifd;
if (ifd.ShotInfo) {
value = ifd.ShotInfo.value;
const obj2 = {};
if (undefined !== value[27]) {
const obj3 = { value: value[27], description: null };
let str = "None";
if (0 !== value[27]) {
let str2 = "Rotate 90 CW";
if (1 !== tmp7) {
let str3 = "Rotate 180";
if (2 !== tmp7) {
let str4 = "Unknown";
if (3 === tmp7) {
str4 = "Rotate 270 CW";
}
str3 = str4;
}
str2 = str3;
}
str = str2;
}
obj3.description = str;
obj2.AutoRotate = obj3;
}
const tmp3Result = _mod5294;
delete tmp[tmp2];
tmp6 = _mod5294.objectAssign({}, ifd, obj2);
const objectAssignResult = _mod5294.objectAssign({}, ifd, obj2);
}
return tmp6;
},
SHOT_INFO_AUTO_ROTATE: 27
};