nx_img_place_test.nx
buildroot/runtime/nx_img_place_test.nx
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
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
structs
| none |
consts
| none |
functions
| 13 | func 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 } |
| 15 | func main() -> i64 |