code wiki / _hdl_build / nx_vcodec_quarter_gate.nx
nx_vcodec_quarter_gate.nx
buildroot/runtime/_hdl_build/nx_vcodec_quarter_gate.nx
about
nx_vcodec_quarter_gate.nx -- proves QUARTER-pel motion is realized INSIDE the codec: a frame shifted by exactly
0.25px is encoded inter, round-trips BIT-EXACT, and the codec's quarter-pel predictor matches a shift that half-pel
(only 0 / 0.5) structurally cannot -- the in-codec H.264/VP9 motion-precision win past half-pel.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_vcodec.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
| 8 | func g_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } |
| 9 | func frame_equal(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i] { return 0 } i=i+1 } return 1 } called by 1: main |
| 10 | func frame_maxerr(a: *u8, b: *u8, n: i64) -> i64 { var m: i64=0; var i: i64=0; while i<n { let e: i64=g_abs((a[i] as i64)-(b[i] as i64)); if e>m { m=e } i=i+1 } return m } |
| 12 | func mb_sad(f: *u8, ref: *u8, W: i64, qx: i64, qy: i64) -> i64 |
| 19 | func main() -> i64 |