code wiki / _hdl_build / nx_vcodec_msu_ours13.nx
nx_vcodec_msu_ours13.nx
buildroot/runtime/_hdl_build/nx_vcodec_msu_ours13.nx
about
nx_vcodec_msu_ours13.nx -- EXACT RD points for OUR codec at the SHIPPED CHAIN (2026-07-27 field
config, exactly what the family runs and what nx_vcodec_layout_gate proves): KEY frames ride
vv_enc_rc (skip-thresh qp*188), P frames ride vv_enc_rct9 (lean+MVD-median, deadzone qp*94),
emode 673 = rc+sig+part+deblock, rctx[9] = the MVD MV row-plane rct9 REQUIRES. Same OURS line
format as ours12 (total/key/ptot/sseY/keySSE/npix; PSNR computed exactly downstream -- no float
here). The x264 arm runs externally on the SAME y4m; BD-rate joins the two curves. CIF only.
license: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_video_codec_wasm.nxnx_tier.nxnx_f64.nxnx_f64_div.nxnx_f64_cvt.nxnx_f64_log2.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
| 17 | const O13_MAGIC_65025: i64 = 65025 |
| 18 | const O13_MAGIC_4194304: i64 = 4194304 |
| 19 | const O13_MAGIC_8192: i64 = 8192 |
| 20 | const O13_MAGIC_65536: i64 = 65536 |
| 21 | const O13_LOG10_2: i64 = 0x3FD34413509F79FF // log10(2) binary64 |
| 22 | const O13_10K: i64 = 0x40C3880000000000 // 10000.0 (10*log10(x)*1000 = log10(x)*10000) |
| 23 | const O13_HALF: i64 = 0x3FE0000000000000 |
| 25 | const SW: i64 = 352 |
| 26 | const SH: i64 = 288 |
| 27 | const NF: i64 = 48 |
| 28 | const KEYMUL: i64 = 188 // key skip-thresh multiplier (the layout gate's shipped value) |
| 29 | const PMUL: i64 = 94 // rct9 P deadzone multiplier (the layout gate's shipped value) |
functions
| 31 | func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 32 | func gn(v: i64) -> i64 |
| 36 | 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: runq |
| 38 | func frames(yuv: *u8, hi: i64, total: i64, fp: *i64, fdata: i64) -> i64 called by 1: main |
| 47 | func seed(rctx: *i64, emode: i64, est: *i64, probs: *i64, rcbuf: *u8, t8c: *i64, plane: *i64) -> i64 called by 1: runq |
| 53 | func o13_psnr_milli(sse: i64, npix: i64) -> i64 |
| 57 | func o13_wnum(fd: i64, v: i64) -> i64 |
| 61 | func runq(fp: *i64, qp: i64, emode: i64, sz: i64, allkey: i64, ptsfd: i64) -> i64 |
| 108 | func main(argc: i64, argv: *i64) -> i64 |