decord/source/__polyfill/05xxx/module_5217.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

50 lines
1.4 KiB
JavaScript

// Module ID: 5217
// Function ID: 5218
// Dependencies: [5194, 5195, 5174]
// Module 5217
import getDataView from "getDataView" /* 5174 */;
import readTag from "readTag" /* 5194 */;
import importDefaultResult1 from "importDefaultResult1" /* 5195 */;
require = arg1;
const dependencyMap = arg6;
arg5.default = {
read(byteLength, sum, arg2, byteOrder) {
let obj = readTag;
const ifd = obj.readIfd(byteLength, importDefaultResult1.IFD_TYPE_CANON, sum, sum + arg2, byteOrder, arg4);
let tmp6 = ifd;
if (ifd.ShotInfo) {
const value = ifd.ShotInfo.value;
obj = {};
if (undefined !== value[27]) {
obj = { value: null, description: null };
obj[0] = value[27];
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;
}
obj[1] = str;
obj.AutoRotate = obj;
}
const tmp3Result = getDataView;
delete tmp[tmp2];
tmp6 = getDataView.objectAssign({}, ifd, obj);
const objectAssignResult = getDataView.objectAssign({}, ifd, obj);
}
return tmp6;
},
SHOT_INFO_AUTO_ROTATE: 27
};