code wiki / (root) / nx_media_run.nx

nx_media_run.nx

buildroot/runtime/nx_media_run.nx

4133 B95 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic media
docsdependenciesstructsconstsfunctions

about

nx_media_run.nx -- EXPOSURE rung X0: a real, runnable tool (not a KAT). Reads a real image file from the staging path, runs person-presence (R2) on it, prints a verdict + metrics, and writes an ANNOTATED image (skin bounding box drawn in green) you can open and see. File-driven, like nx_write_run. input : knowledge/staging/media/frame.ppm (binary PPM) output: stdout + knowledge/staging/media/out.txt (verdict + metrics) knowledge/staging/media/annotated.ppm (input + bbox overlay) This is how the capability is USED: drop a real .ppm at the input path, run ./_offc/nx_sov_build_run.elf nx_media_run and read the verdict / open annotated.ppm. Sovereign: syscalls + nx_image + nx_ppm + nx_presence. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

syscalls.nx nx_image.nx nx_ppm.nx nx_presence.nx nx_media_run.nx

imports: syscalls.nxnx_image.nxnx_ppm.nxnx_presence.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_openat_wr sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close gp ppm_parse ppm_read_int ppm_skip_ws ppm_is_ws nx_image_alloc sys_mmap ↻ nx_presence_scan nx_image_get nx_skin_is_pixel nx_presence_classify gn draw_box nx_image_set ppm_write sys_openat_wr ↻ ppm_wr_int

structs

none

consts

20const MIN_SKIN: i64 = 50
21const MIN_CONC: i64 = 500

functions

23func gp(logfd: i64, s: *u8) -> i64
called by 1: main
30func gn(logfd: i64, v: i64) -> i64
called by 1: main
46func draw_box(img: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> i64
called by 1: main calls 1: nx_image_set
62func main() -> i64