wuffs
wuffs copied to clipboard
Wrangling Untrusted File Formats Safely
I'm trying to play with wuffs, and something I miss from coding in Go or other languages is the ability to add debug prints. Something akin to Go's `println` would...
Fact: (outIdx + 2) < 400 What I expect: outIdx < 400 is provable Observed: "cannot prove "outIdx < 400": failed at (...). Facts: [. . .] (outIdx + 2)...
safe decoding is important however is limited, the `puffs` is designed elegant I admit and want to use in decoding some proprietary binary format, but to occasionally to write in...
- [x] The PNG decoder still loops around "short read" in one place. - [ ] `DecodeImage0` doesn't reflect this change (no `DecodeImage_UnexpectedEndOfFile` as far as I can tell). -...
why PNG color_type == 2 (so RGB triple) in the file https://github.com/google/wuffs/blob/main/std/png/decode_png.wuffs } else if this.depth == 16 { this.dst_pixfmt = base.PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE this.src_pixfmt = base.PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE this.filter_distance = 6 choose filter_and_swizzle...
According to the PNG spec: Pixels are always stored in RGBA order: > Pixels are always stored in RGBA order However Wuffs reports the pixel format as BGR(A). Am I...
## Problem When decoding a big image (height=4320, width=7680, channels=4, data type = uint8_t), wuffs is much slow than OpenCV 4.9.0, on Apple M1 (Mac-mini). ## Time cost 7680x4320 image...
On Windows, Visual studio 2022, no AVX, AMD Ryzen 9 5950x. ``` wuffs 0.3, decoding to WUFFS_BASE__PIXEL_FORMAT__RGB ----------------------------------------------------- doDecodeFromBufferWithWuffs took 8.4251 ms doDecodeFromBufferWithWuffs took 8.3683 ms doDecodeFromBufferWithWuffs took 8.4120 ms...