nx_jpegprobe.nx
buildroot/runtime/nx_jpegprobe.nx
about
nx_jpegprobe.nx -- DIAGNOSTIC: why does the image indexer skip real web JPEGs?
nx_imgsearch walkdir over 64 real gathered images indexed only 12 (187 permille). All 64 passed magic
sniff at gather time, so the loss is in the DECODER. This names the failing tooth mechanically instead
of guessing: for every file in a directory it reports SOF2-progressive yes/no, the nx_jpeg_decode_LUMA
return code (the path nx_img_to_gray -> nx_imgsearch actually uses), and -- only when luma failed -- the
nx_jpeg_decode_RGB return code. The cross-tab progressive AND luma-fail AND rgb-ok is the smoking gun
for a branch that exists in one sibling and not the other.
usage: nx_jpegprobe <dir>
dependencies 5 imports · 0 importers
imports: nx_str.nxnx_syscalls.nxnx_dir.nxnx_jpeg_ascii.nxnx_jpeg_progressive.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
| 18 | const JP_MAXROWS: i64 = 4096 |
| 19 | const JP_ARENA: i64 = 1048576 |
| 20 | const JP_PATH: i64 = 4096 |
functions
| 22 | func jp_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 } |
| 24 | func jp_pi(v: i64) -> i64 |
| 38 | func jp_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 |
| 40 | func main(argc: i64, argv: *i64) -> i64 |