ws-webp: codec tests (vp8, vp8l), bench lines, type fixes
This commit is contained in:
1 parent
ef8262d767
commit
ced18478df
7 files changed
+226
-5
No files matched your search
@@ -420,7 +420,7 @@ function Webp.encode(img: Types.Image, opts: EncodeOptions?): (buffer?, Err.Err?
|
||||
if type(effort) ~= "number" or effort < 0 or effort > 9 then
|
||||
return nil, Err.new(Err.ARG, "effort must be 0..9")
|
||||
end
|
||||
local vopts = { effort = effort, exact = o.exact }
|
||||
local vopts: Vp8L.EncodeOptions = { effort = effort, exact = o.exact }
|
||||
local w, h = img.width, img.height
|
||||
local icc, exif, xmp = metaChunk(img.meta, "icc"), metaChunk(img.meta, "exif"), metaChunk(img.meta, "xmp")
|
||||
local frames = img.frames
|
||||
|
||||
Reference in new issue
Block a user