code wiki / _hdl_build / nx_rdcurve_gate.nx

nx_rdcurve_gate.nx

buildroot/runtime/_hdl_build/nx_rdcurve_gate.nx

3927 B65 linesdepth 3pulls 7 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 5 imports · 0 importers

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

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_vtransform.nxnx_ventropy.nxnx_quality_metric.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 rd_frame rd_block vt_fwd vt_wht4 vt_quant ve_encode ve_encode_at ve_zz_idx nx_bw_put ve_vput ve_zze ve_blen nx_bw_put ↻ vt_dequant vt_inv vt_wht4 ↻ qm_psnr_cdb qm_mse qm_log2_q16 qm_ssim_milli g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ sys_exit

structs

none

consts

none

functions

11func rd_block(orig: *u8, recon: *u8, W: i64, bx: i64, by: i64, qp: i64, ebuf: *u8, blk: *i64) -> i64
22func 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
29func main() -> i64