code wiki / (root) / nx_vp8probe.nx

nx_vp8probe.nx

buildroot/runtime/nx_vp8probe.nx

6196 B167 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_vp8probe.nx -- DIAGNOSTIC bring-up harness for the C3 VP8 keyframe decoder. Decodes one lossy WebP file and prints machine-readable evidence: dimensions, global Y/U/V means, and an 8x8 grid of Y tile means that an INDEPENDENT oracle (libwebp via PIL, laptop-side) can be compared against number-by-number. Also embeds the prob-128 bool-decoder property check (prob-128 decode IS the raw bitstream) so a desync shows up here first. usage: nx_vp8probe <file.webp> license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_vp8.nx nx_vp8_pred.nx nx_vp8_kf.nx nx_vp8probe.nx

imports: nx_str.nxnx_syscalls.nxnx_vp8.nxnx_vp8_pred.nxnx_vp8_kf.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_vp8_bool_init sys_mmap ↻ nx_vp8_at nx_vp8_bool_literal nx_vp8_bool_bit nx_vp8_bool_get nx_vp8_at ↻ vp8p_sr16 vp8p_sr3 vpb_puts sys_write nx_str_len vpb_pi sys_mmap ↻ sys_write ↻ sys_exit sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close vpb_cc vpb_u32 nx_vp8_kf_decode sys_mmap ↻ nx_vp8_frame_parse nx_vp8_at ↻ nx_vp8_bool_init ↻ nx_vp8_bool_literal ↻ nx_vp8_bool_bit ↻ nx_vp8_bool_maybe_signed nx_vp8_bool_bit ↻ nx_vp8_bool_signed nx_vp8_bool_literal ↻ nx_vp8_bool_bit ↻ vp8t_fill_dcq vp8t_p8

structs

none

consts

17const K_MAGIC_42375: i64 = 42375
18const K_MAGIC_7602: i64 = 7602
19const K_MAGIC_65536: i64 = 65536
20const K_MAGIC_65537: i64 = 65537

functions

22func vpb_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 1: main calls 2: sys_writenx_str_len
24func vpb_pi(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
38func vpb_cc(b: *u8, off: i64, a: i64, c: i64, d: i64, e: i64) -> i64
called by 1: main
46func vpb_u32(b: *u8, off: i64) -> i64
called by 1: main
50func main(argc: i64, argv: *i64) -> i64