mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Tests/LibGfx: Use a JPEG XL image with a RCT transformation
This image is exactly the same as the previous one, excepted the RCT transformation. It has been generated with: Width 64 Height 64 RCT 29 Upsample 2 Bitdepth 10 if N > 300 - NE -6 - W 6
This commit is contained in:
parent
697803efcc
commit
fa379b6e86
3 changed files with 4 additions and 2 deletions
|
@ -565,10 +565,12 @@ TEST_CASE(test_everything_tvg)
|
|||
|
||||
TEST_CASE(test_jxl_modular_simple_tree_upsample2_10bits)
|
||||
{
|
||||
|
||||
auto file = MUST(Core::MappedFile::map(TEST_INPUT("jxl/modular_simple_tree_upsample2_10bits.jxl"sv)));
|
||||
auto file = MUST(Core::MappedFile::map(TEST_INPUT("jxl/modular_simple_tree_upsample2_10bits_rct.jxl"sv)));
|
||||
EXPECT(Gfx::JPEGXLImageDecoderPlugin::sniff(file->bytes()));
|
||||
auto plugin_decoder = MUST(Gfx::JPEGXLImageDecoderPlugin::create(file->bytes()));
|
||||
|
||||
expect_single_frame_of_size(*plugin_decoder, { 128, 128 });
|
||||
|
||||
auto frame = MUST(plugin_decoder->frame(0));
|
||||
EXPECT_EQ(frame.image->get_pixel(42, 57), Gfx::Color::from_string("#4c0072"sv));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue