nx_mp4_stbl_gate.nx
buildroot/runtime/nx_mp4_stbl_gate.nx
about
nx_mp4_stbl_gate.nx -- REFEREE for the MP4 sample-table reader (rung 1).
Synthesizes a byte-exact MP4 with a full video stbl using a cursor builder:
ftyp + moov{ trak{ mdia{ hdlr(vide) + minf{ stbl{
stsd(entry fourCC=avc1) + stsz(size=0,count=3,[100,120,90]) + stco(1) }}}}}
Asserts nx_mp4_video_info reports codec=H264, frames=3, chunks=1.
Also a VP9 variant -> codec=VP9. Every value PRINTED. Exit 0/1.
Sovereign: nx_syscalls + nx_mp4_demux + nx_mp4_stbl. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_mp4_demux.nxnx_mp4_stbl.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
| 12 | func gp(logfd: i64, s: *u8) -> i64 |
| 19 | func gn(logfd: i64, v: i64) -> i64 |
| 33 | func wbe32(b: *u8, o: i64, v: i64) -> i64 |
| 38 | func wt4(b: *u8, o: i64, s: *u8) -> i64 { b[o] = s[0]; b[o + 1] = s[1]; b[o + 2] = s[2]; b[o + 3] = s[3]; return 0 } |
| 41 | func bopen(b: *u8, cur: *i64, ty: *u8) -> i64 { let o: i64 = cur[0]; wt4(b, o + 4, ty); cur[0] = o + 8; return o } |
| 42 | func bclose(b: *u8, cur: *i64, hdr: i64) -> i64 { wbe32(b, hdr, cur[0] - hdr); return 0 } |
| 43 | func w32(b: *u8, cur: *i64, v: i64) -> i64 { wbe32(b, cur[0], v); cur[0] = cur[0] + 4; return 0 } |
| 44 | func wty(b: *u8, cur: *i64, s: *u8) -> i64 { wt4(b, cur[0], s); cur[0] = cur[0] + 4; return 0 } |
| 47 | func build(b: *u8, codec: *u8) -> i64 |
| 73 | func main() -> i64 |