1
Fork 0
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:
Hüseyin ASLITÜRK 2020-06-22 15:19:57 +03:00 committed by Andreas Kling
parent 57ef3b27ec
commit dc5b73c43a
6 changed files with 538 additions and 0 deletions

View file

@ -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;