nx_cinematographer.nx
buildroot/runtime/nx_cinematographer.nx
about
nx_cinematographer.nx -- Best Cinematography axis: lens + aperture + palette + composition.
Substrate's cinematographer-eye classifier. Each axis is a typed
sealed enum + per-target appropriateness score. Composer chooses
the cinematography target for the scene (editorial / candid /
fashion / documentary / cinematic) and the substrate scores how
well a render matches that target.
Output is the BEST CINEMATOGRAPHY composite Q10 + sealed verdict
FRAMING / COMPOSITION / LENS-WRONG / AMATEUR / PROFESSIONAL / AWARD-WORTHY.
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_cine_sexy_test.nx
structs
| none |
consts
| 19 | const NX_MAGIC_1024: i64 = 1024 |
| 22 | const NX_LENS_UNKNOWN: i64 = 0 |
| 23 | const NX_LENS_WIDE_24MM: i64 = 1 // environmental / dramatic |
| 24 | const NX_LENS_NORMAL_50MM: i64 = 2 // documentary / candid |
| 25 | const NX_LENS_PORTRAIT_85MM: i64 = 3 // fashion / editorial subject focus |
| 26 | const NX_LENS_LONG_135MM: i64 = 4 // tight portrait, compressed background |
| 27 | const NX_LENS_MACRO: i64 = 5 // detail / extreme close-up |
| 30 | const NX_APERTURE_F14: i64 = 1 // f/1.4 — extremely shallow DoF, dreamy |
| 31 | const NX_APERTURE_F18: i64 = 2 // f/1.8 — shallow, bokeh |
| 32 | const NX_APERTURE_F28: i64 = 3 // f/2.8 — soft separation |
| 33 | const NX_APERTURE_F4: i64 = 4 // f/4 — moderate |
| 34 | const NX_APERTURE_F56: i64 = 5 // f/5.6 — environmental in focus |
| 35 | const NX_APERTURE_F8: i64 = 6 // f/8 — deep DoF, sharp throughout |
| 38 | const NX_COMP_RULE_OF_THIRDS: i64 = 1 |
| 39 | const NX_COMP_CENTERED: i64 = 2 |
| 40 | const NX_COMP_LEADING_LINES: i64 = 3 |
| 41 | const NX_COMP_OFF_BALANCE: i64 = 4 |
| 42 | const NX_COMP_GOLDEN_SPIRAL: i64 = 5 |
| 43 | const NX_COMP_TRIANGULAR: i64 = 6 |
| 46 | const NX_CINE_TARGET_EDITORIAL: i64 = 1 // fashion-mag, refined, posed |
| 47 | const NX_CINE_TARGET_CANDID: i64 = 2 // unposed, photojournalistic |
| 48 | const NX_CINE_TARGET_FASHION: i64 = 3 // stylized, bold, fashion shoot |
| 49 | const NX_CINE_TARGET_DOCUMENTARY: i64 = 4 // observational, real |
| 50 | const NX_CINE_TARGET_CINEMATIC: i64 = 5 // moody, color-graded, film |
| 51 | const NX_CINE_TARGET_GLAMOUR: i64 = 6 // soft, flattering, intimate |
| 53 | const NX_CINE_RES_LENS_SCORE: i64 = 0 |
| 54 | const NX_CINE_RES_APERTURE_SCORE: i64 = 1 |
| 55 | const NX_CINE_RES_COMP_SCORE: i64 = 2 |
| 56 | const NX_CINE_RES_COMPOSITE: i64 = 3 |
| 57 | const NX_CINE_RES_VERDICT: i64 = 4 |
| 58 | const NX_CINE_RES_FAIL_AXIS: i64 = 5 |
| 59 | const NX_CINE_RES_FIELDS: i64 = 6 |
| 61 | const NX_CINE_V_LENS_WRONG: i64 = 0 |
| 62 | const NX_CINE_V_AMATEUR: i64 = 1 |
| 63 | const NX_CINE_V_PROFESSIONAL: i64 = 2 |
| 64 | const NX_CINE_V_AWARD_WORTHY: i64 = 3 |
| 66 | const NX_CINE_AXIS_LENS: i64 = 0 |
| 67 | const NX_CINE_AXIS_APERTURE: i64 = 1 |
| 68 | const NX_CINE_AXIS_COMPOSITION: i64 = 2 |
functions
| 71 | func nx_cine_lens_score(target: i64, lens: i64) -> i64 called by 1: nx_cinematographer |
| 111 | func nx_cine_aperture_score(target: i64, aperture: i64) -> i64 called by 1: nx_cinematographer |
| 151 | func nx_cine_composition_score(target: i64, composition: i64) -> i64 called by 1: nx_cinematographer |
| 190 | func nx_cinematographer(target: i64, lens: i64, aperture: i64, |