69 lines
1.6 KiB
JavaScript
69 lines
1.6 KiB
JavaScript
// Metro module 4852 (f4853).
|
|
import { getStringFromDataView } from "./Module4802";
|
|
export default {
|
|
read: function read(a0) {
|
|
const r4 = 6 > a0.byteLength;
|
|
let r7 = void 0;
|
|
if (!r4) {
|
|
const stringFromDataView = getStringFromDataView(a0, 3, 3);
|
|
r7 = {
|
|
value: stringFromDataView,
|
|
description: stringFromDataView
|
|
};
|
|
}
|
|
const r24 = 8 > a0.byteLength;
|
|
let r25 = void 0;
|
|
if (!r24) {
|
|
const uint16 = a0.getUint16(6, true);
|
|
r25 = {
|
|
value: uint16,
|
|
description: `${uint16}px`
|
|
};
|
|
}
|
|
const r34 = 10 > a0.byteLength;
|
|
let r35 = void 0;
|
|
if (!r34) {
|
|
const uint162 = a0.getUint16(8, true);
|
|
r35 = {
|
|
value: uint162,
|
|
description: `${uint162}px`
|
|
};
|
|
}
|
|
const r48 = 11 > a0.byteLength;
|
|
let r49 = void 0;
|
|
if (!r48) {
|
|
const value = (128 & a0.getUint8(10)) >>> 7;
|
|
r49 = {
|
|
value,
|
|
description: value === 1 ? "Yes" : "No"
|
|
};
|
|
}
|
|
const r58 = 11 > a0.byteLength;
|
|
let r59 = void 0;
|
|
if (!r58) {
|
|
const value2 = 1 + (7 & a0.getUint8(10));
|
|
r59 = {
|
|
value: value2,
|
|
description: `${value2} ${value2 === 1 ? "bit" : "bits"}`
|
|
};
|
|
}
|
|
const r75 = 11 > a0.byteLength;
|
|
let r76 = void 0;
|
|
if (!r75) {
|
|
const value3 = 1 + ((112 & a0.getUint8(10)) >>> 4);
|
|
r76 = {
|
|
value: value3,
|
|
description: `${value3} ${value3 === 1 ? "bit" : "bits"}`
|
|
};
|
|
}
|
|
return {
|
|
"GIF Version": r7,
|
|
"Image Width": r25,
|
|
"Image Height": r35,
|
|
"Global Color Map": r49,
|
|
"Bits Per Pixel": r59,
|
|
"Color Resolution Depth": r76
|
|
};
|
|
}
|
|
};
|