code wiki / (root) / nx_hair_style.nx

nx_hair_style.nx

buildroot/runtime/nx_hair_style.nx

5924 B148 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_hair_style.nx -- Best Makeup-Hairstyling (hair half). Parallel structure to nx_makeup_style. Typed hair-style enum + per-location-appropriateness scoring. Composes with makeup_style into Best Makeup-Hairstyling joint composite. 8 sealed hair styles (intensity ladder): PRACTICAL_UPDO bun / ponytail / messy bun NATURAL_DOWN loose natural hair down BEACH_WAVES tousled relaxed waves BLOWOUT polished smooth blowout SLEEK_STRAIGHT glossy ironed straight STYLED_CURLS deliberate curl pattern EDITORIAL_AVANT fashion-shoot statement style WET_DAMP shower / pool / out-of-water look

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_hair_style.nx nx_oscar_batch_test.nx

imports: nx_syscalls.nx

imported by: nx_oscar_batch_test.nx

structs

none

consts

24const NX_MAGIC_1024: i64 = 1024
26const NX_HAIR_PRACTICAL_UPDO: i64 = 1
27const NX_HAIR_NATURAL_DOWN: i64 = 2
28const NX_HAIR_BEACH_WAVES: i64 = 3
29const NX_HAIR_BLOWOUT: i64 = 4
30const NX_HAIR_SLEEK_STRAIGHT: i64 = 5
31const NX_HAIR_STYLED_CURLS: i64 = 6
32const NX_HAIR_EDITORIAL_AVANT: i64 = 7
33const NX_HAIR_WET_DAMP: i64 = 8
36const NX_HR_LOC_GYM: i64 = 1
37const NX_HR_LOC_BEDROOM: i64 = 2
38const NX_HR_LOC_KITCHEN: i64 = 3
39const NX_HR_LOC_BATHROOM: i64 = 4
40const NX_HR_LOC_OUTDOOR: i64 = 5
41const NX_HR_LOC_OFFICE: i64 = 6
42const NX_HR_LOC_RESTAURANT: i64 = 7
43const NX_HR_LOC_STUDIO: i64 = 8
44const NX_HR_LOC_BEACH: i64 = 9
45const NX_HR_LOC_POOL: i64 = 10
47const NX_HAIR_RES_DECLARED: i64 = 0
48const NX_HAIR_RES_MEASURED: i64 = 1
49const NX_HAIR_RES_APPROP_Q10: i64 = 2
50const NX_HAIR_RES_MATCH_Q10: i64 = 3
51const NX_HAIR_RES_VERDICT: i64 = 4
52const NX_HAIR_RES_FIELDS: i64 = 5
54const NX_HAIR_V_INAPPROPRIATE: i64 = 0
55const NX_HAIR_V_MISMATCHED: i64 = 1
56const NX_HAIR_V_ACCEPTABLE: i64 = 2
57const NX_HAIR_V_APPROPRIATE: i64 = 3

functions

59func nx_hair_scene_score(location: i64, hair_kind: i64) -> i64
called by 1: nx_hair_style_score
126func nx_hair_style_score(declared_kind: i64, measured_kind: i64,
called by 1: main calls 1: nx_hair_scene_score