1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibGfx: Add PBM image file type support

This commit is contained in:
Hüseyin ASLITÜRK 2020-06-21 12:00:22 +03:00 committed by Andreas Kling
parent 41d5531624
commit 9ab82c0ee5
6 changed files with 507 additions and 0 deletions

View file

@ -27,6 +27,7 @@
#include <LibGfx/ImageDecoder.h>
#include <LibGfx/BMPLoader.h>
#include <LibGfx/GIFLoader.h>
#include <LibGfx/PBMLoader.h>
#include <LibGfx/PNGLoader.h>
namespace Gfx {
@ -45,6 +46,10 @@ ImageDecoder::ImageDecoder(const u8* data, size_t size)
if (m_plugin->sniff())
return;
m_plugin = make<PBMImageDecoderPlugin>(data, size);
if (m_plugin->sniff())
return;
m_plugin = nullptr;
}