1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +01:00

wrlib: Added support for webp image

This patch is adding support for google webp image format, if you
don't know it a quick recap is to say that according to their tests
they claim it is better than png and jpeg.

Follow the link below for some more details:
https://developers.google.com/speed/webp/

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
David Maciejak
2014-04-05 22:51:03 +02:00
committed by Carlos R. Mafra
parent de1421394c
commit 050cae3bd2
6 changed files with 207 additions and 2 deletions

View File

@@ -38,12 +38,13 @@ typedef enum {
IM_PNG = 3,
IM_PPM = 4,
IM_JPEG = 5,
IM_GIF = 6
IM_GIF = 6,
IM_WEBP = 7
} WRImgFormat;
/* How many image types we have. */
/* Increase this when adding new image types! */
#define IM_TYPES 6
#define IM_TYPES 7
/*
* Function for Loading in a specific format
@@ -68,6 +69,10 @@ RImage *RLoadJPEG(const char *file);
RImage *RLoadGIF(const char *file, int index);
#endif
#ifdef USE_WEBP
RImage *RLoadWEBP(const char *file);
#endif
/*
* Function for Saving in a specific format
*/