code wiki / (root) / nx_jpeg_mcu_test.nx

nx_jpeg_mcu_test.nx

buildroot/runtime/nx_jpeg_mcu_test.nx

4306 B127 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic jpeg
docsdependenciesstructsconstsfunctions

about

nx_jpeg_mcu_test.nx -- KAT for the MCU walker. Strategy: minimal grayscale 8x8 image (1 MCU, 1 block, 1 component). Bitstream design: DC category 0 -> "0" + no magnitude bits. Then AC EOB -> "0". Total 2 bits: 0b00000000 = 0x00. Expected output: all 64 IDCT samples are 0 (since all coefficients are 0), then level-shift +128 -> all samples = 128. Plane should have all 128s in the 8x8 region. Huffman tables: DC: BITS={1,0,...}, HUFFVAL={0}. symbol 0 = code "0" (1 bit) AC: BITS={1,0,...}, HUFFVAL={0x00}. symbol 0x00 = code "0" (1 bit) EOB expect_exit: 0 license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_jpeg_dht.nx nx_jpeg_mcu.nx nx_jpeg_idct.nx nx_jpeg_sof.nx nx_jpeg_mcu_test.nx

imports: nx_syscalls.nxnx_jpeg_dht.nxnx_jpeg_mcu.nxnx_jpeg_idct.nxnx_jpeg_sof.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_mcu_scratch_init sys_mmap ↻ nx_jpeg_idct_init_cos_tabl nx_jpeg_mcu_decode_one_blo nx_jpeg_ent_decode_block nx_jpeg_huff_decode_symbol nx_jpeg_ent_receive nx_jpeg_ent_extend nx_jpeg_dequant_un_zigzag sys_mmap ↻ nx_jpeg_zigzag_inverse_tab nx_jpeg_idct_8x8 sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

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