code wiki / _hdl_build / nx_imgproof.nx

nx_imgproof.nx

buildroot/runtime/_hdl_build/nx_imgproof.nx

1534 B34 linesdepth 11pulls 47 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_imgproof.nx -- prove the sovereign image DECODE path end-to-end: decode a real JPEG + PNG (in-memory bytes) via nx_img_to_rgb, re-emit as PNG so we can SEE them. Isolates decode (the riskiest piece) from fetch/layout/blit. Riskiest per recon: JPEG=baseline-only, PNG=truecolor-only (no palette/interlace).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_img_to_rgb.nx nx_png_write.nx nx_imgproof.nx

imports: nx_syscalls.nxnx_img_to_rgb.nxnx_png_write.nx

imported by: nobody (leaf or entry point)

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

main do_one sys_mmap nx_img_to_rgb sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close 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_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_sos_parse prog_next_marker prog_scan nx_jpeg_mcu_scratch_init nx_jpeg_dequant_un_zigzag nx_jpeg_idct_8x8 nx_jpeg_decode sys_mmap ↻ nx_jpeg_seg_init ↻ nx_jpeg_seg_next ↻ nx_jpeg_sof_parse ↻

structs

none

consts

none

functions

8func ip(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: ipndo_one calls 1: sys_write
9func ipn(v: i64) -> i64
called by 1: do_one calls 3: ipsys_mmapsys_write
19func do_one(inpath: *u8, outpath: *u8, label: *u8) -> i64
30func main() -> i64
calls 1: do_one