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:
parent
97aca8f251
commit
326032b138
6 changed files with 553 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue