tests/codecs (m-z): comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:50:53 -05:00
1 parent 98b4ce533e
commit a6732d45f2
23 files changed
+46 -177

No files matched your search

+2 -6
View File
@@ -1,7 +1,5 @@
-- codecs/image/Vp8 tests: the VP8 key frames of the WebP fixtures (cwebp at many settings and libvpx through ffmpeg, with
-- 1..8 token partitions) decoded through the codec API: the yuv420p planes against dwebp -yuv, toRgba against
-- dwebp -pam (fancy upsampling) and -nofancy, the decoder object over successive frames, headers, error codes and the
-- fuzz no-throw pass on raw frames. Fixtures: tools/fixtures/webp.py.
-- codecs/image/Vp8 tests: WebP key frames: yuv420p against dwebp -yuv, toRgba against dwebp -pam and -nofancy.
-- Fixtures: tools/fixtures/webp.py.
local T = require("@tests/T")
local Vp8 = require("@rosetta/codecs/image/Vp8")
local Crc32 = require("@rosetta/core/Crc32")
@@ -50,7 +48,6 @@ for _, c in Cases do
end
t:note("%d VP8 key frames (%d from libvpx) match dwebp: planes, fancy and point upsampling", n, vpx)
-- errors
do
local f = buffer.fromstring(frames[1])
local inter = buffer.fromstring(frames[1])
@@ -69,7 +66,6 @@ do
t:check(e5 and e5.code == Err.ARG, "toRgba of a non-yuv image")
end
-- fuzz on raw frames
t:fuzz("decodeFrame", function(b: buffer)
return Vp8.decodeFrame(b, 0, buffer.len(b), { maxPixels = 2 ^ 20 })
end, frames, { mutations = 12, keepHeader = 10 })