code wiki / (root) / nx_h264_intra_recon.nx

nx_h264_intra_recon.nx

buildroot/runtime/nx_h264_intra_recon.nx

5243 B139 linesdepth 4pulls 8 transitivereach 2 importersview sourcekind librarytopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_intra_recon.nx -- H.264 INTRA luma reconstruction kernels, shared by the I-frame decoder (nx_h264_decode_frame) and the P-frame decoder (intra-coded MBs inside a P-slice). Pure functions over a luma plane + decoded coefficients; no entropy/bitstream state. Extracted verbatim from the proven I-decoder (DRY) so intra-in-P reuses the exact, bit-exact-verified reconstruction path. i16_dc_scale : inv-zigzag + Hadamard + DC level-scale of the 16 luma-DC coeffs (8.5.10). recon_i16_luma : full I_16x16 luma MB (V/H/DC/Plane pred + per-4x4 AC residual + injected DC). recon_i4_block : one I_4x4 luma block (9-mode pred + residual), availabilities passed by caller. genealogy_id: itu_t_h264_sec8_3_intra_luma_reconstruction license_tier: ORIGINAL

dependencies 7 imports · 2 importers

nx_syscalls.nx nx_h264_zigzag.nx nx_h264_hadamard.nx nx_h264_dequant.nx nx_h264_idct.nx nx_h264_intra16.nx nx_h264_intra.nx nx_h264_intra_recon.nx nx_h264_brecon.nx nx_h264_pframe_recon.nx

imports: nx_syscalls.nxnx_h264_zigzag.nxnx_h264_hadamard.nxnx_h264_dequant.nxnx_h264_idct.nxnx_h264_intra16.nxnx_h264_intra.nx

imported by: nx_h264_brecon.nxnx_h264_pframe_recon.nx

structs

none

consts

none

functions

17func i16_dc_scale(dcblk: *i64, qp: i64, dcY: *i64) -> i64
38func recon_i16_luma(yf: *u8, W: i64, px: i64, py: i64, predMode: i64, dcY: *i64, acstore: *i64, qp: i64) -> i64
95func recon_i4_block(yf: *u8, W: i64, bpx: i64, bpy: i64, mode: i64, aT: i64, aL: i64, aTL: i64, aTR: i64, coeffscan: *i64, qp: i64) -> i64