code wiki / _hdl_build / nx_vcodec_nf_gate.nx

nx_vcodec_nf_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_nf_gate.nx

7337 B151 linesdepth 6pulls 19 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

dependencies 5 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_video_codec_wasm.nx nx_vcodec_nf_table.nx nx_quality_metric.nx nx_vcodec_nf_gate.nx

imports: nx_gate_base.nxnx_syscalls.nxnx_video_codec_wasm.nxnx_vcodec_nf_table.nxnx_quality_metric.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close vc_nf_load vc_t8_init nx_dct8_init vc_t8p nf_chain seedctx vv_enc_rct8 vc_enc_frame_packed_rct8 rc_enc_init nx_bw_put vc_aq_level vc_mb_mad vc_mb_t8_ok 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

17const GW_: i64 = 576
18const GH_: i64 = 1024
19const HOLD0: i64 = 8
20const HOLDN: i64 = 4

functions

22func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
24func gn(v: i64) -> i64
28func eqb(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if (a[i]&0xff)!=(b[i]&0xff) { return 0 } i=i+1 } return 1 }
called by 1: nf_chain
29func cpb(d: *u8, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n { d[i]=s[i]; i=i+1 } return 0 }
31func seedctx(rctx: *i64, emode: i64, est: *i64, probs: *i64, rcbuf: *u8, t8c: *i64, tbl: *i64, scr: *u8) -> i64
37func nf_chain(yuv: *u8, emode: i64, qp: i64, tbl: *i64, scr: *u8, bufs: *i64, out: *i64) -> i64
87func main() -> i64