code wiki / (root) / nx_jpeg_dht_test.nx

nx_jpeg_dht_test.nx

buildroot/runtime/nx_jpeg_dht_test.nx

8561 B195 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic jpeg
docsdependenciesstructsconstsfunctions

about

nx_jpeg_dht_test.nx -- KAT for DHT parser + Huffman decode. Test cases: A. Synthetic 2-symbol table: BITS={1,1,0...}, HUFFVAL={0x05, 0x06}. Symbol 0x05 -> code "0" (1 bit); symbol 0x06 -> code "10" (2 bits). B. Decode test: bitstream "0 10 0 0" packed MSB-first = 0x40, should yield symbols [0x05, 0x06, 0x05, 0x05]. C. Dual-table payload (luma DC + luma AC stacked). D. Malformed -- BITS sum >256 truncation. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_jpeg_dht.nx nx_jpeg_dht_test.nx

imports: nx_syscalls.nxnx_jpeg_dht.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nx_jpeg_dht_parse nx_jpeg_dht_build_decode_t _fail sys_mmap ↻ sys_write nx_jpeg_huff_decode_symbol sys_write ↻

structs

none

consts

none

functions

17func _fail(n: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
37func main() -> i64