code wiki / h264

topic: h264

93 modules sharing the h264 name family (derived from the tree's prefix discipline).

H.264 interop: bitstream parsing, intra/inter reconstruction (P-frame recon included), written from the spec in NishiLang so the ecosystem can decode the world's dominant video format without linking a single foreign library. Sibling of the fully-sovereign vcodec family.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
nx_h264_bframe_probe.nxB-R0: parse the GOP STRUCTURE of an annexb H.264 stream with B-frames1043
nx_h264_bframe_reflist_gate.nxB-R1: compute POC (display order) for every frame of bframe_test.2641213
nx_h264_bframe_walk.nxB-R2: ENTROPY-WALK the first B-slice of bframe_test.264, consuming every bit3386
nx_h264_bits.nxH.264 bitstream reader + Exp-Golomb (rung 2 keystone).1066
nx_h264_bits_gate.nxREFEREE for the H.264 bit reader + Exp-Golomb keystone.893
nx_h264_bitwriter.nxMSB-first bit writer (hardware-rung primitive).585
nx_h264_block_e2e_gate.nxSINGLE 4x4 BLOCK end-to-end micro-decode.1193
nx_h264_bmb.nxH.264 B-macroblock type tables (Table 7-14 mb_type, 7-18 sub_mb_type).7411
nx_h264_brecon.nxB-R3: reconstruct the EXPLICIT-MV B macroblocks (B_L0/L1/Bi 16x16/16x8/8x16/8x8)139320
nx_h264_cabac.nxH.264 CABAC arithmetic decoding ENGINE (ITU-T H.264 clause 9.3), STEP 1 core.10011
nx_h264_cabac_ctxinc.nxH.264 CABAC I-slice ctxIdxInc DERIVATION (spec clause 9.3.3.1.1).547
nx_h264_cabac_ctxinc_gate.nxREFEREE for the H.264 CABAC ctxIdxInc derivation logic.723
nx_h264_cabac_gate.nxREFEREE for the H.264 CABAC arithmetic engine (STEP 1 core).935
nx_h264_cabac_mb.nxH.264 CABAC I-slice macroblock syntax (clauses 9.3.2.5, 9.3.3.1.1, Table 9-36).15818
nx_h264_cabac_mb_gate.nxteeth for the I-slice macroblock syntax layer.1633
nx_h264_cabac_residual.nxH.264 CABAC residual block decoding (clause 9.3.2.3 / 9.3.3.1.3).1183
nx_h264_cabac_residual_gate.nxteeth for STEP 2 residual decoding.1363
nx_h264_cavlc_enc.nxCAVLC level ENCODER (inverse of nx_h264_cavlc_level's422
nx_h264_cavlc_level.nxCAVLC level decoding (rung 4c-i, spec 9.2.2.1).674
nx_h264_cavlc_level_gate.nxREFEREE for CAVLC level decode (rung 4c-i).974
nx_h264_cavlc_rt_gate.nxSOVEREIGN round-trip oracle for CAVLC level codec.1203
nx_h264_cdc_gate.nxREFEREE for the chroma-DC coeff_token table (nC=-1).1333
nx_h264_cdc_tz_gate.nxREFEREE for chroma-DC total_zeros (2x2).833
nx_h264_chroma.nxchroma reconstruction kernels: 2x2 DC inverse Hadamard523
nx_h264_chroma_dc_gate.nxvalidate chroma DC scaling (spec 8.5.11.2).904
nx_h264_chroma_gate.nxREFEREE for chroma kernels.933
nx_h264_chroma_pred.nxIntra chroma 8x8 prediction (4:2:0), spec 8.3.4.1023
nx_h264_chroma_pred_gate.nxvalidate intra chroma 8x8 prediction (4 modes).1215
nx_h264_coeff_token.nxCAVLC coeff_token VLC (rung 4c-ii), table-driven38011
nx_h264_coeff_token_gate.nxREFEREE for coeff_token machinery (rung 4c-ii).1054
nx_h264_colmv_gate.nxverify the co-located MV-field decoder: decode the future-anchor P-slice1253
nx_h264_ctctx_gate.nxvalidate ALL coeff_token nC contexts via the dispatcher.1684
nx_h264_ctfull_gate.nxvalidate the FULL 0<=nC<2 coeff_token table.1163
nx_h264_deblock.nxH.264 in-loop deblocking, normal luma edge filter17710
nx_h264_deblock_gate.nxREFEREE for the normal luma deblocking filter.903
nx_h264_decode_frame.nxFULL-FRAME H.264 decoder (Constrained Baseline, CAVLC,92711
nx_h264_dequant.nxH.264 inverse quantization / scaling for 4x4 residual733
nx_h264_dequant_gate.nxREFEREE for H.264 dequant (rung 5 scaling) + the864
nx_h264_diag.nxNishi Teacher DIAGNOSTIC ENGINE: parse a raw log/output against the machine-readable703
nx_h264_diag_gate.nxgate the Teacher diagnostic engine: feed crafted logs with known symptoms and724
nx_h264_emit.nxemit a VALID H.264 Annex-B bitstream: SPS + PPS + IDR slice of I_PCM macroblocks.24911
nx_h264_fdct.nxH.264 FORWARD 4x4 integer transform + forward quantization (the ENCODE counterpart of974
nx_h264_fdct_gate.nxSOVEREIGN gate for the H.264 forward transform + quant (the encoder core, R6).645
nx_h264_hadamard.nx4x4 inverse Hadamard for the Intra_16x16 luma DC block442
nx_h264_hadamard_gate.nxREFEREE for the Intra_16x16 luma DC Hadamard.884
nx_h264_idct.nxH.264 4x4 inverse integer transform (rung 5-core, built774
nx_h264_idct_gate.nxREFEREE for the H.264 4x4 inverse transform (rung 5-core).1095
nx_h264_iframe.nxreusable CAVLC I-slice -> YUV420 decode driver (STEP 3 core for the cam poster).4969
nx_h264_intra.nxH.264 Intra_4x4 spatial prediction (core modes), the last1114
nx_h264_intra16.nxIntra_16x16 luma prediction (spec 8.3.3), core modes.782
nx_h264_intra16_gate.nxREFEREE for Intra_16x16 prediction (core modes).823
nx_h264_intra16plane_gate.nxvalidate Intra_16x16 Plane (mode 3).984
nx_h264_intra4_gate.nxvalidate Intra_4x4 (9 modes).1303
nx_h264_intra_gate.nxREFEREE for Intra_4x4 prediction + the FULL1124
nx_h264_intra_recon.nxH.264 INTRA luma reconstruction kernels, shared by the I-frame decoder1393
nx_h264_mb.nxH.264 I-slice macroblock type layer (rung 4d, spec 7.3.5 / 7.4.5).403
nx_h264_mb_gate.nxREFEREE for the I-slice macroblock type layer (rung 4d).884
nx_h264_mb_pred.nxI_NxN macroblock prediction layer (rung 4e, spec 7.3.5.1 +938
nx_h264_mb_pred_gate.nxREFEREE for the I_NxN prediction layer (rung 4e).1163
nx_h264_mc_luma.nxH.264 luma quarter-pel motion-compensated interpolation (spec 8.4.2.2.1).839
nx_h264_mc_luma_gate.nxgate luma quarter-pel interpolation (8.4.2.2.1).813
nx_h264_mv_recon_gate.nxP-R4a: reconstruct the per-4x4 MOTION-VECTOR FIELD of frame 1 of4517
nx_h264_mvgrid.nxH.264 per-4x4 motion-vector grid + neighbour gathering (8.4.1.3).934
nx_h264_mvpred.nxH.264 motion-vector prediction (spec 8.4.1.3 / 8.4.1.3.1).835
nx_h264_mvpred_gate.nxgate MV prediction (8.4.1.3). Hand-computed KATs.784
nx_h264_nal.nxH.264 NAL unit splitter + header decode (rung 2b).655
nx_h264_nal_gate.nxREFEREE for the H.264 NAL splitter (rung 2b).953
nx_h264_nc.nxCAVLC neighbour context nC (spec 9.2.1) + coeff_token table332
nx_h264_nc_gate.nxREFEREE for nC derivation + coeff_token table select.743
nx_h264_pframe_probe.nxP-R0: locate frame 1 (sample 1), parse its P-slice header,1284
nx_h264_pframe_recon.nxP-R4b: pixel-exact LUMA reconstruction of frame 1 (inter content).106216
nx_h264_pframe_walk.nxP-R1c: ENTROPY-WALK the entire P-frame (frame 1) of realtest.mp4.3286
nx_h264_pmb.nxP-macroblock type layer (ITU-T H.264 Tables 7-13 + 7-18).495
nx_h264_pmb_gate.nxgate the P-macroblock type layer (Tables 7-13 / 7-18).743
nx_h264_pmvfield.nxdecode a P-slice's per-4x4 L0 MOTION-VECTOR FIELD (gref/gmvx/gmvy) by the proven2434
nx_h264_poc.nxH.264 Picture Order Count (POC type 0, spec 8.2.1.1) + B-slice reference list1032
nx_h264_pps.nxH.264 Picture Parameter Set parser (rung 4b, spec 7.3.2.2).451
nx_h264_pps_gate.nxREFEREE for the H.264 PPS parser (rung 4b).753
nx_h264_research_run.nxthe SOVEREIGN half of the H.264-codec research pass.313
nx_h264_residual.nxCAVLC residual 4x4 block assembler (rung 4c-v, spec 9.2).1863
nx_h264_residual_gate.nxSOVEREIGN round-trip oracle for the CAVLC residual815
nx_h264_run_before.nxCAVLC run_before VLC (rung 4c-iv), table-driven1063
nx_h264_run_before_gate.nxREFEREE for run_before VLC (rung 4c-iv).954
nx_h264_slice.nxH.264 slice header parser (rung 4a, spec 7.3.3).1112
nx_h264_slice_extract.nxlocate + parse a REAL coded slice from realtest.mp4.3394
nx_h264_slice_gate.nxREFEREE for the H.264 slice header parser (rung 4a).693
nx_h264_sps.nxH.264 Sequence Parameter Set parser (rung 3).1123
nx_h264_sps_gate.nxREFEREE for the H.264 SPS parser (rung 3).833
nx_h264_total_zeros.nxCAVLC total_zeros VLC (rung 4c-iii), table-driven1966
nx_h264_total_zeros_gate.nxREFEREE for total_zeros VLC (rung 4c-iii).903
nx_h264_ts_probe.nxSTEP 0 decisive probe for the cam-poster build.25415
nx_h264_tzrb_gate.nxvalidate FULL total_zeros (TC 1..15) + run_before (zL 1..6,>6).1334
nx_h264_zigzag.nx4x4 inverse zig-zag scan (spec 8.5.6 / Table 8-12).191