1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibGfx: Add support for DDS images

This commit is contained in:
stelar7 2021-05-15 17:02:40 +02:00 committed by Linus Groh
parent 9f42ccd639
commit 24c5b0e81c
18 changed files with 1375 additions and 11 deletions

View file

@ -5,6 +5,7 @@
*/
#include <LibGfx/BMPLoader.h>
#include <LibGfx/DDSLoader.h>
#include <LibGfx/GIFLoader.h>
#include <LibGfx/ICOLoader.h>
#include <LibGfx/ImageDecoder.h>
@ -50,6 +51,10 @@ ImageDecoder::ImageDecoder(const u8* data, size_t size)
if (m_plugin->sniff())
return;
m_plugin = make<DDSImageDecoderPlugin>(data, size);
if (m_plugin->sniff())
return;
m_plugin = nullptr;
}