code wiki / _hdl_build / nx_ventropy_pack_gate.nx

nx_ventropy_pack_gate.nx

buildroot/runtime/_hdl_build/nx_ventropy_pack_gate.nx

3492 B57 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_ventropy_pack_gate.nx -- proves position-aware entropy coding (ve_encode_at/ve_decode_at): several coefficient blocks pack into ONE contiguous bitstream (threading the bit position) and decode back byte/coeff-faithful, resuming at exactly the bit offset each block ended. This is what lets a whole frame's blocks become one transmittable stream.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_ventropy.nx nx_ventropy_pack_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.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 ve_encode_at ve_zz_idx nx_bw_put ve_vput ve_zze ve_blen nx_bw_put ↻ g_pn sys_mmap ↻ sys_write ↻ ve_decode_at nx_br_get ve_vval nx_br_get ↻ ve_zzd ve_vlen nx_br_get ↻ ve_zz_idx ↻ g_check g_puts ↻ blocks_equal ve_encode ve_encode_at ↻ sys_exit

structs

none

consts

none

functions

8func blocks_equal(a: *i64, b: *i64) -> i64 { var i: i64=0; while i<16 { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
called by 1: main
10func main() -> i64