code wiki / _hdl_build / nx_motion_video_gate.nx
nx_motion_video_gate.nx
buildroot/runtime/_hdl_build/nx_motion_video_gate.nx
about
nx_motion_video_gate.nx -- prove the S3 loop end-to-end: BUILD a move (data) -> pose the rig via FK per frame
-> render the articulated figure -> encode a sovereign ANIMATED PNG = "show the move in a VIDEO". Asserts:
T1 the .png is a real APNG (signature + acTL/fcTL/fdAT/IEND + acTL num_frames == N)
T2 MOTION happened (frame 0 checksum != mid-frame checksum -- the figure actually moved, not a static loop)
T3 a driven JOINT moved (right wrist world-Y spans a real range across the clip = true FK articulation)
T4 two DIFFERENT moves (wave vs kick) produce DIFFERENT poses at the same time (the library varies, like t2mesh)
Writes knowledge/nx_motion_wave.png (APNG, browser-playable) + knowledge/nx_motion_frame0.png (still, eyeball).
license_tier: ORIGINAL expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_skeleton.nxnx_figure_render.nxnx_movelib.nxnx_apng.nxnx_png.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 43 | const GW: i64 = 384 |
| 44 | const GH: i64 = 288 |
functions
| 16 | func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 17 | func pn(v: i64) -> i64 |
| 28 | func cksum(fb: *i64, n: i64) -> i64 called by 1: main |
| 34 | func find4(buf: *u8, n: i64, a: i64, b: i64, c: i64, d: i64) -> i64 called by 1: main |
| 46 | func main() -> i64 |