tests/codecs (a-m): comments: specs only
This commit is contained in:
1 parent
a80299dce0
commit
5f7f6005f6
24 files changed
+46
-181
No files matched your search
@@ -1,7 +1,5 @@
|
||||
-- codecs/image/Dct tests: the islow inverse DCT against a double-precision reference (within 1 level per sample, as T.81
|
||||
-- annex A accuracy needs), forward DCT + quantiser against the reference transform (round to nearest of v / (8 q)),
|
||||
-- fdct -> idct round trips at q = 1 within 1 level, edge replication of fdctQuantize, and garbage coefficients never
|
||||
-- throw (outputs stay clamped). The bit-exact djpeg / cjpeg checks are in tests/image/jpeg.luau.
|
||||
-- codecs/image/Dct tests: the islow IDCT against a double-precision reference, the forward DCT + quantiser.
|
||||
-- The bit-exact djpeg / cjpeg checks are in tests/image/jpeg.luau.
|
||||
local T = require("@tests/T")
|
||||
local Dct = require("@rosetta/codecs/image/Dct")
|
||||
|
||||
@@ -62,7 +60,6 @@ do
|
||||
t:note("idct: worst error %d over 300 random blocks", worst)
|
||||
end
|
||||
|
||||
-- forward + quantiser
|
||||
do
|
||||
local worst = 0
|
||||
for _ = 1, 200 do
|
||||
@@ -91,7 +88,6 @@ do
|
||||
end
|
||||
end
|
||||
t:check(worst <= 0.75, "fdct + quantise within rounding of the float reference: " .. worst)
|
||||
-- round trip at q = 1
|
||||
local rt = 0
|
||||
for _ = 1, 100 do
|
||||
local src = buffer.create(64)
|
||||
|
||||
Reference in new issue
Block a user