code wiki / _hdl_build / nx_vcodec_ltr_gate.nx
nx_vcodec_ltr_gate.nx
buildroot/runtime/_hdl_build/nx_vcodec_ltr_gate.nx
about
nx_vcodec_ltr_gate.nx -- proves the VIDEO loss-recovery keystone: a Long-Term Reference (LTR). When frames are lost
across the ocean, the decoder is stuck at the last ACK'd frame (the LTR). Instead of an expensive full keyframe, the
encoder codes the recovery frame as a P-frame against that LTR (which the decoder still has) -> recovers WITHOUT a
retransmit, far cheaper than a keyframe. Cited research: LTR-P is 40-50% smaller than a keyframe; ~20% fewer keyframes
under loss (Meta). Our codec already predicts against an arbitrary reference, so the LTR is just the ACK'd recon.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_vcodec.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
| none |
functions
| 10 | func g_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: frame_maxerr |
| 11 | func frame_equal(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 |
| 12 | func frame_maxerr(a: *u8, b: *u8, n: i64) -> i64 { var m: i64=0; var i: i64=0; while i<n { let e: i64=g_abs((a[i] as i64)-(b[i] as i64)); if e>m { m=e } i=i+1 } return m } |
| 14 | func mkframe(f: *u8, W: i64, H: i64, t: i64) -> i64 called by 1: main |
| 25 | func main() -> i64 |