-
Notifications
You must be signed in to change notification settings - Fork 25
/
io-webp-anim.h
40 lines (29 loc) · 1.3 KB
/
io-webp-anim.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* GdkPixbuf library - WebP Image Loader
*
* SPDX-License-Identifier: LGPL-2.0-or-later
* Copyright (C) 2021 Alan Hawrelak
* Copyright (C) 2022 Alberto Ruiz
*
* Authors: Alan Hawrelak <[email protected]>
* Alberto Ruiz <[email protected]>
*/
#ifndef __IO_WEBP_ANIM_H__
#define __IO_WEBP_ANIM_H__
#define GDK_PIXBUF_ENABLE_BACKEND
#include <gdk-pixbuf/gdk-pixbuf-animation.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib-object.h>
#undef GDK_PIXBUF_ENABLE_BACKEND
G_BEGIN_DECLS
#define GDK_WEBP_ANIMATION_TYPE gdk_webp_animation_get_type ()
G_DECLARE_FINAL_TYPE (GdkWebpAnimation, gdk_webp_animation, GDK_WEBP, ANIMATION, GdkPixbufAnimation)
GdkWebpAnimation *gdk_webp_animation_new_from_bytes (GByteArray *data, GError **error);
#define GDK_WEBP_ANIMATION_ITER_TYPE gdk_webp_animation_iter_get_type ()
G_DECLARE_FINAL_TYPE (GdkWebpAnimationIter, gdk_webp_animation_iter, GDK_WEBP, ANIMATION_ITER, GdkPixbufAnimationIter)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GdkWebpAnimationIter *gdk_webp_animation_new_from_buffer_and_time (const GByteArray *buf,
const GTimeVal *start_time,
GError **error);
G_GNUC_END_IGNORE_DEPRECATIONS
G_END_DECLS
#endif /* __IO_WEBP_ANIM_H__ */