code wiki / _hdl_build / nx_video_codec_wasm_gate.nx
nx_video_codec_wasm_gate.nx
buildroot/runtime/_hdl_build/nx_video_codec_wasm_gate.nx
about
nx_video_codec_wasm_gate.nx -- gate the YUV420 wire wrapper (nx_video_codec_wasm) BEFORE it ships (task
#27): color round-trip sane, encode->decode CLOSED LOOP bit-exact (decoder recon == encoder recon, the
law the realseq gate proved for luma, now for all 3 planes through the packed wire stream), P-frame
smaller than key on real motion, and the wire boundary REFUSES truncated/hostile frames (rule 12).
Frames carry +/-2 noise (the synthetic-bench trap fix: bit-identical statics flatter the codec).
0=GREEN / 1=RED. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
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
structs
| none |
consts
| 20 | const GW: i64 = 320 |
| 21 | const GH: i64 = 240 |
functions
| 10 | func g_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func g_n(v: i64) -> i64 |
| 15 | func chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64 |
| 24 | func g_noise(seed: i64) -> i64 { return ((seed * 1103515245 + 12345) >> 16) & 3 } called by 1: g_paint_rgba |
| 27 | func g_paint_rgba(rgba: *u8, sx: i64, f: i64) -> i64 |
| 49 | func g_bytes_eq(a: *u8, b: *u8, n: i64) -> i64 called by 1: main |
| 55 | func g_psnr_y(a: *u8, b: *u8, n: i64) -> i64 called by 1: main |
| 72 | func main() -> i64 |