JPEG Decoder ⚡🔧

Pure WAT Edition — All Math Functions in WebAssembly Text Format

No JS code generators — every function is hand-written WAT compiled to WASM at runtime

⏳ Compiling WASM...
📁

Drop a JPEG here or click to browse

Baseline JPEG — decoded with pure WAT WebAssembly & 11-term Taylor series

Try a sample:
🧬 Pure WAT Architecture — No JS Code Generators
All 6 builder functions converted from JS string-generation to direct WAT source code
WAT$reduce_angle
Range reduction to [-π, π] using f64.nearest
~10 WAT lines
WAT$taylor_sin
11-term Taylor sin with iterative multiplier pattern
~35 WAT lines
WAT$taylor_cos
11-term Taylor cos with iterative multiplier pattern
~35 WAT lines
WAT$clamp_u8
Float to u8 with rounding and clamping via if/else
~12 WAT lines
WAT$dequantize_block
Loop-based 64-element coefficient × quantization multiply
~15 WAT lines
WAT$idct_8x8
Separable row/column IDCT with nested block/loop + Taylor cos
~80 WAT lines
WAT$ycbcr_to_rgb
BT.601 color conversion with inline clamp calls
~15 WAT lines
✅ Previous: JS functions like buildReduceAngle(), buildTaylorIterative() generated WAT strings dynamically
✅ Now: All functions exist as static WAT source text — readable, auditable, hand-authored