code wiki / (root) / nx_h264_bframe_probe.nx

nx_h264_bframe_probe.nx

buildroot/runtime/nx_h264_bframe_probe.nx

4728 B104 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind probetopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_bframe_probe.nx -- B-R0: parse the GOP STRUCTURE of an annexb H.264 stream with B-frames (knowledge/staging/media/bframe_test.264, made by x264 --no-cabac --bframes 1). Splits annexb NALs, parses SPS/PPS, and for every slice prints (decode-order idx, nal_type, slice_type I/P/B, frame_num, poc_lsb, nal_ref_idc) -- revealing decode order vs display (POC) order and which frames are B + their reference role. Foundation for the B-frame decode arc (ref-list construction, bi-prediction). Exit 0.

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_h264_bits.nx nx_h264_sps.nx nx_h264_pps.nx nx_h264_nal.nx nx_h264_slice.nx nx_h264_bframe_probe.nx

imports: nx_syscalls.nxnx_h264_bits.nxnx_h264_sps.nxnx_h264_pps.nxnx_h264_nal.nxnx_h264_slice.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close gp sys_write gn sys_mmap ↻ sys_write ↻ nx_nal_split_annexb nx_h264_unescape_rbsp nx_h264_parse_sps sys_mmap ↻ br_init sys_mmap ↻ br_read_bits br_read_bit br_read_ue br_read_bit ↻ br_read_bits ↻ nx_h264_is_high br_read_se br_read_ue ↻ nx_h264_parse_pps sys_mmap ↻ br_init ↻ br_read_ue ↻ br_read_bits ↻ br_read_se ↻ br_init ↻ nx_h264_parse_slice_header br_read_ue ↻ br_read_bits ↻ br_read_se ↻ sys_exit

structs

none

consts

none

functions

13func gp(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
14func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
25func main() -> i64