ws-webp: inline the boolean decoder in the VP8 token loop, cheaper loop-filter tests, no closures in 4x4 prediction; speed notes

This commit is contained in:
4DBug committed 2026-10-31 09:03:02 -05:00
1 parent c56ca75ed2
commit 7a6ba8ef10
2 files changed
+232 -124

No files matched your search

+3
View File
@@ -10,6 +10,9 @@
-- metadata).
-- Not supported: lossy encoding (UNSUPPORTED), the VP8 horizontal / vertical scale fields (ignored, as dwebp does),
-- alpha dithering / premultiplied output.
-- Speed (one Zen 5 core, 512 x 512, tools/bench.luau): lossy decode ~50 MB/s of rgba8 out (luau --codegen) / ~38 MB/s
-- (LuaJIT), lossless decode ~43 / ~73 MB/s, lossless encode ~6 / ~8 MB/s at effort 5 (~15 / ~18 MB/s at effort 1).
-- Encoded size: within ~4 % of cwebp -lossless on photos at effort 9, smaller on some synthetic images.
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@formats/core/Err")