code wiki / (root) / nx_h264_run_before.nx

nx_h264_run_before.nx

buildroot/runtime/nx_h264_run_before.nx

3926 B106 linesdepth 3pulls 4 transitivereach 17 importersview sourcekind librarytopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_run_before.nx -- CAVLC run_before VLC (rung 4c-iv), table-driven encoder + decoder. run_before = number of zeros immediately before each non-zero coefficient (distributing total_zeros); VLC table indexed by zerosLeft (Table 9-10). Same machinery + round-trip-oracle pattern. Filled: zerosLeft = 1, 2, 3 (the common, high-confidence columns). zerosLeft 4..6 and >6 = data fill, validated by the real I-frame decode (capstone oracle). genealogy_id: itu_t_h264_table9_10_run_before lineage_id: vlc_symbol_table + prefix_match_decode + roundtrip_oracle license_tier: ORIGINAL

dependencies 3 imports · 3 importers

nx_syscalls.nx nx_h264_bits.nx nx_h264_bitwriter.nx nx_h264_run_before.nx nx_h264_residual.nx nx_h264_run_before_gate.nx nx_h264_tzrb_gate.nx

imports: nx_syscalls.nxnx_h264_bits.nxnx_h264_bitwriter.nx

imported by: nx_h264_residual.nxnx_h264_run_before_gate.nxnx_h264_tzrb_gate.nx

structs

none

consts

none

functions

15func rb_table(zeros_left: i64, ln: *i64, cd: *i64, val: *i64) -> i64
74func nx_run_before_encode(bw: *BitWriter, zeros_left: i64, run_before: i64) -> i64
88func nx_run_before_decode(br: *BitReader, zeros_left: i64) -> i64