code wiki / _hdl_build / nx_v128_share_probe.nx

nx_v128_share_probe.nx

buildroot/runtime/_hdl_build/nx_v128_share_probe.nx

5203 B115 linesdepth 6pulls 16 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_v128_share_probe.nx -- F618 rung-1 HOT-LOOP RE-MEASURE (native): what share of the shipped-config P-frame encode (416x320, emode 673, qp 22 -- the nx_vcodec_layout_gate recipe) is the 16x16 motion search (vm_search_q, the SAD-dominated kernel the design names first)? Times (a) the full vv_enc_rct9 P encode and (b) an isolated whole-frame vm_search_q sweep with the encoder's own args, same frames. The sweep is a LOWER BOUND on total SAD-family work (encode also does subpel refine, me8 partition searches when armed, zero-SAD skip checks, intra SAD). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_video_codec_wasm.nx nx_v128_share_probe.nx

imports: nx_syscalls.nxnx_video_codec_wasm.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap spw sys_write vc_t8_init nx_dct8_init vc_t8p sp_fill vv_enc_rct8 vc_enc_frame_packed_rct8 rc_enc_init nx_bw_put vc_aq_level vc_mb_mad vc_mb_t8_ok vc_enc_block_packed_e vc_enc_block_packed_i vm_sad_zero vm_sad vs_skip nx_bw_put ↻ vc_intra_dc_sad vm_search vm_scan vc_enc_mb4r_intra vc_t8p ↻ vc_gather_edges vc_mpm_pred vc_pred_rich vc_mpm_put vc_coeff_enc vm_sad ↻ vc_rd_part_inter vm_search_q vc_mvcost vc_me8 vc_t8p ↻ vc_enc_mb_part8_inter vc_t8p ↻ vc_me8 ↻

structs

none

consts

9const K_MAGIC_2026: i64 = 2026
10const K_MAGIC_524288: i64 = 524288
11const K_MAGIC_4096: i64 = 4096
12const K_MAGIC_1048576: i64 = 1048576
13const K_MAGIC_8192: i64 = 8192
14const K_MAGIC_1000000: i64 = 1000000
16const SPW: i64 = 416
17const SPH: i64 = 320
18const SPQP: i64 = 22
19const SPEMODE: i64 = 673
20const SPITER: i64 = 30

functions

22func spw(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 1: main calls 1: sys_write
23func spn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func sp_fill(f0: *u8, f1: *u8, sz: i64) -> i64
called by 1: main
54func main() -> i64