code wiki / _hdl_build / nx_ppm_to_png.nx
nx_ppm_to_png.nx
buildroot/runtime/_hdl_build/nx_ppm_to_png.nx
about
nx_ppm_to_png.nx -- sovereign P6 PPM -> PNG converter (viewing/interop tool for framebuffer dumps that Nishi
Windows surfaces write via win_writefile). Parses the P6 header (magic, w, h, maxval) then encodes RGB via
nx_png_write. usage: nx_ppm_to_png <in.ppm> <out.png>. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.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
structs
| none |
consts
| none |
functions
| 7 | func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func skipws(buf: *u8, n: i64, p: i64) -> i64 called by 1: rdint |
| 24 | func rdint(buf: *u8, n: i64, p: *i64) -> i64 |
| 39 | func main(argc: i64, argv: *i64) -> i64 |