code wiki / _hdl_build / nx_vmotion_gate.nx

nx_vmotion_gate.nx

buildroot/runtime/_hdl_build/nx_vmotion_gate.nx

5729 B99 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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 3 imports · 0 importers

nx_syscalls.nx nx_vmotion.nx nx_gate_verdict.nx nx_vmotion_gate.nx

imports: nx_syscalls.nxnx_vmotion.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

14func 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 }
15func g_pn(v: i64) -> i64
25func g_check(name: *u8, cond: i64) -> i64
29func tex(x: i64, y: i64) -> i64 { return (x*7 + y*13 + x*y*3) & 0xff } // deterministic textured content
30func block_eq(a: *u8, b: *u8, W: i64, bx: i64, by: i64, T: i64) -> i64
36func main() -> i64