code wiki / _hdl_build / nx_vcodec_realseq_gate.nx
nx_vcodec_realseq_gate.nx
buildroot/runtime/_hdl_build/nx_vcodec_realseq_gate.nx
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
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
structs
| none |
consts
| 14 | const RS_W: i64 = 576 |
| 15 | const RS_H: i64 = 1024 |
| 16 | const RS_FRAMES: i64 = 12 |
| 17 | const RS_QP: i64 = 32 |
| 18 | const RS_SAD: i64 = 64 |
functions
| 20 | func rw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 21 | func rn(v: i64) -> i64 |
| 25 | func 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 |
| 27 | func main() -> i64 |