wai-web: full JPEG-AI decode in wasm (decodeJpegAiFull) — re-land #59

Merged
dcharlot merged 1 commit from wai-jpegai-full-wasm into main 2026-08-25 17:12:07 -04:00

2026-08-24

Transaction Science
wai-web: full JPEG-AI codestream→RGB decode in wasm (decodeJpegAiFull)
The whole byte-exact decoder (wai::jpegai_decode::decode) as a browser entry: 13
byte inputs (codestream + the model weight bundle from wai_jpegai_build_e2e_inputs.py
+ norm tables), returns the decoded RGB. Same integer decoder a native sink runs,
compiled to wasm32.

Verified in node: decodes test256 to 256x256 in ~8s and the RGB is byte-identical
to the native decode (sha256 dbc494a5…, the same digest the reconstruction-binding
test produced natively) — decode-equivalence across host and browser. The JS side
passes raw bytes; the wasm parses, so there is no JS-side double-parse. Drives the
full-image path of the /jpegai demo.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-08-24 23:18:11 -04:00