import { toHexString, readUInt32BE } from "./utils.js"; const J2C = { // TODO: this doesn't seem right. SIZ marker doesn't have to be right after the SOC validate: (input) => toHexString(input, 0, 4) === "ff4fff51", calculate: (input) => ({ height: readUInt32BE(input, 12), width: readUInt32BE(input, 8) }) }; export { J2C };