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

LibGfx: Add PPM image file type support

This commit is contained in:
Hüseyin ASLITÜRK 2020-06-22 11:58:04 +03:00 committed by Andreas Kling
parent 97aca8f251
commit 326032b138
6 changed files with 553 additions and 1 deletions

View file

@ -24,12 +24,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <LibGfx/ImageDecoder.h>
#include <LibGfx/BMPLoader.h>
#include <LibGfx/GIFLoader.h>
#include <LibGfx/ICOLoader.h>
#include <LibGfx/ImageDecoder.h>
#include <LibGfx/PBMLoader.h>
#include <LibGfx/PNGLoader.h>
#include <LibGfx/PPMLoader.h>
namespace Gfx {
@ -51,6 +52,10 @@ ImageDecoder::ImageDecoder(const u8* data, size_t size)
if (m_plugin->sniff())
return;
m_plugin = make<PPMImageDecoderPlugin>(data, size);
if (m_plugin->sniff())
return;
m_plugin = make<ICOImageDecoderPlugin>(data, size);
if (m_plugin->sniff())
return;