add version getters for decoder and encoder

WebPGetDecoderVersion() and WebPGetEncoderVersion()
will not return 0.1.2 encoded as 0x000102

dwebp and cwebp also have a new "-version" flag

Change-Id: I4fb4b5a8fc4e53681a386ff4b74fffb639fa237a
This commit is contained in:
Pascal Massimino
2011-03-24 16:17:10 -07:00
parent be4867d2f8
commit 650ffa3bbb
8 changed files with 43 additions and 1 deletions

View File

@ -18,6 +18,10 @@
extern "C" {
#endif
// Return the decoder's version number, packed in hexadecimal using 8bits for
// each of major/minor/revision. E.g: v2.5.7 is 0x020507.
int WebPGetDecoderVersion();
// Retrieve basic header information: width, height.
// This function will also validate the header and return 0 in
// case of formatting error.