code wiki / _hdl_build / nx_webp_mapdump.nx
nx_webp_mapdump.nx
buildroot/runtime/_hdl_build/nx_webp_mapdump.nx
about
nx_webp_mapdump.nx -- decisive instrument: walk the fixture's transform list and print BOTH
5x5 tile maps pixel-by-pixel (a,r,g,b per pixel), plus the bit-reader byte/bit cursor after
each sub-image. The maps' first rows produce correct main-image tiles and later rows do not;
the raw values name the failing mechanism. license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_webp_decode.nxnx_webp_vp8l.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 12 | func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 14 | func wr_plane(path: *u8, argb: *i64) -> i64 |
| 31 | func pn(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{pw("-\x00" as *u8);m=0-m} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 } |
| 33 | func dump_map(tag: *u8, m: *i64) -> i64 |
| 54 | func main() -> i64 |