code wiki / _hdl_build / nx_voice_codec_v2_gate.nx

nx_voice_codec_v2_gate.nx

buildroot/runtime/_hdl_build/nx_voice_codec_v2_gate.nx

3142 B57 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic voice
docsdependenciesstructsconstsfunctions

about

nx_voice_codec_v2_gate.nx -- proves the v2 voice codec (nx_voice_codec_v2) as a real encode/decode PAIR: PCM frame -> v2_encode -> wire bytes -> v2_decode -> PCM, reconstructed faithfully and smaller than raw PCM. This is the v1 skeleton's "v2 path" realised as an actual codec.

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_voice_codec_v2.nx nx_voice_codec_v2_gate.nx

imports: nx_syscalls_x86_64.nxnx_voice_codec_v2.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 st16 g_abs ld16 v2_encode nx_lpc_autocorr nx_lpc_levinson _q30_mul _v2_ld64 v2_stepup _v2_st64 _v2_ld16 _v2_abs re_build_model re_encode nx_rc_enc_init re_zz nx_rc_enc_symbol _rc_enc_renorm _rc_enc_put_byte nx_rc_enc_done _rc_enc_put_byte ↻ _v2_w16 v2_decode _v2_r16 v2_stepup ↻ re_build_model ↻ re_decode nx_rc_dec_init nx_rc_dec_get_target nx_rc_dec_update _rc_dec_renorm re_unzz _v2_st16 nx_lpc_synth _i16_load_le _i64_load_le _i16_store_le_sat g_pn

structs

none

consts

none

functions

7func g_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 2: g_checkmain
8func g_pn(v: i64) -> i64
called by 1: main
18func g_check(name: *u8, cond: i64) -> i64
called by 1: main calls 1: g_puts
22func g_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
called by 1: main
23func ld16(buf: *u8, idx: i64) -> i64 { var v: i64 = buf[idx*2] | (buf[idx*2+1] << 8); if v >= 32768 { v = v - 65536 } return v }
called by 1: main
24func st16(buf: *u8, idx: i64, v: i64) -> i64 { var x: i64 = v; if x < 0 { x = x + 65536 } buf[idx*2] = x & 0xff; buf[idx*2+1] = (x >> 8) & 0xff; return 0 }
called by 1: main
26func main() -> i64