code wiki / (root) / nx_v7_bundle.nx

nx_v7_bundle.nx

buildroot/runtime/nx_v7_bundle.nx

6401 B177 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_v7_bundle.nx nx_multi_bundle.nx nx_multi_pair_test.nx nx_pair_synchrony.nx nx_v7_bundle_test.nx

imports: nx_syscalls.nx

imported by: nx_multi_bundle.nxnx_multi_pair_test.nxnx_pair_synchrony.nxnx_v7_bundle_test.nx

structs

none

consts

38const NX_V7_FACE_X0: i64 = 0
39const NX_V7_FACE_Y0: i64 = 1
40const NX_V7_FACE_X1: i64 = 2
41const NX_V7_FACE_Y1: i64 = 3
42const NX_V7_TORSO_X0: i64 = 4
43const NX_V7_TORSO_Y0: i64 = 5
44const NX_V7_TORSO_X1: i64 = 6
45const NX_V7_TORSO_Y1: i64 = 7
46const NX_V7_BODY_X0: i64 = 8
47const NX_V7_BODY_Y0: i64 = 9
48const NX_V7_BODY_X1: i64 = 10
49const NX_V7_BODY_Y1: i64 = 11
51const NX_V7_EYE_WIDTH_PX: i64 = 12
52const NX_V7_IRIS_RADIUS_PX: i64 = 13
54const NX_V7_CHEEK_L_X0: i64 = 14
55const NX_V7_CHEEK_L_Y0: i64 = 15
56const NX_V7_CHEEK_L_X1: i64 = 16
57const NX_V7_CHEEK_L_Y1: i64 = 17
58const NX_V7_CHEEK_R_X0: i64 = 18
59const NX_V7_CHEEK_R_Y0: i64 = 19
60const NX_V7_CHEEK_R_X1: i64 = 20
61const NX_V7_CHEEK_R_Y1: i64 = 21
63const NX_V7_BREAST_L_X0: i64 = 22
64const NX_V7_BREAST_L_Y0: i64 = 23
65const NX_V7_BREAST_L_X1: i64 = 24
66const NX_V7_BREAST_L_Y1: i64 = 25
67const NX_V7_BREAST_L_AREA: i64 = 26
68const NX_V7_BREAST_L_CY: i64 = 27
69const NX_V7_BREAST_R_X0: i64 = 28
70const NX_V7_BREAST_R_Y0: i64 = 29
71const NX_V7_BREAST_R_X1: i64 = 30
72const NX_V7_BREAST_R_Y1: i64 = 31
73const NX_V7_BREAST_R_AREA: i64 = 32
74const NX_V7_BREAST_R_CY: i64 = 33
76const NX_V7_AREOLA_L_X0: i64 = 34
77const NX_V7_AREOLA_L_Y0: i64 = 35
78const NX_V7_AREOLA_L_X1: i64 = 36
79const NX_V7_AREOLA_L_Y1: i64 = 37
80const NX_V7_AREOLA_R_X0: i64 = 38
81const NX_V7_AREOLA_R_Y0: i64 = 39
82const NX_V7_AREOLA_R_X1: i64 = 40
83const NX_V7_AREOLA_R_Y1: i64 = 41
85const NX_V7_POSE_KIND: i64 = 42
86const NX_V7_POSE_CONFIDENCE: i64 = 43
89const NX_V7_REPRODUCTIVE_STATE: i64 = 44
91const NX_V7_AROUSAL_Q10: i64 = 45
93const NX_V7_BUNDLE_FIELDS: i64 = 46

functions

96func nx_v7_bundle_init(bundle: *i64) -> i64
called by 1: main
103func nx_v7_bundle_set_face(bundle: *i64, x0: i64, y0: i64, x1: i64, y1: i64) -> i64
112func nx_v7_bundle_set_torso(bundle: *i64, x0: i64, y0: i64, x1: i64, y1: i64) -> i64
121func nx_v7_bundle_set_eye(bundle: *i64, eye_width_px: i64, iris_radius_px: i64) -> i64
128func nx_v7_bundle_get_face_bbox(bundle: *i64, out: *i64) -> i64
called by 1: main
136func nx_v7_bundle_get_torso_bbox(bundle: *i64, out: *i64) -> i64
145func nx_v7_bundle_pose_pack(bundle: *i64, out: *i64) -> i64
called by 1: main
158func nx_v7_bundle_response_pack(bundle: *i64, out: *i64) -> i64
called by 1: main