code wiki / _hdl_build / nx_vcodec_sigcoder_gate.nx

nx_vcodec_sigcoder_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_sigcoder_gate.nx

9796 B206 linesdepth 5pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

dependencies 6 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_dct8.nx nx_vcodec.nx nx_rangecoder.nx nx_rangecoder_sig.nx nx_vcodec_sigcoder_gate.nx

imports: nx_gate_base.nxnx_syscalls.nxnx_dct8.nxnx_vcodec.nxnx_rangecoder.nxnx_rangecoder_sig.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 nx_dct8_init vc_t8_init nx_dct8_init ↻ vc_t8p vc_t8p ↻ fill_frame nx_dct8_forward_2d nx_dct8_forward_1d vc_quant8 tally_rl ve_zze ve_blen tally_sig rcs_nb rcs_sigctx ve_blen ↻ mk_priors enc_frame rc_enc_init rc_block64_encode rc_enc_ctx rc_enc_bit rc_shift_low rc_p_update ve_zze ↻ ve_blen ↻ rc_sig_encode rc_enc_ctx ↻ rcs_nb ↻ rcs_sigctx ↻

structs

none

consts

16const NW: i64 = 576
17const NH: i64 = 1024
18const BPF: i64 = 9216 // 8x8 luma blocks per frame = (576/8)*(1024/8)

functions

20func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
22func gn(v: i64) -> i64
28func fill_frame(yuv: *u8, f: i64, qp: i64, M: *i64, scr: *i64, ti: *i64, to: *i64, dst: *i64) -> i64
47func tally_rl(blocks: *i64, nb: i64, zz8: *i64, h: *i64) -> i64
68func tally_sig(blocks: *i64, nb: i64, sigmap: *i64, h: *i64) -> i64
98func mk_priors(h: *i64, nctx: i64, pr: *i64) -> i64
112func enc_frame(blocks: *i64, nb: i64, mode: i64, priors: *i64, nctx: i64, zz8: *i64, sigmap: *i64,
125func main() -> i64