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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap 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 ↻ nx_jpeg_ctx_tables_reset nx_jpeg_ctx_htable_at nx_jpeg_ctx_htable_bind nx_jpeg_ctx_htable_at ↻ nx_jpeg_ctx_qtable_at

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