code wiki / _hdl_build / nx_vcodec_stdseq_gate.nx

nx_vcodec_stdseq_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_stdseq_gate.nx

8316 B160 linesdepth 6pulls 24 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

dependencies 9 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_video_codec_wasm.nx nx_quality_metric.nx nx_f32.nx nx_f32_log.nx nx_f32_exp.nx nx_f32_div.nx nx_f32_cvt.nx nx_vcodec_stdseq_gate.nx

imports: nx_gate_base.nxnx_syscalls.nxnx_video_codec_wasm.nxnx_quality_metric.nxnx_f32.nxnx_f32_log.nxnx_f32_exp.nxnx_f32_div.nxnx_f32_cvt.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 gn sys_mmap ↻ sys_write ↻ vc_t8_init nx_dct8_init vc_t8p vv_enc 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 vc_satd16_cand

structs

none

consts

19const SW: i64 = 352
20const SH: i64 = 288
21const GOP: i64 = 48 // 48 frames, keyframe at f=0 (matches the live client GOP + the ffmpeg -g 48 external anchor)

functions

23func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
25func gn(v: i64) -> i64
29func g2(v: i64) -> i64 { gn(v/100); gw("." as *u8); let f: i64=v%100; if f<10{gw("0" as *u8)} gn(f); return 0 }
called by 1: main
30func cpb(d: *u8, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n { d[i]=s[i]; i=i+1 } return 0 }
32func main() -> i64
144func interp_rate(P: *i64, R: *i64, pv: i64) -> i64
155func f_to_i(raw: i64) -> i64