code wiki / _hdl_build / nx_vcodec_luma32_vm_gate.nx

nx_vcodec_luma32_vm_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_luma32_vm_gate.nx

3511 B60 linesdepth 5pulls 17 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_luma32_vm_gate.nx -- LOCALIZER: does the shipped luma nx_vcodec.wasm run byte-exact in the VM at 32x32 (4 macroblocks, BW=2)? The existing inter VM gate only ever tested 16x16 (1 macroblock). The color VM gate traps during the 32x32 encode; this isolates whether the MULTI-MACROBLOCK wasm path is the culprit (luma 32x32 also traps => engine/lowering bug, pre-existing, affects H9 at real resolutions) or whether it's specific to my color wrapper (luma 32x32 GREEN => look at the color wrapper). 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_luma32_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 vc_enc_frame_packed vc_enc_frame_packed_tf nx_bw_put vc_aq_level vc_mb_mad vc_enc_block_packed vc_enc_block_packed_e vc_enc_block_packed_i vm_sad_zero vs_skip nx_bw_put ↻ vc_intra_dc_sad vm_search vc_enc_mb4r_intra vm_sad vc_rd_part_inter vc_t8p vc_enc_mb_part8_inter vm_search_q vc_mvpred vc_gput vc_mvplane_set ve_vput

structs

none

consts

12const VCODEC_WASM: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/web_assets/_video_build/nx_vcodec.wasm"
13const O_CUR: i64 = 0
14const O_PREV: i64 = 16384
15const O_DEC: i64 = 49152

functions

17func main() -> i64