nx_jpeg_decode_test.nx
buildroot/runtime/nx_jpeg_decode_test.nx
about
nx_jpeg_decode_test.nx -- KAT for top-level baseline-JPEG decoder.
Constructs a minimal grayscale 8x8 JPEG byte-by-byte (137 bytes)
then decodes it end-to-end via nx_jpeg_decode. Verifies the
output plane is all 128 (zero-coefficient block + level shift).
JPEG byte layout:
FF D8 SOI
FF DB 00 43 00 + 64x01 DQT (Pq=0 Tq=0, all-ones identity quant)
FF C4 00 26 DHT (DC + AC stacked, 36-byte payload)
00 01 00...00 00 DC: tc=0 th=0, BITS={1,0...0}, HUFFVAL={0}
10 01 00...00 00 AC: tc=1 th=0, BITS={1,0...0}, HUFFVAL={0}
FF C0 00 0B SOF0 (1 comp, 8x8)
08 00 08 00 08 01 01 11 00
FF DA 00 08 SOS (1 comp)
01 01 00 00 3F 00
00 entropy: DC cat 0 + AC EOB
FF D9 EOI
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_jpeg_decode.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 26 | func _fail(n: i64) -> i64 |
| 46 | func main() -> i64 |