tests/image: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:50:18 -05:00
1 parent e306d5c1d7
commit a80299dce0
27 files changed
+32 -199

No files matched your search

+1 -5
View File
@@ -1,7 +1,4 @@
-- image/blp tests: BLP1 / BLP2 palette files written by Pillow and DXT1 / DXT3 / DXT5 / palette-with-alpha files
-- written by tools/fixtures/blp.py decode to Pillow's RGBA; BLP1 JPEG (3 components) to Pillow's, 4 components (BGRA)
-- within a PSNR of the source; BLP2 BGRA and BLP1 palette + alpha against the writer; our BLP2 writer round-trips
-- (with mips); errors; the fuzz pass. Fixtures: tools/fixtures/blp.py.
-- image/blp tests against Pillow and the fixture writer (tools/fixtures/blp.py).
local T = require("@tests/T")
local F = require("@rosetta")
local Blp = require("@rosetta/image/blp")
@@ -61,7 +58,6 @@ for _, c in Fx do
else
t:check(buffer.tostring(img.pixels) == c.rgba, c.name .. ": pixels against the writer")
end
-- our writer: BLP2 BGRA, lossless
local enc = Blp.encode(img, { mips = true }) :: buffer
local back = Blp.decode(Bytes.reader(enc)) :: any
t:eq(Crc32.of(back.pixels), Crc32.of(img.pixels), c.name .. ": BLP2 BGRA round trip")