code wiki / _hdl_build / nx_vcodec_msu_ours13.nx

nx_vcodec_msu_ours13.nx

buildroot/runtime/_hdl_build/nx_vcodec_msu_ours13.nx

7670 B139 linesdepth 6pulls 20 transitivereach 0 importersview sourcekind tooltopic vcodec
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_video_codec_wasm.nx nx_tier.nx nx_f64.nx nx_f64_div.nx nx_f64_cvt.nx nx_f64_log2.nx nx_vcodec_msu_ours13.nx

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

main sys_openat_wr gw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close frames runq sys_mmap ↻ vc_t8_init nx_dct8_init vc_t8p seed 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_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

structs

none

consts

17const O13_MAGIC_65025: i64 = 65025
18const O13_MAGIC_4194304: i64 = 4194304
19const O13_MAGIC_8192: i64 = 8192
20const O13_MAGIC_65536: i64 = 65536
21const O13_LOG10_2: i64 = 0x3FD34413509F79FF // log10(2) binary64
22const O13_10K: i64 = 0x40C3880000000000 // 10000.0 (10*log10(x)*1000 = log10(x)*10000)
23const O13_HALF: i64 = 0x3FE0000000000000
25const SW: i64 = 352
26const SH: i64 = 288
27const NF: i64 = 48
28const KEYMUL: i64 = 188 // key skip-thresh multiplier (the layout gate's shipped value)
29const PMUL: i64 = 94 // rct9 P deadzone multiplier (the layout gate's shipped value)

functions

31func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: runqmain calls 1: sys_write
32func gn(v: i64) -> i64
called by 2: runqmain calls 2: sys_mmapsys_write
36func 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
38func frames(yuv: *u8, hi: i64, total: i64, fp: *i64, fdata: i64) -> i64
called by 1: main
47func seed(rctx: *i64, emode: i64, est: *i64, probs: *i64, rcbuf: *u8, t8c: *i64, plane: *i64) -> i64
called by 1: runq
53func o13_psnr_milli(sse: i64, npix: i64) -> i64
57func o13_wnum(fd: i64, v: i64) -> i64
called by 1: runq calls 2: sys_mmapsys_write
61func runq(fp: *i64, qp: i64, emode: i64, sz: i64, allkey: i64, ptsfd: i64) -> i64
108func main(argc: i64, argv: *i64) -> i64