code wiki / _hdl_build / nx_vmvpred_gate.nx

nx_vmvpred_gate.nx

buildroot/runtime/_hdl_build/nx_vmvpred_gate.nx

3937 B74 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_vmvpred_gate.nx -- proves + MEASURES MV prediction (nx_vmvpred): on a realistic motion field (a camera pan with a couple of differently-moving object blocks), coding MVs as residuals from the median neighbour predictor costs far fewer bits than coding them absolutely. Uses the codec's real varint MV cost (ve_zze/ve_blen).

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_vmvpred.nx nx_ventropy.nx nx_vmvpred_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_vmvpred.nxnx_ventropy.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_mmap mvp_predict mvp_median vbits ve_blen ve_zze g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ sys_exit

structs

none

consts

none

functions

9func vbits(v: i64) -> i64 { return 5 + ve_blen(ve_zze(v)) } // bits one varint MV component costs (codec's coder)
called by 1: main calls 2: ve_blenve_zze
11func main() -> i64