code wiki / (root) / nx_h264_pframe_probe.nx

nx_h264_pframe_probe.nx

buildroot/runtime/nx_h264_pframe_probe.nx

6347 B128 linesdepth 4pulls 9 transitivereach 0 importersview sourcekind probetopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_pframe_probe.nx -- P-R0: locate frame 1 (sample 1), parse its P-slice header, reach the first P-macroblock. Proves the P-slice-header parse lands correctly (a wrong parse desyncs -> garbage mb_skip_run/mb_type). Grounds the P-frame (inter) decode arc. Verified target (ffmpeg trace_headers): slice_type=P(5), num_ref_idx_l0=0(+1 ref), QP=30. license_tier: ORIGINAL

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_mp4_demux.nx nx_mp4_stbl.nx nx_h264_bits.nx nx_h264_sps.nx nx_h264_pps.nx nx_h264_nal.nx nx_h264_slice.nx nx_h264_pframe_probe.nx

imports: nx_syscalls.nxnx_mp4_demux.nxnx_mp4_stbl.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 find_tag mp4_t4 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 ↻ nx_mp4_video_info sys_mmap ↻ mp4_find_box mp4_be32 mp4_be64 mp4_t4 ↻ mp4_be32 ↻ mp4_be64 ↻ mp4_t4 ↻

structs

none

consts

none

functions

15func 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
16func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func find_tag(b: *u8, start: i64, end: i64, s: *u8) -> i64
called by 1: main calls 1: mp4_t4
32func main() -> i64