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/y4m tests: YUV4MPEG2 streams from ffmpeg (C420jpeg at an odd size, C420mpeg2, C422, C444, Cmono, C420p10)
-- against ffmpeg's yuv420p decode (bit-exact for 4:2:0 8-bit, PSNR for the converted layouts), the header fields,
-- our writer round trip (and from an rgba frames-backed video), errors and the fuzz pass. Fixtures:
-- tools/fixtures/y4m.py.
-- video/y4m tests: YUV4MPEG2 from ffmpeg against its yuv420p decode (bit-exact for 4:2:0 8-bit, else PSNR).
-- Fixtures: tools/fixtures/y4m.py.
local T = require("@tests/T")
local C = require("@tests/video/_common")
local F = require("@rosetta")
@@ -47,7 +45,7 @@ for _, c in Fx do
end
end
-- writer: a y4m stream back to y4m is byte-identical in its frames; header as ffmpeg writes it
-- header as ffmpeg writes it
do
local c = Fx[1]
local v = F.video.open(buffer.fromstring(c.data))
@@ -86,7 +84,6 @@ do
end
end
-- errors
local function code(s: string): string?
local _, e = Y4m.open(Bytes.reader(buffer.fromstring(s)))
return e and e.code