code wiki / _hdl_build / nx_rd_intra_gate.nx

nx_rd_intra_gate.nx

buildroot/runtime/_hdl_build/nx_rd_intra_gate.nx

4250 B70 linesdepth 3pulls 11 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_rd_intra_gate.nx -- MEASURES the rate-distortion gain of intra prediction: code one structured frame two ways (naive pixels-128 vs neighbour-predicted, raster order) at the same QP and compare bytes + PSNR. Proves V-R7 shifts the RD curve left (fewer bytes at equal quality). Composes nx_intra+nx_vtransform+nx_ventropy+nx_quality_metric.

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_intra.nx nx_vtransform.nx nx_ventropy.nx nx_quality_metric.nx nx_gate_verdict.nx nx_rd_intra_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_intra.nxnx_vtransform.nxnx_ventropy.nxnx_quality_metric.nxnx_gate_verdict.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 nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ code_frame sys_mmap ↻ in_best in_predict in_sad ve_encode ve_encode_at ve_zz_idx nx_bw_put ve_vput ve_zze ve_blen nx_bw_put ↻ qm_psnr_cdb qm_mse qm_log2_q16 g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ gv_ctr

structs

none

consts

none

functions

12func code_frame(orig: *u8, recon: *u8, W: i64, H: i64, qp: i64, use_pred: i64, ebuf: *u8, blk: *i64, pred: *i64, top: *i64, left: *i64) -> i64
called by 1: main calls 3: sys_mmapin_bestve_encode
41func main() -> i64