decord/source/4789_getAutoRotateDescription.js

49 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4789
2026-07-27 11:26:19 +00:00
// Function ID: 41664
2026-07-20 16:05:17 +00:00
// Name: getAutoRotateDescription
2026-07-25 08:10:48 +00:00
// Dependencies: [4766, 4767, 4746]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4789 (getAutoRotateDescription)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
function getAutoRotateDescription(arg0) {
let str = "None";
if (0 !== arg0) {
let str2 = "Rotate 90 CW";
if (1 !== arg0) {
let str3 = "Rotate 180";
if (2 !== arg0) {
let str4 = "Unknown";
if (3 === arg0) {
str4 = "Rotate 270 CW";
}
str3 = str4;
}
str2 = str3;
}
str = str2;
}
return str;
}
arg5.default = {
read(byteLength, sum, arg2, byteOrder) {
2026-07-25 08:10:48 +00:00
let obj = require(4766) /* readTag */;
const ifd = obj.readIfd(byteLength, require(4767) /* IFD_TYPE_0TH */.IFD_TYPE_CANON, sum, sum + arg2, byteOrder, arg4);
2026-07-23 10:11:24 +00:00
let tmp3 = ifd;
2026-07-20 16:05:17 +00:00
if (ifd.ShotInfo) {
const value = ifd.ShotInfo.value;
obj = {};
if (undefined !== value[27]) {
obj = { value: value[27], description: getAutoRotateDescription(value[27]) };
obj.AutoRotate = obj;
}
2026-07-25 08:10:48 +00:00
const obj2 = require(4746) /* getStringFromDataView */;
2026-07-23 10:11:24 +00:00
delete tmp.ShotInfo;
2026-07-25 08:10:48 +00:00
tmp3 = require(4746) /* getStringFromDataView */.objectAssign({}, ifd, obj);
const objectAssignResult = require(4746) /* getStringFromDataView */.objectAssign({}, ifd, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
return tmp3;
2026-07-20 16:05:17 +00:00
},
SHOT_INFO_AUTO_ROTATE: 27
};