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:
1 parent
5585ce53ce
commit
d22c72c1bc
4 files changed
+322
-18
No files matched your search
@@ -964,11 +964,28 @@ do
|
||||
end
|
||||
end
|
||||
end
|
||||
-- MPEG-2: 720x576 interlaced (field prediction / field DCT, B-frames), as on a DVD (ws-video2)
|
||||
local M2 = require("@tests/gen/mpeg2_bench")
|
||||
local function mpeg2(tag: string)
|
||||
for _, s in M2 do
|
||||
local file = Base64.decode(s.file) :: buffer
|
||||
fps(string.format("mpeg2 decode yuv %dx%d interlaced%s", s.width, s.height, tag), 3, #s.units, function()
|
||||
local dec = Mpeg1.new({ reorder = true, rgba = false })
|
||||
for i, u in s.units do
|
||||
dec:decode(file, u[1], u[2], i)
|
||||
end
|
||||
while dec:flush() do
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
jitTune(false)
|
||||
mpeg1("")
|
||||
mpeg2("")
|
||||
if runtime == "luajit" then
|
||||
jitTune(true)
|
||||
mpeg1(" (jit tuned)")
|
||||
mpeg2(" (jit tuned)")
|
||||
jitTune(false)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user