code wiki / _hdl_build / nx_vcodec_gop_vm_gate.nx

nx_vcodec_gop_vm_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_gop_vm_gate.nx

6333 B126 linesdepth 5pulls 17 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_gop_vm_gate.nx -- SOVEREIGN VM verification of a full GOP (group-of-pictures): the shipped nx_vcodec.wasm coding a REAL multi-frame video sequence (1 keyframe + 7 inter frames with a moving object), prev-recon chained between frames exactly as the browser does. The existing inter gate proves keyframe + ONE P-frame; this proves the chain stays byte-exact over a WHOLE sequence -- i.e. NO temporal drift accumulates, and the per-op-alloc leak fix holds over the long op-sequence a real video drives. Proven via the ecosystem's OWN wasm VM vs the native codec authority, every frame: - every frame's recon VM == native (byte-exact -- drift-free over the GOP) <- the new coverage - every frame's bitcount VM == native (compiler faithful on the cost path) - the GOP costs FAR less than coding every frame as a keyframe (temporal compression real) - NEG-CONTROL: the byte-exact comparator detects a real difference (moved object) -> has teeth No deploy, no live-client touch -- pure headless de-risk. expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_wasm_vm.nx nx_vcodec.nx nx_vcodec_gop_vm_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_wasm_vm.nxnx_vcodec.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit wm_new sys_mmap ↻ wm_parse sys_mmap ↻ wv_u8 wv_uleb gen_frame wm_run wm_find_export wm_name_eq sys_mmap ↻ wm_call sys_mmap ↻ wv_u8 ↻ wm_memo_get wm_match_end sys_mmap ↻ sys_write ↻ sys_exit ↻ wv_u8 ↻ wm_skip_imm wv_u8 ↻ wv_uleb ↻ wv_sleb sys_munmap wm_memo_put wm_match_else sys_mmap ↻ sys_write ↻

structs

none

consts

18const VCODEC_WASM: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/web_assets/_video_build/nx_vcodec.wasm"
19const O_CUR: i64 = 0
20const O_PREV: i64 = 16384
21const O_DEC: i64 = 49152

functions

23func gen_frame(cur: *u8, W: i64, H: i64, ox: i64, oy: i64) -> i64
called by 1: main
39func main() -> i64