code wiki / _hdl_build / nx_intra_pred_gate.nx

nx_intra_pred_gate.nx

buildroot/runtime/_hdl_build/nx_intra_pred_gate.nx

3488 B57 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic intra
docsdependenciesstructsconstsfunctions

about

nx_intra_pred_gate.nx -- MEASURES the directional-intra-prediction lever on REAL content before any core-codec change. On the real 768x768 H.264-decoded luma frame, for every interior 4x4 block, compare the residual SAD of DC-only prediction (what the codec does today) vs the best of {DC, vertical, horizontal, diagonal-down-right}. The reduction is how much smaller the residual that must be entropy-coded becomes -- the first-order size of the intra win. HONEST: predicts from ORIGINAL neighbor samples (an upper bound; a real codec predicts from reconstructed neighbors), so this bounds the available gain rather than the exact post-quant bitrate. Reusable lib nx_intra_pred is the org.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_intra_pred.nx nx_intra_pred_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_intra_pred.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit g_check g_puts ↻ ip_predict4 ip_sad4 ip_abs ip_best4 ip_predict4 ↻ ip_sad4 ↻ g_pn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

11func main() -> i64