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:
parent
9f42ccd639
commit
24c5b0e81c
18 changed files with 1375 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue