• Home
Name Date Size #Lines LOC

..--

examples/03-May-2024-148112

include/webp/03-May-2024-864374

src/03-May-2024-14,84711,188

AUTHORSD03-May-2024144 75

Android.mkD03-May-202437 21

COPYINGD03-May-20241.5 KiB3124

ChangeLogD03-May-2024160 54

INSTALLD03-May-20249.3 KiB238179

NEWSD03-May-202436 21

PATENTSD03-May-20241.3 KiB2320

READMED03-May-20241.9 KiB7550

README.androidD03-May-20241.5 KiB3328

README

1          __   __  ____  ____  ____
2         /  \\/  \/  _ \/  _ )/  _ \
3         \       /   __/  _  \   __/
4          \__\__/\____/\_____/__/ _________   ____ ____
5               \    \ /  _ \/ _/ /    \    \ /  _ \  _ \
6               /   \ \   __/  \_/   / /   \ \   __/    /_
7               \_____/_____/____/____/\_____/_____/_/\__/v0.1
8
9Description:
10============
11
12WEBP decoder: libwebpdecode.so is a simple library for
13decoding WEBP image files.
14
15See http://code.google.com/speed/webp
16
17
18It is released under the same license as the WebM project.
19See http://www.webmproject.org/license/software/ or the
20file "COPYING" file for details. An additional intellectual
21property rights grant can be found in the file PATENTS.
22
23
24API:
25====
26
27This is mainly just one function to call, so just have a look at
28the file src/webp/decode.h for the details and variants:
29
30#include "webp/decode.h"
31uint8_t* WebPDecodeRGB(const uint8_t* data, uint32_t data_size,
32                       int *width, int *height);
33
34A lower-level API is available from the header file <webp/decode_vp8.h>
35
36
37Building:
38=========
39
40If everything goes right, then:
41
42./configure
43make
44make install
45
46should 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
52installed.
53
54
55Decoding example:
56=================
57
58there's a decoding example in example/dwebp.c which will take a .webp file and
59decode it to a PPM image file. This is simply to demonstrate use of the API.
60You 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
63Bugs:
64=====
65
66Please report all bugs to our issue tracker:
67    http://code.google.com/p/webp/issues
68Patches welcome! See this page to get started:
69    http://www.webmproject.org/code/contribute/submitting-patches/
70
71Discuss:
72========
73
74Email: webp-discuss@webmproject.org
75

README.android

1URL: http://review.webmproject.org/gitweb?p=libwebp.git
2Version: 43/1443/1
3License: Google BSD like
4
5Local 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
27The Android.mk file creates WebP Decoder and Encoder static libraries which
28can be added to any application by Adding to LOCAL_STATIC_LIBRARIES
29libwebp-decode libwebp-encode:
30
31  LOCAL_STATIC_LIBRARIES += libwebp-decode libwebp-encode
32
33