diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-10-21 19:24:11 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-10-21 19:36:30 +0200 |
commit | 48d76fb7f2d059013f5781b199245274998f05c9 (patch) | |
tree | 16e5652247a97c6df13513416562eef99eb76e26 /gdk-pixbuf/gdk-pixdata.h | |
parent | 273e88b77a67b4d2f715d391e4f4c54462dbc888 (diff) | |
download | gdk-pixbuf-48d76fb7f2d059013f5781b199245274998f05c9.tar.gz |
lib: Deprecate GdkPixdata
GdkPixdata has a number of problems, including:
- it doesn't use the original files, losing metadata
- its RLE compression is ineffecient, even more so for lossy formats
- the way it's implemented doesn't support data > 64 kB on Windows
(See https://bugzilla.gnome.org/show_bug.cgi?id=603706)
Diffstat (limited to 'gdk-pixbuf/gdk-pixdata.h')
-rw-r--r-- | gdk-pixbuf/gdk-pixdata.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixdata.h b/gdk-pixbuf/gdk-pixdata.h index 51de91550..3b34b5c53 100644 --- a/gdk-pixbuf/gdk-pixdata.h +++ b/gdk-pixbuf/gdk-pixdata.h @@ -17,6 +17,7 @@ #ifndef __GDK_PIXDATA_H__ #define __GDK_PIXDATA_H__ +#ifndef GDK_PIXBUF_DISABLE_DEPRECATED #include <gdk-pixbuf/gdk-pixbuf.h> G_BEGIN_DECLS @@ -102,15 +103,19 @@ struct _GdkPixdata #define GDK_PIXDATA_HEADER_LENGTH (4 + 4 + 4 + 4 + 4 + 4) /* the returned stream is plain htonl of GdkPixdata members + pixel_data */ +G_DEPRECATED guint8* gdk_pixdata_serialize (const GdkPixdata *pixdata, guint *stream_length_p); +G_DEPRECATED gboolean gdk_pixdata_deserialize (GdkPixdata *pixdata, guint stream_length, const guint8 *stream, GError **error); +G_DEPRECATED gpointer gdk_pixdata_from_pixbuf (GdkPixdata *pixdata, const GdkPixbuf *pixbuf, gboolean use_rle); +G_DEPRECATED GdkPixbuf* gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata, gboolean copy_pixels, GError **error); @@ -158,6 +163,7 @@ typedef enum } GdkPixdataDumpType; +G_DEPRECATED GString* gdk_pixdata_to_csource (GdkPixdata *pixdata, const gchar *name, GdkPixdataDumpType dump_type); @@ -165,4 +171,6 @@ GString* gdk_pixdata_to_csource (GdkPixdata *pixdata, G_END_DECLS +#endif /* GDK_PIXBUF_DISABLE_DEPRECATED */ + #endif /* __GDK_PIXDATA_H__ */ |