code wiki / (root) / nx_h264_total_zeros.nx

nx_h264_total_zeros.nx

buildroot/runtime/nx_h264_total_zeros.nx

7193 B196 linesdepth 3pulls 4 transitivereach 18 importersview sourcekind librarytopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_total_zeros.nx -- CAVLC total_zeros VLC (rung 4c-iii), table-driven encoder + decoder. total_zeros = number of zero coefficients before the last non-zero one; VLC table is indexed by TotalCoeff (1..15). Same machinery + round-trip-oracle pattern as coeff_token. Filled: the TotalCoeff=1 column (Table 9-7, tzVlcIndex=1). Other columns = data fill, validated by the real I-frame decode (capstone oracle). genealogy_id: itu_t_h264_table9_7_total_zeros lineage_id: vlc_symbol_table + prefix_match_decode + roundtrip_oracle license_tier: ORIGINAL

dependencies 3 imports · 4 importers

nx_syscalls.nx nx_h264_bits.nx nx_h264_bitwriter.nx nx_h264_total_zeros.nx nx_h264_cdc_tz_gate.nx nx_h264_residual.nx nx_h264_total_zeros_gate.nx nx_h264_tzrb_gate.nx

imports: nx_syscalls.nxnx_h264_bits.nxnx_h264_bitwriter.nx

imported by: nx_h264_cdc_tz_gate.nxnx_h264_residual.nxnx_h264_total_zeros_gate.nxnx_h264_tzrb_gate.nx

structs

none

consts

none

functions

19func tz_table(total_coeff: i64, ln: *i64, cd: *i64, val: *i64) -> i64
111func tz_table_cdc(total_coeff: i64, ln: *i64, cd: *i64, val: *i64) -> i64
132func nx_total_zeros_encode_cdc(bw: *BitWriter, total_coeff: i64, total_zeros: i64) -> i64
144func nx_total_zeros_decode_cdc(br: *BitReader, total_coeff: i64) -> i64
164func nx_total_zeros_encode(bw: *BitWriter, total_coeff: i64, total_zeros: i64) -> i64
178func nx_total_zeros_decode(br: *BitReader, total_coeff: i64) -> i64