Skip to content

Commit 0583260

Browse files
LucasCholletnico
authored andcommitted
Tests/LibGfx: Add a JPEG XL test case using the Squeeze transform
The test case was created with: `cjxl modular_property_8.jxl -d 0 -m 1 -R 1 modular_squeeze.jxl`
1 parent 6610f3a commit 0583260

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Tests/LibGfx/TestImageDecoder.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,6 +2138,15 @@ TEST_CASE(test_jxl_modular_property_8)
21382138
verify_checkerboard(*plugin_decoder);
21392139
}
21402140

2141+
TEST_CASE(test_jxl_modular_squeeze)
2142+
{
2143+
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("jxl/modular_squeeze.jxl"sv)));
2144+
EXPECT(Gfx::JPEGXLImageDecoderPlugin::sniff(file->bytes()));
2145+
auto plugin_decoder = TRY_OR_FAIL(Gfx::JPEGXLImageDecoderPlugin::create(file->bytes()));
2146+
2147+
verify_checkerboard(*plugin_decoder);
2148+
}
2149+
21412150
TEST_CASE(test_jxl_icc)
21422151
{
21432152
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("jxl/icc.jxl"sv)));
61 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)