code wiki / _hdl_build / nx_vmotion_gate.nx
nx_vmotion_gate.nx
buildroot/runtime/_hdl_build/nx_vmotion_gate.nx
about
nx_vmotion_gate.nx -- proves + MEASURES sovereign motion compensation (nx_vmotion), the rung that beats plain
tile-delta the way VP8/H.264 do. Native nx_cc->nxasm, no node.
1) PAN exceed: a frame shifted by (3,2) -> tile-delta sees the block as fully changed (huge SAD), motion
search finds the shift (MV) with ~0 residual -> measured: motion-comp << tile-delta on motion
2) MV correctness: the found vector equals the true shift (negated)
3) lossless reconstruct: predicted-at-MV + residual == the cur block
4) static block: cur==prev -> MV=(0,0), SAD=0
5) honest limit (neg): a noisy block with no match -> SAD stays high (motion comp isn't magic -> intra fallback)
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_vmotion.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
| none |
functions
| 13 | func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 14 | func g_pn(v: i64) -> i64 |
| 24 | func g_check(name: *u8, cond: i64) -> i64 |
| 28 | func tex(x: i64, y: i64) -> i64 { return (x*7 + y*13 + x*y*3) & 0xff } // deterministic textured content called by 1: main |
| 29 | func block_eq(a: *u8, b: *u8, W: i64, bx: i64, by: i64, T: i64) -> i64 called by 1: main |
| 35 | func main() -> i64 |