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,8 +1,5 @@
|
||||
-- video/smk tests: Smacker files encoded by the fixture script (SMK2 and SMK4, every block type and run, the trees'
|
||||
-- escape cache, palette updates, a ring frame, ms and 10 us frame times; packed 16-bit stereo / 8-bit mono / 16-bit
|
||||
-- mono / 8-bit stereo audio and raw s16le / u8 tracks): every video frame and every audio track equal ffmpeg's
|
||||
-- decode (CRC-32 of rgba / f32le), audio seeking, errors, and the fuzz pass on the container, the video codec and the
|
||||
-- audio codec. Fixtures: tools/fixtures/smk.py.
|
||||
-- video/smk tests: Smacker files by the fixture script; video and audio equal ffmpeg's decode (CRC-32 of rgba / f32le).
|
||||
-- Fixtures: tools/fixtures/smk.py.
|
||||
local T = require("@tests/T")
|
||||
local F = require("@rosetta")
|
||||
local Smk = require("@rosetta/video/smk")
|
||||
@@ -21,7 +18,6 @@ local function reader(s: string): Bytes.Reader
|
||||
return Bytes.reader(buffer.fromstring(s))
|
||||
end
|
||||
|
||||
-- every frame of an audio Decoder -> f32 buffer, frames
|
||||
local function drain(dec: any): (buffer, number)
|
||||
local chunks, total = {}, 0
|
||||
while true do
|
||||
@@ -118,7 +114,6 @@ for _, c in Fx do
|
||||
end
|
||||
end
|
||||
|
||||
-- errors
|
||||
do
|
||||
local _, e = Smk.open(reader(string.sub(Fx[1].data, 1, 60)))
|
||||
t:check(e ~= nil and e.code == Err.TRUNCATED, "short header: TRUNCATED")
|
||||
@@ -131,7 +126,7 @@ do
|
||||
t:check(e4 ~= nil and e4.code == Err.TRUNCATED, "trees past the end: TRUNCATED")
|
||||
end
|
||||
|
||||
-- fuzz: the container, the video codec (native, no pcall in between) and the audio codec
|
||||
-- fuzz: the video codec is native, no pcall in between
|
||||
local samples = {}
|
||||
for _, c in Fx do
|
||||
table.insert(samples, c.data)
|
||||
|
||||
Reference in new issue
Block a user