code wiki / (root) / nx_timeline.nx

nx_timeline.nx

buildroot/runtime/nx_timeline.nx

2215 B56 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_timeline.nx -- editor timeline assembler (R4b): turn a clip list + per-gap transition windows into a single output frame SCHEDULE. Crossfade-overlap model (standard NLE): between clip k and k+1, the last W frames of k overlap- blend with the first W frames of k+1, so total = sum(len) - sum(window). W=0 = hard cut. This is the stitch logic ("put recordings together with smooth transitions"); it composes nx_transition for the actual pixels. Output: one record per output frame, 6 i64: [mode, srcA, frmA, srcB, frmB, progress_q14] mode 0 = straight (show clip srcA frame frmA) mode 1 = blend (crossfade srcA/frmA with srcB/frmB at progress_q14) Pure integer scheduling -- no pixels -> exactly gateable. genealogy_id: nle_crossfade_overlap_edit + edit_decision_list lineage_id: clip_schedule + overlap_transition_window license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_timeline.nx nx_timeline_demo.nx nx_timeline_gate.nx

imports: nx_syscalls.nx

imported by: nx_timeline_demo.nxnx_timeline_gate.nx

structs

none

consts

19const NX_TL_REC: i64 = 6

functions

21func nx_timeline_plan(lens: *i64, nclips: i64, wins: *i64, q: i64, recs: *i64, maxr: i64) -> i64
called by 2: mainmain