Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
Android.mk | 15-Nov-2011 | 37 | |
AUTHORS | 15-Nov-2011 | 144 | |
ChangeLog | 15-Nov-2011 | 160 | |
COPYING | 15-Nov-2011 | 1.5K | |
examples/ | 15-Nov-2011 | ||
include/ | 15-Nov-2011 | ||
INSTALL | 15-Nov-2011 | 9.3K | |
NEWS | 15-Nov-2011 | 36 | |
PATENTS | 15-Nov-2011 | 1.3K | |
README | 15-Nov-2011 | 1.9K | |
README.android | 15-Nov-2011 | 1.5K | |
src/ | 15-Nov-2011 |
1 __ __ ____ ____ ____ 2 / \\/ \/ _ \/ _ )/ _ \ 3 \ / __/ _ \ __/ 4 \__\__/\____/\_____/__/ _________ ____ ____ 5 \ \ / _ \/ _/ / \ \ / _ \ _ \ 6 / \ \ __/ \_/ / / \ \ __/ /_ 7 \_____/_____/____/____/\_____/_____/_/\__/v0.1 8 9 Description: 10 ============ 11 12 WEBP decoder: libwebpdecode.so is a simple library for 13 decoding WEBP image files. 14 15 See http://code.google.com/speed/webp 16 17 18 It is released under the same license as the WebM project. 19 See http://www.webmproject.org/license/software/ or the 20 file "COPYING" file for details. An additional intellectual 21 property rights grant can be found in the file PATENTS. 22 23 24 API: 25 ==== 26 27 This is mainly just one function to call, so just have a look at 28 the file src/webp/decode.h for the details and variants: 29 30 #include "webp/decode.h" 31 uint8_t* WebPDecodeRGB(const uint8_t* data, uint32_t data_size, 32 int *width, int *height); 33 34 A lower-level API is available from the header file <webp/decode_vp8.h> 35 36 37 Building: 38 ========= 39 40 If everything goes right, then: 41 42 ./configure 43 make 44 make install 45 46 should be all you need to have the following files 47 48 /usr/local/include/webp/decode.h 49 /usr/local/include/webp/decode_vp8.h 50 /usr/local/lib/libwebpdecode.* 51 52 installed. 53 54 55 Decoding example: 56 ================= 57 58 there's a decoding example in example/dwebp.c which will take a .webp file and 59 decode it to a PPM image file. This is simply to demonstrate use of the API. 60 You can verify the file test.webp decodes to exactly the same as test_ref.ppm: 61 `cd examples && ./dwebp test.webp -o test.ppm && diff test.ppm test_ref.ppm` 62 63 Bugs: 64 ===== 65 66 Please report all bugs to our issue tracker: 67 http://code.google.com/p/webp/issues 68 Patches welcome! See this page to get started: 69 http://www.webmproject.org/code/contribute/submitting-patches/ 70 71 Discuss: 72 ======== 73 74 Email: webp-discuss (a] webmproject.org 75
1 URL: http://review.webmproject.org/gitweb?p=libwebp.git 2 Version: 43/1443/1 3 License: Google BSD like 4 5 Local modifications: 6 - Rewrite Android.mk to remove duplicate definitions and set module name 7 in a consistent way with other external libraries 8 - Move public headers from src/webp to include/webp, so path to headers 9 may be appended into CFLAGS without risk for other private headers 10 (e.g. bits.h) to leak into 11 - Sync-patch with libwebp ver 0.1.2 12 - Removed Build files necessary for building via autoconf/automake tools 13 These files are not required to build via Android.mk 14 - Makefile.am Makefile.vc Makefile.in 15 - config.h.in configure config.guess config.sub configure.ac 16 - autogen.sh install-sh missing depcomp ltmain.sh aclocal.m4 17 - Added WebP Encoder (ver 0.1.2) as well 18 - Removed some more unused Makefile.am & Makefile.in 19 - Added Android.mk to encoder & decoder code levels. 20 - Synced the WebP Code (Encoder/Decoder) with the head change#Ia53f845b 21 - Added three color-spaces viz ARGB_8888, RGBA_4444, RGB_565 22 supported by Android. 23 - Fixed the Endian'ness bug for Color-Configs (RGB_565 & ARGB_4444). 24 The fix is similar to jpeglib handling for JCS_RGB_565 & JCS_RGBA_8888 25 color configs. Added the code under "ANDROID_WEBP_RGB" flag. 26 27 The Android.mk file creates WebP Decoder and Encoder static libraries which 28 can be added to any application by Adding to LOCAL_STATIC_LIBRARIES 29 libwebp-decode libwebp-encode: 30 31 LOCAL_STATIC_LIBRARIES += libwebp-decode libwebp-encode 32 33