code wiki / _hdl_build / nx_img_sbs.nx

nx_img_sbs.nx

buildroot/runtime/_hdl_build/nx_img_sbs.nx

3119 B62 linesdepth 9pulls 14 transitivereach 0 importersview sourcekind tooltopic img
docsdependenciesstructsconstsfunctions

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

nx_visual_diff.nx nx_itoa_lib.nx nx_png_write.nx nx_img_sbs.nx

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

main sb_w vd_load sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_png_decode sys_mmap ↻ _png_check_signature _png_read_u32_be nx_crc32 nx_crc32_update nx_crc32_init nx_crc32_table_at _png_n_channels _png_bytes_per_pixel _png_n_channels ↻ _png_a7_expected _png_a7_col0 _png_a7_coli _png_a7_row0 _png_a7_rowi nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc sys_mmap ↻ _deflate_inflate_block nx_bitstream_read_lsb nx_bitstream_byte_align nx_bitstream_read_byte_ali _deflate_build_static_litl _deflate_build_static_dist _deflate_decode_huffman_bl sys_mmap ↻

structs

none

consts

11const SBS_GUTTER: i64 = 20

functions

13func 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
18func sb_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
19func 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
22func sb_blit(dst: *u8, dw: i64, im: *VdImg, yoff: i64, dx: i64, hh: i64) -> i64
called by 1: main
39func main(argc: i64, argv: *i64) -> i64