code wiki / (root) / nx_facefind.nx

nx_facefind.nx

buildroot/runtime/nx_facefind.nx

4729 B89 linesdepth 10pulls 30 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_facefind.nx -- CLI over nx_facefind_lib (aesthetictwin AT30, 2026-09-16): the face box and both eye boxes of a mirrored photograph, from the sovereign cascade evaluator over the loaded (beta-only, licensed) cascade data. nx_facefind <jpeg> [min_face_permil] -> FACEFIND ... verdict=FOUND | NOFACE | NOEYES exit: 0 found | 2 usage | 3 unreadable | 4 decode failed | 5 cascade refused | 6 no face | 7 no eyes Sides follow the image: R is the eye on the image left (the subject's right in an unmirrored still). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_jpeg_ascii.nx nx_facefind_lib.nx nx_facefind.nx

imports: nx_syscalls.nxnx_jpeg_ascii.nxnx_facefind_lib.nx

imported by: nobody (leaf or entry point)

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

main fc_puts sys_write fc_atoi sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_jpeg_decode_luma sys_mmap ↻ nx_jpeg_dec_ctx_init sys_mmap ↻ nx_jpeg_ctx_tables_reset nx_jpeg_ctx_htable_at nx_jpeg_ctx_htable_bind nx_jpeg_ctx_htable_at ↻ nx_jpeg_ctx_qtable_at _jpeg_ascii_probe_sof sys_mmap ↻ nx_jpeg_seg_init nx_jpeg_seg_next nx_jpeg_classify_marker

structs

none

consts

11const FC_EXIT_USAGE: i64 = 2
12const FC_EXIT_READ: i64 = 3
13const FC_EXIT_DECODE: i64 = 4
14const FC_EXIT_CASCADE: i64 = 5
15const FC_EXIT_NOFACE: i64 = 6
16const FC_EXIT_NOEYES: i64 = 7
17const FC_ARGC_MIN: i64 = 2
18const FC_ARGC_PERMIL: i64 = 3
19const FC_I64: i64 = 8
20const FC_D0: i64 = 48
21const FC_D9: i64 = 57
22const FC_TEN: i64 = 10

functions

24func fc_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 2: fc_kvmain calls 1: sys_write
25func fc_putn(v: i64) -> i64
called by 1: fc_kv calls 2: sys_mmapsys_write
41func fc_kv(k: *u8, v: i64) -> i64 { fc_puts(k); fc_putn(v); return 0 }
called by 1: main calls 2: fc_putsfc_putn
42func fc_atoi(s: *u8) -> i64
called by 1: main
52func main(argc: i64, argv: **u8) -> i64