code wiki / _hdl_build / nx_nv1_transcode.nx

nx_nv1_transcode.nx

buildroot/runtime/_hdl_build/nx_nv1_transcode.nx

3331 B88 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic nv1
docsdependenciesstructsconstsfunctions

about

nx_nv1_transcode.nx -- NV1 raw->LPC transcoder probe (REAL-DATA evidence for the LPC rung): reads an NLC1 container from /tmp/nv1_in.bin, rewrites every 'A' (raw PCM) chunk as an 'L' (LPC) chunk, copies V chunks and the terminator, writes /tmp/nv1_out.bin, validates the output, then SELF- CHECKS by decoding every L chunk back and byte-comparing against the original PCM. Prints TRANSCODE markers (judge by markers, not $?-echo). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_nv1_lpc.nx nx_nv1_transcode.nx

imports: nx_nv1_lpc.nx

imported by: nobody (leaf or entry point)

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

main sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close tc_puts nv1_validate nv1_rd_u32 nv1_rd_u32 ↻ nv1l_encode nv1_wr_u32 nv1l_rd_i16 nv1l_residuals nv1l_best_k nv1l_cost_bits nv1l_rice_put nv1l_bit_put nv1_write_chunk nv1_wr_u32 ↻ nv1l_decode nv1_rd_u32 ↻ nv1l_rd_i16 ↻ nv1l_wr_i16 nv1l_rice_get nv1l_bit_get nv1_write_end nv1_wr_u32 ↻ sys_openat_wr tc_dec

structs

none

consts

10const K_MAGIC_65536: i64 = 65536

functions

12func tc_puts(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 1: main
13func tc_dec(v: i64) -> i64
called by 1: main
26func main() -> i64