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:
1 parent
7ae481d4ed
commit
c848c736ba
12 files changed
+648
-408
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user