88 lines
2.2 KiB
JavaScript
88 lines
2.2 KiB
JavaScript
// Metro module 4848 (f4849).
|
|
import Module4819 from "./Module4819";
|
|
export default {
|
|
read: function read(a0, a1) {
|
|
const r4 = a1 + 0 + 4 > a0.byteLength;
|
|
let r16 = void 0;
|
|
if (!r4) {
|
|
const longAt = Module4819.getLongAt(a0, a1);
|
|
r16 = {
|
|
value: longAt,
|
|
description: `${longAt}px`
|
|
};
|
|
}
|
|
const r30 = a1 + 4 + 4 > a0.byteLength;
|
|
let r31 = void 0;
|
|
if (!r30) {
|
|
const longAt2 = Module4819.getLongAt(a0, a1 + 4);
|
|
r31 = {
|
|
value: longAt2,
|
|
description: `${longAt2}px`
|
|
};
|
|
}
|
|
const r49 = a1 + 8 + 1 > a0.byteLength;
|
|
let r50 = void 0;
|
|
if (!r49) {
|
|
const byteAt = Module4819.getByteAt(a0, a1 + 8);
|
|
r50 = {
|
|
value: byteAt,
|
|
description: `${byteAt}`
|
|
};
|
|
}
|
|
const r68 = a1 + 9 + 1 > a0.byteLength;
|
|
let r69 = void 0;
|
|
if (!r68) {
|
|
const byteAt2 = Module4819.getByteAt(a0, a1 + 9);
|
|
r69 = {
|
|
value: byteAt2,
|
|
description: ({
|
|
0: "Grayscale",
|
|
2: "RGB",
|
|
3: "Palette",
|
|
4: "Grayscale with Alpha",
|
|
6: "RGB with Alpha"
|
|
})[byteAt2] || "Unknown"
|
|
};
|
|
}
|
|
const r84 = a1 + 10 + 1 > a0.byteLength;
|
|
let Compression = void 0;
|
|
if (!r84) {
|
|
const byteAt3 = Module4819.getByteAt(a0, a1 + 10);
|
|
Compression = {
|
|
value: byteAt3,
|
|
description: byteAt3 === 0 ? "Deflate/Inflate" : "Unknown"
|
|
};
|
|
}
|
|
const r99 = a1 + 11 + 1 > a0.byteLength;
|
|
let Filter = void 0;
|
|
if (!r99) {
|
|
const byteAt4 = Module4819.getByteAt(a0, a1 + 11);
|
|
Filter = {
|
|
value: byteAt4,
|
|
description: byteAt4 === 0 ? "Adaptive" : "Unknown"
|
|
};
|
|
}
|
|
const r114 = a1 + 12 + 1 > a0.byteLength;
|
|
let Interlace = void 0;
|
|
if (!r114) {
|
|
const byteAt5 = Module4819.getByteAt(a0, a1 + 12);
|
|
Interlace = {
|
|
value: byteAt5,
|
|
description: ({
|
|
0: "Noninterlaced",
|
|
1: "Adam7 Interlace"
|
|
})[byteAt5] || "Unknown"
|
|
};
|
|
}
|
|
return {
|
|
"Image Width": r16,
|
|
"Image Height": r31,
|
|
"Bit Depth": r50,
|
|
"Color Type": r69,
|
|
Compression,
|
|
Filter,
|
|
Interlace
|
|
};
|
|
}
|
|
};
|