From d8d421ce5b2c218f0075ef457139cd4f17505de7 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Thu, 25 Apr 2013 09:25:07 +0200 Subject: Adding libwebp: Patches to libwebp 0.4.0 for Qt usage Task-number: QTBUG-14205 Change-Id: Id7c3f4d9398b613a18033d8f3f624448f31ce33d Reviewed-by: Lars Knoll --- src/3rdparty/libwebp.pri | 70 +++++++++++++++++++++++++++++ src/3rdparty/libwebp/config.h | 101 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 171 insertions(+) create mode 100644 src/3rdparty/libwebp.pri create mode 100644 src/3rdparty/libwebp/config.h (limited to 'src/3rdparty') diff --git a/src/3rdparty/libwebp.pri b/src/3rdparty/libwebp.pri new file mode 100644 index 0000000..03f51dd --- /dev/null +++ b/src/3rdparty/libwebp.pri @@ -0,0 +1,70 @@ +CONFIG += object_parallel_to_source no_batch + +INCLUDEPATH += \ + $$PWD/libwebp \ + $$PWD/libwebp/src \ + $$PWD/libwebp/src/dec \ + $$PWD/libwebp/src/enc \ + $$PWD/libwebp/src/dsp \ + $$PWD/libwebp/src/mux \ + $$PWD/libwebp/src/utils \ + $$PWD/libwebp/src/webp + +SOURCES += \ + $$PWD/libwebp/src/dec/alpha.c \ + $$PWD/libwebp/src/dec/buffer.c \ + $$PWD/libwebp/src/dec/frame.c \ + $$PWD/libwebp/src/dec/idec.c \ + $$PWD/libwebp/src/dec/io.c \ + $$PWD/libwebp/src/dec/layer.c \ + $$PWD/libwebp/src/dec/quant.c \ + $$PWD/libwebp/src/dec/tree.c \ + $$PWD/libwebp/src/dec/vp8.c \ + $$PWD/libwebp/src/dec/vp8l.c \ + $$PWD/libwebp/src/dec/webp.c \ + $$PWD/libwebp/src/demux/demux.c \ + $$PWD/libwebp/src/dsp/cpu.c \ + $$PWD/libwebp/src/dsp/dec.c \ + $$PWD/libwebp/src/dsp/dec_neon.c \ + $$PWD/libwebp/src/dsp/dec_sse2.c \ + $$PWD/libwebp/src/dsp/enc.c \ + $$PWD/libwebp/src/dsp/enc_neon.c \ + $$PWD/libwebp/src/dsp/enc_sse2.c \ + $$PWD/libwebp/src/dsp/lossless.c \ + $$PWD/libwebp/src/dsp/upsampling.c \ + $$PWD/libwebp/src/dsp/upsampling_neon.c \ + $$PWD/libwebp/src/dsp/upsampling_sse2.c \ + $$PWD/libwebp/src/dsp/yuv.c \ + $$PWD/libwebp/src/enc/alpha.c \ + $$PWD/libwebp/src/enc/analysis.c \ + $$PWD/libwebp/src/enc/backward_references.c \ + $$PWD/libwebp/src/enc/config.c \ + $$PWD/libwebp/src/enc/cost.c \ + $$PWD/libwebp/src/enc/filter.c \ + $$PWD/libwebp/src/enc/frame.c \ + $$PWD/libwebp/src/enc/histogram.c \ + $$PWD/libwebp/src/enc/iterator.c \ + $$PWD/libwebp/src/enc/layer.c \ + $$PWD/libwebp/src/enc/picture.c \ + $$PWD/libwebp/src/enc/quant.c \ + $$PWD/libwebp/src/enc/syntax.c \ + $$PWD/libwebp/src/enc/token.c \ + $$PWD/libwebp/src/enc/tree.c \ + $$PWD/libwebp/src/enc/vp8l.c \ + $$PWD/libwebp/src/enc/webpenc.c \ + $$PWD/libwebp/src/mux/muxedit.c \ + $$PWD/libwebp/src/mux/muxinternal.c \ + $$PWD/libwebp/src/mux/muxread.c \ + $$PWD/libwebp/src/utils/alpha_processing.c \ + $$PWD/libwebp/src/utils/bit_reader.c \ + $$PWD/libwebp/src/utils/bit_writer.c \ + $$PWD/libwebp/src/utils/color_cache.c \ + $$PWD/libwebp/src/utils/filters.c \ + $$PWD/libwebp/src/utils/huffman.c \ + $$PWD/libwebp/src/utils/huffman_encode.c \ + $$PWD/libwebp/src/utils/quant_levels.c \ + $$PWD/libwebp/src/utils/quant_levels_dec.c \ + $$PWD/libwebp/src/utils/random.c \ + $$PWD/libwebp/src/utils/rescaler.c \ + $$PWD/libwebp/src/utils/thread.c \ + $$PWD/libwebp/src/utils/utils.c diff --git a/src/3rdparty/libwebp/config.h b/src/3rdparty/libwebp/config.h new file mode 100644 index 0000000..e947f2c --- /dev/null +++ b/src/3rdparty/libwebp/config.h @@ -0,0 +1,101 @@ +/* + Configuration defines for Qt. +*/ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MEMORY_H */ + +/* Define if you have POSIX threads libraries and header files. */ +/* #undef HAVE_PTHREAD */ + +/* Have PTHREAD_PRIO_INHERIT. */ +/* #undef HAVE_PTHREAD_PRIO_INHERIT */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SHLWAPI_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STDINT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STDLIB_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STRINGS_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STRING_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_STAT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_TYPES_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_UNISTD_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINCODEC_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINDOWS_H */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +/* #undef LT_OBJDIR ".libs/" */ + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +/* #undef NO_MINUS_C_MINUS_O */ + +/* Name of package */ +#define PACKAGE "libwebp" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "http://code.google.com/p/webp/issues" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libwebp" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libwebp 0.4.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libwebp" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "http://developers.google.com/speed/webp" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.4.0" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* Define to 1 if you have the ANSI C header files. */ +/* #undef STDC_HEADERS */ + +/* Version number of package */ +#define VERSION "0.4.0" + +/* Enable experimental code */ +/* #undef WEBP_EXPERIMENTAL_FEATURES */ + +/* Set to 1 if JPEG library is installed */ +/* #undef WEBP_HAVE_JPEG */ + +/* Set to 1 if PNG library is installed */ +/* #undef WEBP_HAVE_PNG 1 */ + +/* Set to 1 if TIFF library is installed */ +/* #undef WEBP_HAVE_TIFF 1 */ + +/* Undefine this to disable thread support. */ +#define WEBP_USE_THREAD 1 -- cgit v1.2.3