nx_mediajudge.nx
buildroot/runtime/nx_mediajudge.nx
about
nx_mediajudge.nx -- aesthetictwin AT36 (2026-09-17): the CLI over nx_mediajudge_lib. Submitted media through the beauty
rulers with a report: the still is decoded by the estate's chokepoint (JPEG, PNG, GIF first frame, WebP lossless, BMP,
TIFF, TGA, PCX, ICO, PNM; an APNG is judged on its first frame with the frame count announced), measured by the photo
ruler, the skin ruler and the symmetry judge, and the outputs land beside each other in <outdir>: the original copy, the
overlay PNG of what the rulers saw, the manifest in nx_asset_page's row shape, the slug-keyed plane staging file for
nx_store_seed (nx_asset_page emit reads the asset plane) and the judge file in the estate's pipe grammar.
nx_mediajudge judge <slug> <file> <outdir> [oracle-file|-] [href-prefix] -> MEDIAJUDGE receipt line
href-prefix is the site-absolute path the published page's asset hrefs carry (/compare/<dom>/media/<slug>/): the edge
301-strips trailing slashes, so a relative href resolves against the PARENT and nx_page_verify names it BROKEN-BY-LAW.
exit: 0 ok | 2 usage | 3 unreadable | 4 no decoder took the bytes | 5 an output refused
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_mediajudge_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
| 15 | const MJC_EXIT_USAGE: i64 = 2 |
| 16 | const MJC_EXIT_READ: i64 = 3 |
| 17 | const MJC_EXIT_DECODE: i64 = 4 |
| 18 | const MJC_EXIT_WRITE: i64 = 5 |
| 19 | const MJC_ARGC_JUDGE: i64 = 5 |
| 20 | const MJC_ARGC_JUDGE_ORACLE: i64 = 6 |
| 21 | const MJC_ARGC_JUDGE_HREF: i64 = 7 |
| 22 | const MJC_NO_ORACLE: *u8 = "-" |
functions
| 24 | func mjc_usage() -> i64 { ri_puts("usage: nx_mediajudge judge <slug> <file> <outdir> [oracle-file|-] [href-prefix]\n" as *u8); return MJC_EXIT_USAGE } called by 1: main |
| 25 | func mjc_kv(k: *u8, v: i64) -> i64 { ri_puts(k); ri_putn(v); return 0 } called by 1: main |
| 27 | func main(argc: i64, argv: **u8) -> i64 |