summaryrefslogtreecommitdiff
path: root/vapi/libwebp.vapi
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-13 13:36:16 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-13 13:36:16 +0100
commit34852b296a372a81d0b97ab4c12f32be6d294cd3 (patch)
tree4f751a1551d21c24e7fe66d2a7ddf4444d10a569 /vapi/libwebp.vapi
parent80aa3fe15f6346102c29b9c4236fe1e89c283d3b (diff)
parent4098950bba8e6d8609395eb9b223c276cb5954b6 (diff)
Merge branch 'release/debian/0.32.10-1'HEADdebian/0.32.10-1master
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);
}