tests/video: comments: specs only
This commit is contained in:
1 parent
96602286f8
commit
1d4f02d984
14 files changed
+37
-109
No files matched your search
@@ -1,7 +1,5 @@
|
||||
-- video/h264 tests: H.264 through F.video.open end to end: raw Annex B (.h264, the video/h264 format), MP4 and MKV
|
||||
-- (avcC + length-prefixed samples) and MPEG-TS / AVI (Annex B packets) written by ffmpeg / libx264, frames bit-exact
|
||||
-- against ffmpeg's decode of each file; display-order timestamps; the raw writer (MP4 -> .h264) read back; sniffing;
|
||||
-- the fuzz no-throw pass on the raw demuxer. Fixtures: tools/fixtures/h264.py (h264_containers).
|
||||
-- video/h264 tests: H.264 by ffmpeg / libx264 in raw Annex B, MP4, MKV, MPEG-TS and AVI, bit-exact against ffmpeg.
|
||||
-- Fixtures: tools/fixtures/h264.py (h264_containers).
|
||||
local T = require("@tests/T")
|
||||
local F = require("@rosetta")
|
||||
local Fmt = require("@rosetta/video/h264")
|
||||
@@ -50,7 +48,6 @@ for _, c in Cases do
|
||||
end
|
||||
end
|
||||
|
||||
-- raw format directly: sniff, demux, 25 fps output order
|
||||
do
|
||||
local c = byName["cabac_b.h264"]
|
||||
local r = Bytes.reader(buffer.fromstring(c.data))
|
||||
@@ -63,7 +60,6 @@ do
|
||||
t:check(#got == #c.frames and math.abs(got[2].pts - 1 / 25) < 1e-9, "raw: pts in output order at 25 fps")
|
||||
end
|
||||
|
||||
-- writer: the MP4's H.264 track as a raw Annex B stream, decoded again
|
||||
for _, src in { "cabac_b.mp4", "baseline.mkv", "baseline.ts" } do
|
||||
local c = byName[src]
|
||||
local v = F.video.open(c.data)
|
||||
@@ -83,7 +79,6 @@ for _, src in { "cabac_b.mp4", "baseline.mkv", "baseline.ts" } do
|
||||
end
|
||||
end
|
||||
|
||||
-- fuzz: the raw demuxer + decoder
|
||||
local samples = { byName["baseline.h264"].data, byName["cabac_b.h264"].data }
|
||||
t:fuzz("open + frames", function(b: buffer)
|
||||
local v = Fmt.open(Bytes.reader(b), { maxPixels = 2 ^ 18 })
|
||||
|
||||
Reference in new issue
Block a user