code wiki / _hdl_build / nx_vcodec_rd_bench.nx

nx_vcodec_rd_bench.nx

buildroot/runtime/_hdl_build/nx_vcodec_rd_bench.nx

7895 B129 linesdepth 6pulls 18 transitivereach 0 importersview sourcekind benchtopic vcodec
docsdependenciesstructsconstsfunctions

dependencies 4 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_video_codec_wasm.nx nx_quality_metric.nx nx_vcodec_rd_bench.nx

imports: nx_gate_base.nxnx_syscalls.nxnx_video_codec_wasm.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_t8_init nx_dct8_init vc_t8p rd_run 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 vc_rdskip_len vc_aq_qp vv_wr_u32 vv_deblock vv_deblock_plane vv_iabs vv_clamp255 seedctxe vv_enc_rc vc_enc_frame_packed_rc rc_enc_init nx_bw_put ↻ vc_aq_level ↻ vc_mb_mad ↻ vc_enc_block_packed_e ↻ vc_aq_qp ↻ rc_enc_flush

structs

none

consts

13const K_MAGIC_4194304: i64 = 4194304
14const K_MAGIC_2097152: i64 = 2097152
15const K_MAGIC_5120: i64 = 5120
17const NW: i64 = 576
18const NH: i64 = 1024
19const GOP: i64 = 6

functions

21func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
23func gn(v: i64) -> i64
27func 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: rd_run
28func cpb(d: *u8, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n { d[i]=s[i]; i=i+1 } return 0 }
30func seedctxe(rctx: *i64, emode: i64, est: *i64, probs: *i64, rcbuf: *u8, t8c: *i64) -> i64
36func rd_run(yuv: *u8, qp: i64, mode: i64, bufs: *i64, out: *i64) -> i64
67func report(name: *u8, qp: i64, o: *i64) -> i64
77func main() -> i64