nx_skinsample.nx
buildroot/runtime/nx_skinsample.nx
about
nx_skinsample.nx -- CLI over nx_skinsample_lib (aesthetictwin AT23, 2026-09-16): skin colour measured from a mirrored
photograph and written onto a twin card as MEASURED rows.
nx_skinsample measure <jpeg> -> decode, mask, print L a b (x1e3), ITA (deg10), mask count and coverage
nx_skinsample card <slug> <refkey> <jpeg> <when> -> measure, then append skin_L skin_a skin_b ita rows to knowledge/twincard/<slug>.card
(refused when any of those rows already exists: retire the observed row first)
exit: 0 ok | 2 usage | 3 unreadable | 4 decode failed (not a baseline or progressive JPEG the estate decodes) | 5 UNMEASURED
(no pixel passed the skin mask) | 6 rows exist
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_skinsample_lib.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
| 12 | const SKC_EXIT_USAGE: i64 = 2 |
| 13 | const SKC_EXIT_READ: i64 = 3 |
| 14 | const SKC_EXIT_DECODE: i64 = 4 |
| 15 | const SKC_EXIT_UNMEASURED: i64 = 5 |
| 16 | const SKC_EXIT_EXISTS: i64 = 6 |
| 17 | const SKC_ARGC_MEASURE: i64 = 3 |
| 18 | const SKC_ARGC_CARD: i64 = 6 |
| 19 | const SKC_PERMIL: i64 = 1000 |
functions
| 21 | func skc_usage() -> i64 called by 1: main |
| 25 | func skc_report(path: *u8, res: *i64) -> i64 called by 1: main |
| 39 | func skc_rc(rc: i64) -> i64 called by 1: main |
| 46 | func main(argc: i64, argv: *i64) -> i64 |