swig/java: basic encode support

Wrap WebPEncode???* to provide an interface similar to decode.
As only WebPGetEncoderVersion is wrapped directly from encode.h avoid
including it in the swig file to reduce %ignore's.
This change also removes unnecessary incremental decoding related enums.

Change-Id: I0b5424026aa6ae012c6a29ad2f2301c2681ca301
This commit is contained in:
James Zern
2011-06-10 11:48:48 -07:00
parent c5d4584b2c
commit 54f2170a15
5 changed files with 411 additions and 78 deletions

9
README
View File

@ -82,13 +82,20 @@ SWIG bindings:
To generate language bindings from swig/libwebp.i swig-1.3
(http://www.swig.org) is required. 2.0 may work, but has not been tested.
Currently from the decode interface the following functions are mapped:
Currently from the following functions are mapped:
Decode:
WebPGetDecoderVersion
WebPGetInfo
WebPDecodeRGB
WebPDecodeRGBA
WebPDecodeBGR
WebPDecodeBGRA
Encode:
WebPGetEncoderVersion
WebPEncodeRGB
WebPEncodeRGBA
WebPEncodeBGR
WebPEncodeBGRA
Java bindings: