diff options
author | Dayang Shen <Archangel.SDY@gmail.com> | 2016-03-05 15:40:30 +0800 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2016-03-10 14:38:14 +0000 |
commit | 1d4f24820c0fff474d524e006d715e13e409a4b8 (patch) | |
tree | 903ca840e78e32504699ddb24d535ed25d748796 /config.tests | |
parent | 35b4108a4e2090a856226ac15b796e118655fa8b (diff) |
Add animation support to WebP plugin
We now use WebP Demux API to decode both single image format and muxed animation format.
Change-Id: Ia2922892a3a626e9921c3910801d7c975d9fc6a2
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/libwebp/libwebp.cpp | 5 | ||||
-rw-r--r-- | config.tests/libwebp/libwebp.pro | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config.tests/libwebp/libwebp.cpp b/config.tests/libwebp/libwebp.cpp index f021a17..720b72b 100644 --- a/config.tests/libwebp/libwebp.cpp +++ b/config.tests/libwebp/libwebp.cpp @@ -28,6 +28,7 @@ #include <webp/decode.h> #include <webp/encode.h> +#include <webp/demux.h> #if WEBP_ABI_IS_INCOMPATIBLE(WEBP_DECODER_ABI_VERSION, 0x0203) || WEBP_ABI_IS_INCOMPATIBLE(WEBP_ENCODER_ABI_VERSION, 0x0202) #error "Incompatible libwebp version" @@ -42,6 +43,10 @@ int main(int, char **) picture.use_argb = 0; WebPConfig config2; config2.lossless = 0; + WebPData data = {}; + WebPDemuxer *demuxer = WebPDemux(&data); + WebPIterator iter; + iter.frame_num = 0; return 0; } diff --git a/config.tests/libwebp/libwebp.pro b/config.tests/libwebp/libwebp.pro index d69b9be..bcbedf8 100644 --- a/config.tests/libwebp/libwebp.pro +++ b/config.tests/libwebp/libwebp.pro @@ -2,5 +2,5 @@ SOURCES = libwebp.cpp CONFIG -= qt dylib mac:CONFIG -= app_bundle win32:CONFIG += console -unix|mingw: LIBS += -lwebp -else:win32: LIBS += libwebp.lib +unix|mingw: LIBS += -lwebp -lwebpdemux +else:win32: LIBS += libwebp.lib libwebpdemux.lib |