code wiki / _hdl_build / nx_vmotion_gate.nx

nx_vmotion_gate.nx

buildroot/runtime/_hdl_build/nx_vmotion_gate.nx

5288 B91 linesdepth 2pulls 3 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 2 imports · 0 importers

nx_syscalls.nx nx_vmotion.nx nx_vmotion_gate.nx

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

main sys_mmap g_puts sys_write tex vm_sad_zero vm_sad v128_sad16 vm_search vm_scan vm_try vm_sad_capped v128_sad16 ↻ g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ vm_residual vm_reconstruct block_eq sys_exit

structs

none

consts

none

functions

13func 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 }
called by 2: g_checkmain calls 1: sys_write
14func g_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
24func g_check(name: *u8, cond: i64) -> i64
called by 1: main calls 1: g_puts
28func tex(x: i64, y: i64) -> i64 { return (x*7 + y*13 + x*y*3) & 0xff } // deterministic textured content
called by 1: main
29func block_eq(a: *u8, b: *u8, W: i64, bx: i64, by: i64, T: i64) -> i64
called by 1: main
35func main() -> i64