code wiki / _hdl_build / nx_vcodec_handoff_bench.nx
nx_vcodec_handoff_bench.nx
buildroot/runtime/_hdl_build/nx_vcodec_handoff_bench.nx
dependencies 4 imports · 0 importers
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
structs
| none |
consts
| 16 | const K_MAGIC_1000000: i64 = 1000000 |
| 17 | const K_MAGIC_4194304: i64 = 4194304 |
| 18 | const K_MAGIC_2097152: i64 = 2097152 |
| 19 | const K_MAGIC_5120: i64 = 5120 |
| 20 | const K_MAGIC_2049: i64 = 2049 |
| 21 | const K_MAGIC_1600: i64 = 1600 |
| 22 | const K_MAGIC_2100: i64 = 2100 |
| 24 | const NW: i64 = 576 |
| 25 | const NH: i64 = 1024 |
| 26 | const GOP: i64 = 12 |
functions
| 28 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 30 | func gn(v: i64) -> i64 |
| 34 | func g2(v: i64) -> i64 { var x: i64=v; if x<0 { gw("-" as *u8); x=0-x } gn(x/100); gw("." as *u8); let f: i64=x%100; if f<10 { gw("0" as *u8) } gn(f); return 0 } called by 1: main |
| 35 | func cpb(d: *u8, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n { d[i]=s[i]; i=i+1 } return 0 } called by 1: main |
| 36 | func seedctxe(rctx: *i64, emode: i64, est: *i64, probs: *i64, rcbuf: *u8, t8c: *i64) -> i64 |
| 41 | func mono_us(ts: *i64) -> i64 { __syscall(113, 1, ts as i64, 0, 0, 0, 0); return ts[0]*K_MAGIC_1000000 + ts[1]/1000 } |
| 43 | func main() -> i64 |