mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +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:
@ -27,6 +27,12 @@ extern "C" {
|
||||
|
||||
#define MAX_DIMENSION 16384 // maximum width/height allowed by the spec
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
int WebPGetEncoderVersion() {
|
||||
return (ENC_MAJ_VERSION << 16) | (ENC_MIN_VERSION << 8) | ENC_REV_VERSION;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// WebPPicture
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user