nx_webpprobe.nx
buildroot/runtime/nx_webpprobe.nx
about
nx_webpprobe.nx -- DIAGNOSTIC: which WebP variant is actually on the wire?
Our webp_decode() searches for the VP8L (lossless) fourcc and returns 0 for anything else, so wiring it
in blind would fix an unknown fraction of the gap. RIFF layout: 'RIFF' <size> 'WEBP' <fourcc> -- so the
variant is bytes 12..15. This walks a directory and reports the split, which decides whether closing the
WebP gap is a WIRING job (VP8L) or a CODEC job (VP8 lossy intra).
usage: nx_webpprobe <dir>
dependencies 4 imports · 0 importers
imports: nx_str.nxnx_syscalls.nxnx_dir.nxnx_webp.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const WP_MAXROWS: i64 = 4096 |
| 16 | const WP_ARENA: i64 = 1048576 |
| 17 | const WP_PATH: i64 = 4096 |
functions
| 19 | func wp_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 } |
| 21 | func wp_pi(v: i64) -> i64 |
| 35 | func wp_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off+i] = s[i]; i = i + 1 } return off + i } called by 1: main |
| 37 | func wp_fourcc_is(b: *u8, off: i64, a: i64, c: i64, d: i64, e: i64) -> i64 called by 1: main |
| 45 | func main(argc: i64, argv: *i64) -> i64 |