astro-ghostcms/.pnpm-store/v3/files/88/d6958e3f293b7f45aca1f90feb7...

13 lines
344 B
Plaintext

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
};