code wiki / _hdl_build / nx_vcodec_realseq_gate.nx

nx_vcodec_realseq_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_realseq_gate.nx

5992 B107 linesdepth 5pulls 16 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_realseq_gate.nx -- the REAL-CONTENT P-sequence measurement (settles the ME-gate bytes caveat: the synthetic bench's 4-periodic texture gifted ME lucky alignments, inflating always-search bytes-value; real content is aperiodic). Encodes 12 REAL frames (bframe_test_decoded.yuv = ffmpeg-verified H.264 decode, 576x1024 YUV420, luma plane) as key + 11 P-frames through the closed recon chain with the ME gate active, measuring per-frame: bytes, PSNR vs raw, encode/decode us, and bit-exact enc/dec parity. GREEN iff every P decode is bit-exact AND P-avg bytes < key bytes (temporal compression holds on REAL content) AND avg PSNR >= 30dB. Ledger-reported: the honest wire numbers for the room JPEG->vcodec swap. expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_vcodec.nx nx_quality_metric.nx nx_metric_ledger.nx nx_vcodec_realseq_gate.nx

imports: nx_syscalls.nxnx_vcodec.nxnx_quality_metric.nxnx_metric_ledger.nx

imported by: nobody (leaf or entry point)

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

main rw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_now_us sys_mmap ↻ sys_clock_gettime_mono vc_enc_frame_packed 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 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 ve_vput vc_satd16_cand vc_rd_t8_inter vc_enc_mb8_intra vc_enc_mb8_inter

structs

none

consts

14const RS_W: i64 = 576
15const RS_H: i64 = 1024
16const RS_FRAMES: i64 = 12
17const RS_QP: i64 = 32
18const RS_SAD: i64 = 64

functions

20func rw(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
21func rn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
25func feq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
called by 1: main
27func main() -> i64