code wiki / _hdl_build / nx_vcodec_subpel_gate.nx
nx_vcodec_subpel_gate.nx
buildroot/runtime/_hdl_build/nx_vcodec_subpel_gate.nx
about
nx_vcodec_subpel_gate.nx -- proves the half-pel wiring is REALIZED inside the transmittable codec: a frame shifted
by exactly 0.5px is encoded inter, the decoder reconstructs it BIT-EXACT, and the half-pel predictor slashes the
residual the codec must code (vs what integer-only prediction would leave) -- the in-codec sub-pixel q/bit win.
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 main() -> i64 |