ws-h264: tests (bit-exact vs ffmpeg, AVCC, NAL-at-a-time, unsupported, fuzz), bench lines; LuaJIT speedups (no table-allocating if-expressions, arithmetic bit reads, branch-free CABAC decisions, split MC filters)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
4DBugandClaude Opus 5.5 committed 2026-10-31 10:07:39 -05:00
1 parent 7ae481d4ed
commit c848c736ba
12 files changed
+648 -408

No files matched your search

+2 -6
View File
@@ -10,13 +10,9 @@ local readu8, writeu8 = buffer.readu8, buffer.writeu8
local Transform = {}
local min, max = math.min, math.max
local function clip(v: number): number
if v < 0 then
return 0
elseif v > 255 then
return 255
end
return v
return min(max(v, 0), 255)
end
-- add4(c, base, b, o, s): inverse 4x4 transform of c[base + 1 .. base + 16], added to the 4x4 block at b[o] (stride s)