nx_v7_bundle.nx
buildroot/runtime/nx_v7_bundle.nx
about
nx_v7_bundle.nx -- typed measurement bundle for the V7 detection pipeline.
The 16 detector primitives shipped in the S-class substrate consume a
shared MEASUREMENT BUNDLE — a single flat-array of typed slots that
caller fills from real image data once per render. Avoids the
nxc2 codegen bug with high-arity functions: each detector takes only
the bundle pointer plus its own result array.
Layout: each slot is one i64 at a fixed offset. Caller pre-allocs
NX_V7_BUNDLE_FIELDS * 8 bytes and zero-fills.
Producers:
nx_region (face/torso/limb bbox) -> face_*, torso_*, body_*
nx_cheek_localize -> cheek_l_*, cheek_r_*
nx_breast_localize -> breast_l_*, breast_r_*
nx_areola_localize -> areola_l_*, areola_r_*
nx_pose_classify -> pose_kind, pose_confidence
nx_eye_detect -> eye_width_px, iris_radius_px
Consumers:
nx_anatomy_measure(bundle, mask, meas) -> writes meas[] for nx_beauty_score
nx_breast_drape_pose(...) -> reads breast_l_*, pose_kind
nx_areola_pigment(rgb, areola_mask, ...) -> uses areola_l_ as mask
nx_subsurface_warmth(rgb, skin_mask, ...) -> uses skin_mask globally
nx_specular_falloff(rgb, skin_mask, ...)
nx_eroticism_ladder(...) -> takes typed nudity+pose+penetration
nx_response_signal(rgb, skin_mask, bbox_pack) -> reads bbox_pack from bundle accessors
dependencies 1 imports · 4 importers
imports: nx_syscalls.nx
imported by: nx_multi_bundle.nxnx_multi_pair_test.nxnx_pair_synchrony.nxnx_v7_bundle_test.nx
structs
| none |
consts
| 38 | const NX_V7_FACE_X0: i64 = 0 |
| 39 | const NX_V7_FACE_Y0: i64 = 1 |
| 40 | const NX_V7_FACE_X1: i64 = 2 |
| 41 | const NX_V7_FACE_Y1: i64 = 3 |
| 42 | const NX_V7_TORSO_X0: i64 = 4 |
| 43 | const NX_V7_TORSO_Y0: i64 = 5 |
| 44 | const NX_V7_TORSO_X1: i64 = 6 |
| 45 | const NX_V7_TORSO_Y1: i64 = 7 |
| 46 | const NX_V7_BODY_X0: i64 = 8 |
| 47 | const NX_V7_BODY_Y0: i64 = 9 |
| 48 | const NX_V7_BODY_X1: i64 = 10 |
| 49 | const NX_V7_BODY_Y1: i64 = 11 |
| 51 | const NX_V7_EYE_WIDTH_PX: i64 = 12 |
| 52 | const NX_V7_IRIS_RADIUS_PX: i64 = 13 |
| 54 | const NX_V7_CHEEK_L_X0: i64 = 14 |
| 55 | const NX_V7_CHEEK_L_Y0: i64 = 15 |
| 56 | const NX_V7_CHEEK_L_X1: i64 = 16 |
| 57 | const NX_V7_CHEEK_L_Y1: i64 = 17 |
| 58 | const NX_V7_CHEEK_R_X0: i64 = 18 |
| 59 | const NX_V7_CHEEK_R_Y0: i64 = 19 |
| 60 | const NX_V7_CHEEK_R_X1: i64 = 20 |
| 61 | const NX_V7_CHEEK_R_Y1: i64 = 21 |
| 63 | const NX_V7_BREAST_L_X0: i64 = 22 |
| 64 | const NX_V7_BREAST_L_Y0: i64 = 23 |
| 65 | const NX_V7_BREAST_L_X1: i64 = 24 |
| 66 | const NX_V7_BREAST_L_Y1: i64 = 25 |
| 67 | const NX_V7_BREAST_L_AREA: i64 = 26 |
| 68 | const NX_V7_BREAST_L_CY: i64 = 27 |
| 69 | const NX_V7_BREAST_R_X0: i64 = 28 |
| 70 | const NX_V7_BREAST_R_Y0: i64 = 29 |
| 71 | const NX_V7_BREAST_R_X1: i64 = 30 |
| 72 | const NX_V7_BREAST_R_Y1: i64 = 31 |
| 73 | const NX_V7_BREAST_R_AREA: i64 = 32 |
| 74 | const NX_V7_BREAST_R_CY: i64 = 33 |
| 76 | const NX_V7_AREOLA_L_X0: i64 = 34 |
| 77 | const NX_V7_AREOLA_L_Y0: i64 = 35 |
| 78 | const NX_V7_AREOLA_L_X1: i64 = 36 |
| 79 | const NX_V7_AREOLA_L_Y1: i64 = 37 |
| 80 | const NX_V7_AREOLA_R_X0: i64 = 38 |
| 81 | const NX_V7_AREOLA_R_Y0: i64 = 39 |
| 82 | const NX_V7_AREOLA_R_X1: i64 = 40 |
| 83 | const NX_V7_AREOLA_R_Y1: i64 = 41 |
| 85 | const NX_V7_POSE_KIND: i64 = 42 |
| 86 | const NX_V7_POSE_CONFIDENCE: i64 = 43 |
| 89 | const NX_V7_REPRODUCTIVE_STATE: i64 = 44 |
| 91 | const NX_V7_AROUSAL_Q10: i64 = 45 |
| 93 | const NX_V7_BUNDLE_FIELDS: i64 = 46 |
functions
| 96 | func nx_v7_bundle_init(bundle: *i64) -> i64 called by 1: main |
| 103 | func nx_v7_bundle_set_face(bundle: *i64, x0: i64, y0: i64, x1: i64, y1: i64) -> i64 |
| 112 | func nx_v7_bundle_set_torso(bundle: *i64, x0: i64, y0: i64, x1: i64, y1: i64) -> i64 |
| 121 | func nx_v7_bundle_set_eye(bundle: *i64, eye_width_px: i64, iris_radius_px: i64) -> i64 |
| 128 | func nx_v7_bundle_get_face_bbox(bundle: *i64, out: *i64) -> i64 called by 1: main |
| 136 | func nx_v7_bundle_get_torso_bbox(bundle: *i64, out: *i64) -> i64 |
| 145 | func nx_v7_bundle_pose_pack(bundle: *i64, out: *i64) -> i64 called by 1: main |
| 158 | func nx_v7_bundle_response_pack(bundle: *i64, out: *i64) -> i64 called by 1: main |