tests/codecs (m-z): comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:50:53 -05:00
1 parent 98b4ce533e
commit a6732d45f2
23 files changed
+46 -177

No files matched your search

+1 -3
View File
@@ -1,5 +1,4 @@
-- codecs/image/Yuv tests: scale (yuv420p planes resized bilinear: flat planes stay flat, a horizontal ramp stays a
-- monotonic ramp, output sizes with odd dimensions, identity size, short input), imageScale, and a toRgba round trip.
-- codecs/image/Yuv tests: scale (bilinear yuv420p), imageScale, and a toRgba round trip.
local T = require("@tests/T")
local Yuv = require("@rosetta/codecs/image/Yuv")
local Types = require("@rosetta/Types")
@@ -48,7 +47,6 @@ for _, c in { { 64, 48, 32, 24 }, { 800, 600, 480, 360 }, { 33, 17, 13, 9 }, { 2
t:check(buffer.readu8(out, 0) <= 16 and buffer.readu8(out, dw - 1) >= 239, label .. ": ramp ends")
end
-- the same size copies
local src = picture(20, 20)
t:eq(buffer.tostring(Yuv.scale(src, 20, 20, 20, 20)), buffer.tostring(src), "identity")
-- a short source gives a zero picture of the right size, no throw