summaryrefslogtreecommitdiff
path: root/vapi/libwebp.vapi
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-11 12:28:23 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-11 12:28:23 +0100
commit483b2e960f24c370d9e0260ab4ba8b3453408590 (patch)
treeec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /vapi/libwebp.vapi
parent1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff)
parentcb001bb8056869f98e9a62248bdd509a69d08faf (diff)
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'vapi/libwebp.vapi')
-rw-r--r--vapi/libwebp.vapi10
1 files changed, 10 insertions, 0 deletions
diff --git a/vapi/libwebp.vapi b/vapi/libwebp.vapi
index 534dd2c..6e48bf4 100644
--- a/vapi/libwebp.vapi
+++ b/vapi/libwebp.vapi
@@ -1,5 +1,15 @@
[CCode (cheader_filename = "webp/decode.h")]
namespace WebP {
+ public struct BitstreamFeatures {
+ int width;
+ int height;
+ bool has_alpha;
+ bool has_animation;
+ int format;
+ }
[CCode (array_length = false, cname="WebPDecodeRGBA")]
public static uint8[] DecodeRGBA([CCode (array_length_pos=1.1)]uint8[] data, out int width, out int height);
+
+ [CCode (cname = "WebPGetFeatures")]
+ public static int GetFeatures([CCode (array_length_pos=1.1)]uint8[] data, out BitstreamFeatures featues);
}