code wiki / _hdl_build / nx_companion_wardrobe.nx

nx_companion_wardrobe.nx

buildroot/runtime/_hdl_build/nx_companion_wardrobe.nx

6012 B93 linesdepth 3pulls 3 transitivereach 7 importersview sourcekind librarytopic companion
docsdependenciesstructsconstsfunctions

about

nx_companion_wardrobe.nx -- the CompanionWardrobe object: the occlusion-aware photo-prompt compiler (the Z-Image "painter not compositor" fix). Resolves a scene into per-zone clothing-OR-bare with a POSITIVE occlusion assertion (fabric obscures when clothed; bare only when the scene asks) so clothed shots stay clothed + nude only on request = the controllable wardrobe layer. Composes the anatomy-neutral identity from CompanionIdentity. Extracted from nx_gen_orchestrator (monolith -> objects); behaviour-preserving (body byte-identical except private cw_* helpers). ⚠this is where ER-8 negatives + ControlNet pose/structure control will compose. Object model: companion_arch.md. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_companion_identity.nx nx_companion_wardrobe.nx nx_gen_orchestrator.nx

imports: nx_syscalls.nxnx_companion_identity.nx

imported by: nx_gen_orchestrator.nx

structs

none

consts

none

functions

11func cw_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i]; o=o+1; i=i+1} return o }
12func cw_catb(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var o: i64=off; var i: i64=0; while i<n {dst[o]=src[i]; o=o+1; i=i+1} return o }
13func cw_contains_ci(hay: *u8, hlen: i64, needle: *u8) -> i64
31func go_build_photo_prompt(scene: *u8, slen: i64, expr: *u8, out: *u8) -> i64