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

83 lines
2.7 KiB
JavaScript

// Module ID: 5338
// Function ID: 5339
// Dependencies: [5299, 5314, 5315, 5294]
// Module 5338
import _mod5294 from "module_5294" /* 5294 */;
import _modDef5299 from "module_5299" /* 5299 */;
import get0thIfdOffset from "get0thIfdOffset" /* 5314 */;
import IFD_TYPE_0TH from "IFD_TYPE_0TH" /* 5315 */;
require = arg1;
importDefault = arg2;
const dependencyMap = arg6;
const MODEL_ID = { K3_III: 78420 };
let obj2 = { CAMERA_ORIENTATION: 1, ROLL_ANGLE: 3, PITCH_ANGLE: 5 };
export default {
read(byteLength, arg1, arg2, arg3) {
const obj = _modDef5299;
const byteOrder = obj.getByteOrder(byteLength, arg1 + arg2 + 8);
const sum = arg1 + arg2;
obj2 = get0thIfdOffset;
const ifd = obj2.readIfd(byteLength, IFD_TYPE_0TH.IFD_TYPE_PENTAX, sum, sum + 10, byteOrder, arg3, true);
let LevelInfo = ifd.PentaxModelID;
if (LevelInfo) {
LevelInfo = ifd.PentaxModelID.value === obj.K3_III;
}
if (LevelInfo) {
LevelInfo = ifd.LevelInfo;
}
let tmp10 = ifd;
if (LevelInfo) {
const sum1 = sum + ifd.LevelInfo.__offset;
const obj3 = {};
if (sum1 + 7 <= byteLength.byteLength) {
const int8 = byteLength.getInt8(sum1 + obj2.CAMERA_ORIENTATION);
const obj4 = { value: int8, description: null };
let str6 = "Horizontal (normal)";
if (0 !== int8) {
let str = "Rotate 270 CW";
if (1 !== int8) {
let str2 = "Rotate 180";
if (2 !== int8) {
let str3 = "Rotate 90 CW";
if (3 !== int8) {
let str4 = "Upwards";
if (4 !== int8) {
let str5 = "Unknown";
if (5 === int8) {
str5 = "Downwards";
}
str4 = str5;
}
str3 = str4;
}
str2 = str3;
}
str = str2;
}
str6 = str;
}
obj4.description = str6;
obj3.CameraOrientation = obj4;
const sum2 = sum1 + tmp17.ROLL_ANGLE;
const int16 = byteLength.getInt16(sum2, byteOrder === tmp3(5299).LITTLE_ENDIAN);
const obj5 = { value: int16, description: "" + -0.5 * int16 };
obj3.RollAngle = obj5;
const sum3 = sum1 + tmp17.PITCH_ANGLE;
const int161 = byteLength.getInt16(sum3, byteOrder === tmp3(5299).LITTLE_ENDIAN);
const obj6 = { value: int161, description: "" + -0.5 * int161 };
obj3.PitchAngle = obj6;
}
const tmp7Result = _mod5294;
delete tmp[tmp2];
tmp10 = _mod5294.objectAssign({}, ifd, obj3);
const objectAssignResult = _mod5294.objectAssign({}, ifd, obj3);
}
return tmp10;
},
PENTAX_IFD_OFFSET: 10,
MODEL_ID,
LIK3III: obj2
};