nx_hair_style.nx
buildroot/runtime/nx_hair_style.nx
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
imports: nx_syscalls.nx
imported by: nx_oscar_batch_test.nx
structs
| none |
consts
| 24 | const NX_MAGIC_1024: i64 = 1024 |
| 26 | const NX_HAIR_PRACTICAL_UPDO: i64 = 1 |
| 27 | const NX_HAIR_NATURAL_DOWN: i64 = 2 |
| 28 | const NX_HAIR_BEACH_WAVES: i64 = 3 |
| 29 | const NX_HAIR_BLOWOUT: i64 = 4 |
| 30 | const NX_HAIR_SLEEK_STRAIGHT: i64 = 5 |
| 31 | const NX_HAIR_STYLED_CURLS: i64 = 6 |
| 32 | const NX_HAIR_EDITORIAL_AVANT: i64 = 7 |
| 33 | const NX_HAIR_WET_DAMP: i64 = 8 |
| 36 | const NX_HR_LOC_GYM: i64 = 1 |
| 37 | const NX_HR_LOC_BEDROOM: i64 = 2 |
| 38 | const NX_HR_LOC_KITCHEN: i64 = 3 |
| 39 | const NX_HR_LOC_BATHROOM: i64 = 4 |
| 40 | const NX_HR_LOC_OUTDOOR: i64 = 5 |
| 41 | const NX_HR_LOC_OFFICE: i64 = 6 |
| 42 | const NX_HR_LOC_RESTAURANT: i64 = 7 |
| 43 | const NX_HR_LOC_STUDIO: i64 = 8 |
| 44 | const NX_HR_LOC_BEACH: i64 = 9 |
| 45 | const NX_HR_LOC_POOL: i64 = 10 |
| 47 | const NX_HAIR_RES_DECLARED: i64 = 0 |
| 48 | const NX_HAIR_RES_MEASURED: i64 = 1 |
| 49 | const NX_HAIR_RES_APPROP_Q10: i64 = 2 |
| 50 | const NX_HAIR_RES_MATCH_Q10: i64 = 3 |
| 51 | const NX_HAIR_RES_VERDICT: i64 = 4 |
| 52 | const NX_HAIR_RES_FIELDS: i64 = 5 |
| 54 | const NX_HAIR_V_INAPPROPRIATE: i64 = 0 |
| 55 | const NX_HAIR_V_MISMATCHED: i64 = 1 |
| 56 | const NX_HAIR_V_ACCEPTABLE: i64 = 2 |
| 57 | const NX_HAIR_V_APPROPRIATE: i64 = 3 |
functions
| 59 | func nx_hair_scene_score(location: i64, hair_kind: i64) -> i64 called by 1: nx_hair_style_score |
| 126 | func nx_hair_style_score(declared_kind: i64, measured_kind: i64, |