83 lines
3.9 KiB
JavaScript
83 lines
3.9 KiB
JavaScript
// Module ID: 4789
|
|
// Function ID: 41630
|
|
// Name: getImageWidth
|
|
// Dependencies: []
|
|
|
|
// Module 4789 (getImageWidth)
|
|
function getImageWidth(byteLength, sum2) {
|
|
if (sum2 + 4 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const longAt = obj.getLongAt(byteLength, sum2);
|
|
obj = { value: longAt };
|
|
const _HermesInternal = HermesInternal;
|
|
obj.description = "" + longAt + "px";
|
|
return obj;
|
|
}
|
|
}
|
|
function getImageHeight(byteLength) {
|
|
if (arg1 + 4 + 4 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const longAt = obj.getLongAt(byteLength, arg1 + 4);
|
|
obj = { value: longAt };
|
|
const _HermesInternal = HermesInternal;
|
|
obj.description = "" + longAt + "px";
|
|
return obj;
|
|
}
|
|
}
|
|
function getBitDepth(byteLength) {
|
|
if (arg1 + 8 + 1 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const byteAt = obj.getByteAt(byteLength, arg1 + 8);
|
|
obj = { value: byteAt };
|
|
const _HermesInternal = HermesInternal;
|
|
obj.description = "" + byteAt;
|
|
return obj;
|
|
}
|
|
}
|
|
function getColorType(byteLength, arg1) {
|
|
if (arg1 + 9 + 1 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const byteAt = obj.getByteAt(byteLength, arg1 + 9);
|
|
obj = { value: byteAt, description: { email: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004383619097214925, play: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007364409210481833, stop: -0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006074470442887899, _onCellFocusCapture: -790002594962210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, BANGERS: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000729112894575066 }[byteAt] || "Unknown" };
|
|
return obj;
|
|
}
|
|
}
|
|
function getCompression(byteLength, arg1) {
|
|
if (arg1 + 10 + 1 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const byteAt = obj.getByteAt(byteLength, arg1 + 10);
|
|
obj = { value: byteAt };
|
|
let str = "Unknown";
|
|
if (0 === byteAt) {
|
|
str = "Deflate/Inflate";
|
|
}
|
|
obj.description = str;
|
|
return obj;
|
|
}
|
|
}
|
|
function getFilter(byteLength, arg1) {
|
|
if (arg1 + 11 + 1 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const byteAt = obj.getByteAt(byteLength, arg1 + 11);
|
|
obj = { value: byteAt };
|
|
let str = "Unknown";
|
|
if (0 === byteAt) {
|
|
str = "Adaptive";
|
|
}
|
|
obj.description = str;
|
|
return obj;
|
|
}
|
|
}
|
|
function getInterlace(byteLength, arg1) {
|
|
if (arg1 + 12 + 1 <= byteLength.byteLength) {
|
|
let obj = arg2(arg6[0]);
|
|
const byteAt = obj.getByteAt(byteLength, arg1 + 12);
|
|
obj = { value: byteAt, description: { <string:80574208>: null, <string:80506112>: null }[byteAt] || "Unknown" };
|
|
return obj;
|
|
}
|
|
}
|
|
arg5.default = {
|
|
read(byteLength) {
|
|
return { Image Width: getImageWidth(byteLength, arg1), Image Height: getImageHeight(byteLength, arg1), Bit Depth: getBitDepth(byteLength, arg1), Color Type: getColorType(byteLength, arg1), Compression: getCompression(byteLength, arg1), Filter: getFilter(byteLength, arg1), Interlace: getInterlace(byteLength, arg1) };
|
|
}
|
|
};
|