mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 22:44:30 +02:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user