code wiki / _hdl_build / nx_img_sbs.nx
nx_img_sbs.nx
buildroot/runtime/_hdl_build/nx_img_sbs.nx
about
nx_img_sbs.nx -- sovereign SIDE-BY-SIDE evidence compositor: oracle screenshot | Nishi screenshot into
ONE image, so a visual-parity claim is a single artifact a human can eyeball (the "show me the comp"
primitive of the evidence workstream). Crops each input to the same row window (skips browser chrome
bars), places A left / B right with a neutral gutter. usage:
nx_img_sbs <A.png> <ay> <B.png> <by> <H> <out.png>
A rows [ay..ay+H) left, B rows [by..by+H) right, gutter 20px #303845. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_visual_diff.nxnx_itoa_lib.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
| 11 | const SBS_GUTTER: i64 = 20 |
functions
| 13 | func sb_w(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 1: main |
| 18 | func sb_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 19 | func sb_atoi(s: *u8) -> i64 { var v: i64=0; var i: i64=0; while s[i]!=(0 as u8){ let c: i64=(s[i] as i64)&255; if c>=48 { if c<=57 { v=v*10+(c-48) } } i=i+1 } return v } called by 1: main |
| 22 | func sb_blit(dst: *u8, dw: i64, im: *VdImg, yoff: i64, dx: i64, hh: i64) -> i64 called by 1: main |
| 39 | func main(argc: i64, argv: *i64) -> i64 |