code wiki / (root) / nx_img_place_test.nx

nx_img_place_test.nx

buildroot/runtime/nx_img_place_test.nx

2860 B61 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic img
docsdependenciesstructsconstsfunctions

about

nx_img_place_test.nx -- gate for image luminance + aspect-fit + scale-blit (no PNG dependency; uses a synthetic in-memory decoded image so this gate stays independent of the decoder's own gates). Unique exit codes per invariant: 1x luminance: red->76, green->149, blue->28, white->255 (Rec.601 integer weights) 2x grayscale (n_channels=1) passes the byte through 3x aspect-fit: 200x100 into 100x100 -> 100x50 ; 100x200 into 100x100 -> 50x100 4x nearest-neighbor 2x upscale-blit places each source pixel as a 2x2 block at the right offset expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_img_place.nx nx_img_place_test.nx

imports: nx_syscalls.nxnx_img_place.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 nx_img_to_gray nx_img_fit nx_img_blit t_puts sys_write

structs

none

consts

none

functions

13func t_puts(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 calls 1: sys_write
15func main() -> i64