__ __ ____ ____ ____
/ \\/ \/ _ \/ _ )/ _ \
\ / __/ _ \ __/
\__\__/\____/\_____/__/ _________ ____ ____
\ \ / _ \/ _/ / \ \ / _ \ _ \
/ \ \ __/ \_/ / / \ \ __/ /_
WEBP decoder: libwebpdecode.so is a simple library for
decoding WEBP image files.
It is released under the same license as the WebM project.
See http://www.webmproject.org/license/software/ or the
file "COPYING" file for details. An additional intellectual
property rights grant can be found in the file PATENTS.
This is mainly just one function to call, so just have a look at
the file src/webp/decode.h for the details and variants:
uint8_t* WebPDecodeRGB(const uint8_t* data, uint32_t data_size,
int *width, int *height);
A lower-level API is available from the header file <webp/decode_vp8.h>
If everything goes right, then:
should be all you need to have the following files
there's a decoding example in example/dwebp.c which will take a .webp file and
decode it to a PPM image file. This is simply to demonstrate use of the API.
You can verify the file test.webp decodes to exactly the same as test_ref.ppm:
`cd examples && ./dwebp test.webp -o test.ppm && diff test.ppm test_ref.ppm`
Please report all bugs to our issue tracker:
Patches welcome! See this page to get started: