ws-webp: codec tests (vp8, vp8l), bench lines, type fixes

This commit is contained in:
4DBug committed 2026-10-31 08:58:17 -05:00
1 parent 7c3d4b75ec
commit 5977b60df6
7 files changed
+226 -5

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ function Vp8L.encode(rgba: buffer, width: number, height: number, opts: EncodeOp
if buffer.len(rgba) < width * height * 4 then
return nil, Err.new(Err.ARG, "encode: pixel buffer too small")
end
local o = opts or {}
local o: EncodeOptions = opts or {} :: EncodeOptions
local effort = o.effort or 5
if type(effort) ~= "number" or effort < 0 or effort > 9 then
return nil, Err.new(Err.ARG, "encode: effort must be 0..9")