tests/video: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:49:51 -05:00
1 parent 96602286f8
commit 1d4f02d984
14 files changed
+37 -109

No files matched your search

+3 -6
View File
@@ -1,7 +1,5 @@
-- video/fli tests: FLI (COLOR_64, BRUN, LC, BLACK, COPY, PSTAMP, a ring frame), FLC (prefix chunk, COLOR_256, SS2 with
-- line skips and the last-byte opcode, an empty frame), an odd-size FLC, and 15 / 16 / 24-bit FLCs (BRUN, DTA_BRUN,
-- DELTA, DTA_LC, COPY, DTA_COPY, BLACK), all encoded by the fixture script: every frame equals ffmpeg's decode
-- (CRC-32 of rgba), frame rates, the ring frame option, seeking, errors, the fuzz pass. Fixtures: tools/fixtures/fli.py.
-- video/fli tests: FLI / FLC files encoded by the fixture script; every frame equals ffmpeg's decode (CRC-32 of rgba).
-- Fixtures: tools/fixtures/fli.py.
local T = require("@tests/T")
local F = require("@rosetta")
local Fli = require("@rosetta/video/fli")
@@ -59,7 +57,6 @@ for _, c in Fx do
end
end
-- errors
do
local _, e = Fli.open(reader(string.sub(Fx[1].data, 1, 100)))
t:check(e ~= nil and e.code == Err.TRUNCATED, "short header: TRUNCATED")
@@ -85,7 +82,7 @@ t:fuzz("open", function(b: buffer)
end
return v
end, samples, { mutations = 12, garbage = 40, keepHeader = 16 })
-- the frame decoder itself (codecs/video/Legacy/Flic, native: no pcall in between)
-- the frame decoder itself (native: no pcall in between)
local Flic = require("@rosetta/codecs/video/Legacy").Flic
for _, c in { Fx[1], Fx[2], Fx[4], Fx[6] } do
local d = Fli.demux(reader(c.data))