code wiki / (root) / nx_cinematographer.nx

nx_cinematographer.nx

buildroot/runtime/nx_cinematographer.nx

9072 B217 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_cinematographer.nx nx_cine_sexy_test.nx

imports: nx_syscalls.nx

imported by: nx_cine_sexy_test.nx

structs

none

consts

19const NX_MAGIC_1024: i64 = 1024
22const NX_LENS_UNKNOWN: i64 = 0
23const NX_LENS_WIDE_24MM: i64 = 1 // environmental / dramatic
24const NX_LENS_NORMAL_50MM: i64 = 2 // documentary / candid
25const NX_LENS_PORTRAIT_85MM: i64 = 3 // fashion / editorial subject focus
26const NX_LENS_LONG_135MM: i64 = 4 // tight portrait, compressed background
27const NX_LENS_MACRO: i64 = 5 // detail / extreme close-up
30const NX_APERTURE_F14: i64 = 1 // f/1.4 — extremely shallow DoF, dreamy
31const NX_APERTURE_F18: i64 = 2 // f/1.8 — shallow, bokeh
32const NX_APERTURE_F28: i64 = 3 // f/2.8 — soft separation
33const NX_APERTURE_F4: i64 = 4 // f/4 — moderate
34const NX_APERTURE_F56: i64 = 5 // f/5.6 — environmental in focus
35const NX_APERTURE_F8: i64 = 6 // f/8 — deep DoF, sharp throughout
38const NX_COMP_RULE_OF_THIRDS: i64 = 1
39const NX_COMP_CENTERED: i64 = 2
40const NX_COMP_LEADING_LINES: i64 = 3
41const NX_COMP_OFF_BALANCE: i64 = 4
42const NX_COMP_GOLDEN_SPIRAL: i64 = 5
43const NX_COMP_TRIANGULAR: i64 = 6
46const NX_CINE_TARGET_EDITORIAL: i64 = 1 // fashion-mag, refined, posed
47const NX_CINE_TARGET_CANDID: i64 = 2 // unposed, photojournalistic
48const NX_CINE_TARGET_FASHION: i64 = 3 // stylized, bold, fashion shoot
49const NX_CINE_TARGET_DOCUMENTARY: i64 = 4 // observational, real
50const NX_CINE_TARGET_CINEMATIC: i64 = 5 // moody, color-graded, film
51const NX_CINE_TARGET_GLAMOUR: i64 = 6 // soft, flattering, intimate
53const NX_CINE_RES_LENS_SCORE: i64 = 0
54const NX_CINE_RES_APERTURE_SCORE: i64 = 1
55const NX_CINE_RES_COMP_SCORE: i64 = 2
56const NX_CINE_RES_COMPOSITE: i64 = 3
57const NX_CINE_RES_VERDICT: i64 = 4
58const NX_CINE_RES_FAIL_AXIS: i64 = 5
59const NX_CINE_RES_FIELDS: i64 = 6
61const NX_CINE_V_LENS_WRONG: i64 = 0
62const NX_CINE_V_AMATEUR: i64 = 1
63const NX_CINE_V_PROFESSIONAL: i64 = 2
64const NX_CINE_V_AWARD_WORTHY: i64 = 3
66const NX_CINE_AXIS_LENS: i64 = 0
67const NX_CINE_AXIS_APERTURE: i64 = 1
68const NX_CINE_AXIS_COMPOSITION: i64 = 2

functions

71func nx_cine_lens_score(target: i64, lens: i64) -> i64
called by 1: nx_cinematographer
111func nx_cine_aperture_score(target: i64, aperture: i64) -> i64
called by 1: nx_cinematographer
151func nx_cine_composition_score(target: i64, composition: i64) -> i64
called by 1: nx_cinematographer
190func nx_cinematographer(target: i64, lens: i64, aperture: i64,