ws-video2: MPEG-2 field-picture / concealment-vector fixtures (a syntax-level writer in tools/fixtures/mpeg2.py), bit-exact; LuaJIT-friendlier hot paths; mpeg2 bench line

This commit is contained in:
4DBug committed 2026-10-31 14:50:27 -05:00
1 parent 5585ce53ce
commit d22c72c1bc
4 files changed
+322 -18

No files matched your search

+3 -1
View File
@@ -1,7 +1,7 @@
-- codecs/video/Mpeg2 tests. Against `ffmpeg -idct int` (tools/fixtures/mpeg2.py): every stream (progressive and
-- interlaced frame pictures with field prediction and field DCT, top / bottom field first, 4:2:2, the alternate scan,
-- Table B-15, the non-linear quantiser scale, DC precision 9..11, custom luma / chroma matrices, f_code > 1, an odd
-- size, B-frames, dual prime) decodes one access unit at a time to exactly ffmpeg's planes, every frame, in display
-- size, B-frames, dual prime, field pictures, concealment vectors) decodes one access unit at a time to exactly ffmpeg's planes, every frame, in display
-- order; the same stream written in random pieces gives the same frames; frame flags (mpeg2, chroma, progressive,
-- topFieldFirst); frameImage (4:2:2 -> yuv420p, rgba8); the registry's VideoCodecDecoder; truncated and corrupted
-- streams never throw; the fuzz no-throw pass.
@@ -24,6 +24,8 @@ local STREAMS = {
require("@tests/gen/mpeg2_c422"),
require("@tests/gen/mpeg2_c422_ilace"),
require("@tests/gen/mpeg2_dualprime"),
require("@tests/gen/mpeg2_fields"),
require("@tests/gen/mpeg2_fields_conceal"),
}
local t = T.suite("codecs/mpeg2")