LibGfx: Remove home-grown PNG codec in favor of libpng+apng

This commit is contained in:
Andreas Kling 2024-06-18 21:06:15 +02:00 committed by Andreas Kling
commit 8a3dc5ea0a
Notes: sideshowbarker 2024-07-17 06:51:40 +09:00
8 changed files with 306 additions and 1772 deletions

View file

@ -363,7 +363,10 @@ TEST_CASE(test_png_malformed_frame)
for (auto test_input : test_inputs) {
auto file = TRY_OR_FAIL(Core::MappedFile::map(test_input));
auto plugin_decoder = TRY_OR_FAIL(Gfx::PNGImageDecoderPlugin::create(file->bytes()));
auto plugin_decoder_or_error = Gfx::PNGImageDecoderPlugin::create(file->bytes());
if (plugin_decoder_or_error.is_error())
continue;
auto plugin_decoder = plugin_decoder_or_error.release_value();
auto frame_or_error = plugin_decoder->frame(0);
EXPECT(frame_or_error.is_error());
}