code wiki / _hdl_build / nx_imgdecode_test.nx

nx_imgdecode_test.nx

buildroot/runtime/_hdl_build/nx_imgdecode_test.nx

1519 B33 linesdepth 10pulls 45 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_imgdecode_test.nx -- isolate the shared image decoder: read an encoded image file and run it through nx_img_bytes_to_rgb (the EXACT decode the GUI uses), report success + dimensions + first pixels.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_img_bytes_to_rgb.nx nx_imgdecode_test.nx

imports: nx_syscalls.nxnx_img_bytes_to_rgb.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close pw sys_write pn pw ↻ sys_mmap ↻ sys_write ↻ nx_img_bytes_to_rgb sys_mmap ↻ nx_jpeg_decode_rgb sys_mmap ↻ nx_jpeg_dec_ctx_init sys_mmap ↻ _jpeg_ascii_probe_sof sys_mmap ↻ nx_jpeg_seg_init nx_jpeg_seg_next nx_jpeg_classify_marker nx_jpeg_marker_is_lengthle nx_jpeg_sof_parse nx_jpeg_is_progressive prog_be16 nx_jpeg_prog_decode sys_mmap ↻ prog_be16 ↻ nx_jpeg_dqt_parse nx_jpeg_dht_parse nx_jpeg_dht_build_decode_t nx_jpeg_sos_parse prog_next_marker prog_scan sys_mmap ↻ nx_jpeg_huff_decode_symbol

structs

none

consts

none

functions

6func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: pnmain calls 1: sys_write
7func pn(v: i64) -> i64
called by 1: main calls 3: pwsys_mmapsys_write
16func main(argc: i64, argv: *i64) -> i64