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:
parent
41d5531624
commit
9ab82c0ee5
6 changed files with 507 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue