code wiki / (root) / nx_mediajudge.nx

nx_mediajudge.nx

buildroot/runtime/nx_mediajudge.nx

4579 B58 linesdepth 12pulls 69 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_mediajudge_lib.nx nx_mediajudge.nx

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

main mjc_usage 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 ↻ mj_load_cascades sys_mmap ↻ ff_load_face hx_load sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close hx_parse hx_find hx_slen hx_skip_ws hx_is_ws hx_slen ↻ sys_mmap ↻ hx_tag_int hx_find ↻ hx_int hx_slen ↻

structs

none

consts

15const MJC_EXIT_USAGE: i64 = 2
16const MJC_EXIT_READ: i64 = 3
17const MJC_EXIT_DECODE: i64 = 4
18const MJC_EXIT_WRITE: i64 = 5
19const MJC_ARGC_JUDGE: i64 = 5
20const MJC_ARGC_JUDGE_ORACLE: i64 = 6
21const MJC_ARGC_JUDGE_HREF: i64 = 7
22const MJC_NO_ORACLE: *u8 = "-"

functions

24func 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
25func mjc_kv(k: *u8, v: i64) -> i64 { ri_puts(k); ri_putn(v); return 0 }
called by 1: main
27func main(argc: i64, argv: **u8) -> i64