code wiki / _hdl_build / nx_rdcurve_gate.nx

nx_rdcurve_gate.nx

buildroot/runtime/_hdl_build/nx_rdcurve_gate.nx

4368 B73 linesdepth 3pulls 10 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_rdcurve_gate.nx -- the runnable RATE-DISTORTION harness: intra-code a frame through the sovereign codec (transform + deadzone-quant + entropy) at several QP levels and MEASURE (bytes, PSNR, SSIM) at each -> our RD curve. This is the artifact competitor reconstructions overlay onto for a no-wave exceed/parity verdict. Composes nx_vtransform + nx_ventropy + nx_quality_metric. Native, fast.

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_vtransform.nx nx_ventropy.nx nx_quality_metric.nx nx_gate_verdict.nx nx_rdcurve_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.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 ↻ rd_frame rd_block 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 qm_ssim_milli g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ gv_ctr sys_mmap ↻ gv_verdict

structs

none

consts

none

functions

12func rd_block(orig: *u8, recon: *u8, W: i64, bx: i64, by: i64, qp: i64, ebuf: *u8, blk: *i64) -> i64
called by 1: rd_frame calls 1: ve_encode
23func rd_frame(orig: *u8, recon: *u8, W: i64, H: i64, qp: i64, ebuf: *u8, blk: *i64) -> i64
called by 1: main calls 1: rd_block
30func main() -> i64