code wiki / _hdl_build / nx_vcodec_look_dump.nx

nx_vcodec_look_dump.nx

buildroot/runtime/_hdl_build/nx_vcodec_look_dump.nx

6808 B135 linesdepth 6pulls 16 transitivereach 0 importersview sourcekind tooltopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_look_dump.nx -- THE LOOK GATE's frame extractor (2026-07-29, seq1262/seq1247 class). PSNR-BD is blind to structured texture loss: a lambda/quant change can be BD-GREEN while making real frames smeary (the 786/787 field-blockiness class). This organ produces the artifact a visual verdict needs: encode the SHIPPED CHAIN (key=vv_enc_rc qp*188, P=vv_enc_rct9 qp*94, same seed discipline as nx_vcodec_msu_ours13) up to a chosen frame, then write SOURCE and RECON luma as 8-bit grayscale BMPs (browser/tool-viewable, zero external deps) and print the cumulative stream bytes -- matched-RATE pairs across encoder arms are selected on that number, never on qp. CIF only (352x288; width divisible by 4 so BMP rows need no padding). usage: nx_vcodec_look_dump <emode> <y4m> <qp> <dumpframe 1..47> <outprefix> license: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_video_codec_wasm.nx nx_vcodec_look_dump.nx

imports: nx_syscalls.nxnx_video_codec_wasm.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write atoi sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close frames vc_t8_init nx_dct8_init vc_t8p seed vv_enc_rc vc_enc_frame_packed_rc rc_enc_init nx_bw_put vc_aq_level vc_mb_mad vc_enc_block_packed_e vc_enc_block_packed_i vm_sad_zero vm_sad vs_skip nx_bw_put ↻ vc_intra_dc_sad vm_search vm_scan vc_enc_mb4r_intra vc_t8p ↻ vc_gather_edges vc_mpm_pred vc_pred_rich vc_mpm_put vc_coeff_enc vm_sad ↻ vc_rd_part_inter

structs

none

consts

13const BMP_MAGIC_2835: i64 = 2835
14const BMP_MAGIC_4194304: i64 = 4194304
15const BMP_MAGIC_8192: i64 = 8192
16const BMP_MAGIC_65536: i64 = 65536
18const SW: i64 = 352
19const SH: i64 = 288
20const NF: i64 = 48
21const KEYMUL: i64 = 188
22const PMUL: i64 = 94
23const BMP_HDR: i64 = 1078 // 14 file + 40 info + 256*4 grayscale palette

functions

25func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: bmp_writemain calls 1: sys_write
26func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
30func cpb(d: *u8, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n { d[i]=s[i]; i=i+1 } return 0 }
called by 2: pathcatmain
31func atoi(a: *u8) -> i64 { var v: i64=0; var i: i64=0
called by 1: main
33func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: pathcat
35func wr32le(b: *u8, off: i64, v: i64) -> i64
called by 1: bmp_write
38func wr16le(b: *u8, off: i64, v: i64) -> i64
called by 1: bmp_write
42func bmp_write(path: *u8, luma: *u8) -> i64
65func frames(yuv: *u8, hi: i64, total: i64, fp: *i64, fdata: i64) -> i64
called by 1: main
72func seed(rctx: *i64, emode: i64, est: *i64, probs: *i64, rcbuf: *u8, t8c: *i64, plane: *i64) -> i64
called by 1: main
77func pathcat(dst: *u8, pre: *u8, suf: *u8) -> i64
called by 1: main calls 2: slencpb
85func main(argc: i64, argv: *i64) -> i64