mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibGfx: Add PGM image file type support
This commit is contained in:
parent
57ef3b27ec
commit
dc5b73c43a
6 changed files with 538 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <LibGfx/ImageDecoder.h>
|
||||
#include <LibGfx/JPGLoader.h>
|
||||
#include <LibGfx/PBMLoader.h>
|
||||
#include <LibGfx/PGMLoader.h>
|
||||
#include <LibGfx/PNGLoader.h>
|
||||
#include <LibGfx/PPMLoader.h>
|
||||
|
||||
|
@ -53,6 +54,10 @@ ImageDecoder::ImageDecoder(const u8* data, size_t size)
|
|||
if (m_plugin->sniff())
|
||||
return;
|
||||
|
||||
m_plugin = make<PGMImageDecoderPlugin>(data, size);
|
||||
if (m_plugin->sniff())
|
||||
return;
|
||||
|
||||
m_plugin = make<PPMImageDecoderPlugin>(data, size);
|
||||
if (m_plugin->sniff())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue