summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@src.gnome.org>2000-02-22 00:29:00 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2000-02-22 00:29:00 +0000
commit79d63460579c8e867b8709154649c77fc388aded (patch)
tree5d4188dd450b238d0f7f796dd274f0bf6b084406
parent7ef740e03d628d46772f5ea7e05d4b7797a1986d (diff)
downloadgtk+-79d63460579c8e867b8709154649c77fc388aded.tar.gz
0.6.0 - FedericoGDK_PIXBUF_0_6_0
-rw-r--r--docs/reference/gdk-pixbuf/Makefile.am9
-rw-r--r--docs/reference/gdk-pixbuf/compiling.sgml103
-rw-r--r--docs/reference/gdk-pixbuf/gdk-pixbuf.sgml3
-rw-r--r--gdk-pixbuf/ChangeLog91
-rw-r--r--gdk-pixbuf/Makefile.am155
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.c160
-rw-r--r--gdk-pixbuf/io-bmp.c37
-rw-r--r--gdk-pixbuf/io-gif.c18
-rw-r--r--gdk-pixbuf/io-ico.c39
-rw-r--r--gdk-pixbuf/io-jpeg.c32
-rw-r--r--gdk-pixbuf/io-png.c16
-rw-r--r--gdk-pixbuf/io-pnm.c32
-rw-r--r--gdk-pixbuf/io-ras.c38
-rw-r--r--gdk-pixbuf/io-tiff.c22
-rw-r--r--gdk-pixbuf/io-xpm.c4
-rw-r--r--gdk-pixbuf/pixops/Makefile.am2
16 files changed, 565 insertions, 196 deletions
diff --git a/docs/reference/gdk-pixbuf/Makefile.am b/docs/reference/gdk-pixbuf/Makefile.am
index eef777148e..d9d18350c7 100644
--- a/docs/reference/gdk-pixbuf/Makefile.am
+++ b/docs/reference/gdk-pixbuf/Makefile.am
@@ -38,7 +38,12 @@ gdk_pixbuf_doc_DATA = \
gdk-pixbuf-decl.txt \
gdk-pixbuf-sections.txt
-EXTRA_DIST = $(gdk_pixbuf_doc_DATA)
+content_files = \
+ compiling.sgml
+
+EXTRA_DIST = \
+ $(gdk_pixbuf_doc_DATA) \
+ $(content_files)
if ENABLE_GTK_DOC
gdk-pixbuf.html: html/book1.html
@@ -47,7 +52,7 @@ else
gdk-pixbuf.html:
endif
-html/book1.html: sgml/gdk-pixbuf-doc.bottom
+html/book1.html: sgml/gdk-pixbuf-doc.bottom $(content_files)
$(MAKE) html
sgml/gdk-pixbuf-doc.bottom: $(tmpl_sources)
diff --git a/docs/reference/gdk-pixbuf/compiling.sgml b/docs/reference/gdk-pixbuf/compiling.sgml
new file mode 100644
index 0000000000..5bc123fef6
--- /dev/null
+++ b/docs/reference/gdk-pixbuf/compiling.sgml
@@ -0,0 +1,103 @@
+ <appendix id="compiling">
+ <title>Compiling the gdk-pixbuf library</title>
+
+ <para>
+ This appendix describes the special options you can use while
+ compiling the gdk-pixbuf library.
+ </para>
+
+ <sect1 id="building">
+ <title>Building the Library</title>
+ <para>
+ The gdk-pixbuf library uses the standard GNU build system,
+ using <productname>autoconf</productname> for package
+ configuration and resolving portability issues,
+ <productname>automake</productname> for building makefiles
+ that comply with the GNU Coding Standards, and
+ <productname>libtool</productname> for building shared
+ libraries on multiple platforms. The normal sequence for
+ compiling and installing the gdk-pixbuf library is thus:
+
+ <literallayout>
+ <userinput>./configure</userinput>
+ <userinput>make</userinput>
+ <userinput>make install</userinput>
+ </literallayout>
+ </para>
+
+ <para>
+ The standard options provided by <productname>GNU
+ autoconf</productname> may be passed to the
+ <command>configure</command> script. Please see the
+ <productname>autoconf</productname> documentation or run
+ <command>./configure --help</command> for information about
+ the standard options.
+ </para>
+ </sect1>
+
+ <sect1 id="extra-configuration-options">
+ <title>Extra Configuration Options</title>
+
+ <para>
+ In addition to the normal options, the
+ <command>configure</command> script in the gdk-pixbuf library
+ supports these additional arguments:
+
+ <cmdsynopsis>
+ <command>configure</command>
+
+ <group>
+ <arg>--disable-modules</arg>
+ <arg>--enable-modules</arg>
+ </group>
+
+ <group>
+ <arg>--disable-gtk-doc</arg>
+ <arg>--enable-gtk-doc</arg>
+ </group>
+ </cmdsynopsis>
+ </para>
+
+ <formalpara>
+ <title><systemitem>--disable-modules</systemitem> and
+ <systemitem>--enable-modules</systemitem></title>
+
+ <para>
+ Normally gdk-pixbuf will try to build the image file format
+ loaders as little shared libraries that are loaded on
+ demand. The <systemitem>--disable-modules</systemitem>
+ argument indicates that they should all be built statically
+ into the gdk-pixbuf library instead. This is useful for
+ people who need to produce statically-linked binaries. If
+ neither <systemitem>--disable-modules</systemitem> nor
+ <systemitem>--enable-modules</systemitem> is specified, then
+ the <command>configure</command> script will try to
+ auto-detect whether shared modules work on your system.
+ </para>
+ </formalpara>
+
+ <formalpara>
+ <title><systemitem>--disable-gtk-doc</systemitem> and
+ <systemitem>--enable-gtk-doc</systemitem></title>
+
+ <para>
+ By default the <command>configure</command> script will try
+ to auto-detect whether the
+ <productname>gtk-doc</productname> package is installed. If
+ it is, then it will use it to extract and build the
+ documentation for the gdk-pixbuf library. These options can
+ be used to explicitly control whether gtk-doc should be used
+ or not. If it is not used, the distributed, pre-generated
+ HTML files will be installed instead of building them on
+ your machine.
+ </para>
+ </formalpara>
+ </sect1>
+ </appendix>
+
+<!--
+Local variables:
+mode: sgml
+sgml-parent-document: ("gdk-pixbuf.sgml" "book" "book" "")
+End:
+-->
diff --git a/docs/reference/gdk-pixbuf/gdk-pixbuf.sgml b/docs/reference/gdk-pixbuf/gdk-pixbuf.sgml
index 410a2cc3e7..900f4edb5a 100644
--- a/docs/reference/gdk-pixbuf/gdk-pixbuf.sgml
+++ b/docs/reference/gdk-pixbuf/gdk-pixbuf.sgml
@@ -10,6 +10,7 @@
<!entity gdk-pixbuf-animation SYSTEM "sgml/animation.sgml">
<!entity GdkPixbufLoader SYSTEM "sgml/gdk-pixbuf-loader.sgml">
<!entity GnomeCanvasPixbuf SYSTEM "sgml/gnome-canvas-pixbuf.sgml">
+<!entity Compiling SYSTEM "compiling.sgml">
]>
<book>
@@ -57,4 +58,6 @@
&GdkPixbufLoader;
&GnomeCanvasPixbuf;
</reference>
+
+ &Compiling;
</book>
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index a78beb6bb2..df4045466d 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,94 @@
+2000-02-21 Federico Mena Quintero <federico@helixcode.com>
+
+ * configure.in (GDK_PIXBUF_MINOR): Bumped version number to 0.6.0.
+
+ * doc/compiling.sgml: New appendix documenting the gdk-pixbuf
+ library's particular options to configure.in.
+
+ * doc/gdk-pixbuf.sgml: Include compiling.sgml appendix via an
+ entity.
+
+ * doc/Makefile.am (gdk-pixbuf.html): Added compiling.sgml.
+
+ * gdk-pixbuf/io-ico.c (gdk_pixbuf__ico_image_load_increment):
+ Fixed typo in prototype name.
+
+ * configure.in: Changed duplicated AC_MSG_CHECKING message to
+ something more meaningful; now it is "checking whether dynamic
+ modules work".
+
+ * gdk-pixbuf/pixops/Makefile.am (noinst_PROGRAMS): Do not install
+ the timescale program.
+
+ Integrated Miguel de Icaza's <miguel@gnu.org> patch for optionally
+ creating a single static library with all the image format modules
+ in it.
+
+2000-02-20 Miguel de Icaza <miguel@gnu.org>
+
+ * gdk-pixbuf/io-xpm.c (gdk_pixbuf__xpm_image_load): Add prefix.
+ (gdk_pixbuf__xpm_image_load_xpm_data): Add prefix.
+
+ * gdk-pixbuf/io-tiff.c (gdk_pixbuf__tiff_image_load_real): Add prefix.
+ (gdk_pixbuf__tiff_image_stop_load): Add prefix.
+ (gdk_pixbuf__tiff_image_load_increment): Add prefix.
+ (gdk_pixbuf__tiff_image_load): Add prefix.
+ (gdk_pixbuf__tiff_image_stop_load): Update invocation.
+ (gdk_pixbuf__tiff_image_begin_load): Add prefix.
+
+ * gdk-pixbuf/io-ras.c (gdk_pixbuf__ras_image_load): Add prefix.
+ (gdk_pixbuf__ras_image_load): Updated invocation.
+ (gdk_pixbuf__ras_image_begin_load): Add prefix.
+ (gdk_pixbuf__ras_image_stop_load): Add prefix.
+ (gdk_pixbuf__ras_image_load_increment): Add prefix.
+
+ * gdk-pixbuf/io-pnm.c (gdk_pixbuf__pnm_image_begin_load): Add prefix.
+ (gdk_pixbuf__pnm_image_stop_load): Add prefix.
+ (gdk_pixbuf__pnm_image_load_increment): Add prefix
+ (gdk_pixbuf__pnm_image_load): Add prefix.
+
+ * gdk-pixbuf/io-jpeg.c (gdk_pixbuf__jpeg_image_load): Add prefix.
+ (gdk_pixbuf__jpeg_image_load_increment): Add prefix.
+ (gdk_pixbuf__jpeg_image_begin_load): Add prefix.
+ (gdk_pixbuf__jpeg_image_stop_load): Add prefix.
+
+ * gdk-pixbuf/io-ico.c (gdk_pixbuf__ico_image_load): Add prefix.
+ (gdk_pixbuf__ico_image_load): update invocation.
+ (gdk_pixbuf__ico_image_load_increment): Add prefix.
+ (gdk_pixbuf__ico_image_load): update invocation.
+ (gdk_pixbuf__ico_image_begin_load): Add prefix.
+ (gdk_pixbuf__ico_image_load): update invocation.
+ (gdk_pixbuf__ico_image_stop_load): Add prefix.
+
+ * gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load_animation): Add prefix.
+ (gdk_pixbuf__gif_image_load): Add prefix.
+ (gdk_pixbuf__gif_image_begin_load): Add prefix.
+ (gdk_pixbuf__gif_image_load_increment): Add prefix.
+ (gdk_pixbuf__gif_image_load_animation): Add prefix.
+ (gdk_pixbuf__gif_image_stop_load): Add prefix.
+
+ * gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load): Add prefix.
+ (gdk_pixbuf__bmp_image_load): Rename function called.
+ (gdk_pixbuf__bmp_image_load_increment): Add prefix
+
+ * gdk-pixbuf/io-png.c (gdk_pixbuf__png_image_load): Add prefix.
+ (gdk_pixbuf__png_image_begin_load): Add prefix.
+ (gdk_pixbuf__png_image_stop_load): Add prefix.
+ (gdk_pixbuf__png_image_load_increment): Add prefix.
+
+ * gdk-pixbuf/gdk-pixbuf-io.c (file_formats): Make this static.
+ (gdk_pixbuf_load_module): Load the shared library entry points
+ using a "gdk_pixbuf__$module_name" prefix.
+ (pixbuf_module_symbol): Wrapper routine that uses the module
+ prefix for the modules to load the information.
+
+ * configure.in (GDK_PIXBUF_VERSION): New option --disable-modules
+ lets the user specify that gdk-pixbuf should link all image loader
+ code into the library instaed of creating shared library modules.
+
+ (dynworks): Renamed the automake conditional DYNAMIC_MODULES_WORK
+ to BUILD_DYNAMIC_MODULES.
+
2000-02-19 Jonathan Blandford <jrb@redhat.com>
* gdk-pixbuf/io-gif.c (new_context): fix case where initial
diff --git a/gdk-pixbuf/Makefile.am b/gdk-pixbuf/Makefile.am
index deae075fe3..4a628fae8b 100644
--- a/gdk-pixbuf/Makefile.am
+++ b/gdk-pixbuf/Makefile.am
@@ -19,6 +19,69 @@ libgnomecanvaspixbuf_la_LDFLAGS = $(EXTRA_GNOME_LIBS)
libexecdir = $(libdir)/gdk-pixbuf/loaders
+#
+# The PNG plugin.
+#
+libpixbuf_png_la_SOURCES = io-png.c
+libpixbuf_png_la_LDFLAGS = -avoid-version -module
+libpixbuf_png_la_LIBADD = $(LIBPNG)
+
+#
+# The JPEG loader
+#
+libpixbuf_jpeg_la_SOURCES = io-jpeg.c
+libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
+libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
+
+#
+# The XPM loader
+#
+libpixbuf_xpm_la_SOURCES = io-xpm.c
+libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
+libpixbuf_xpm_la_LIBADD =
+
+#
+# The GIF loader
+#
+libpixbuf_gif_la_SOURCES = io-gif.c
+libpixbuf_gif_la_LDFLAGS = -avoid-version -module
+libpixbuf_gif_la_LIBADD =
+
+#
+# The ICO loader
+#
+libpixbuf_ico_la_SOURCES = io-ico.c
+libpixbuf_ico_la_LDFLAGS = -avoid-version -module
+libpixbuf_ico_la_LIBADD =
+
+#
+# The RAS loader
+#
+libpixbuf_ras_la_SOURCES = io-ras.c
+libpixbuf_ras_la_LDFLAGS = -avoid-version -module
+libpixbuf_ras_la_LIBADD =
+
+#
+# The TIFF loader
+#
+libpixbuf_tiff_la_SOURCES = io-tiff.c
+libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
+libpixbuf_tiff_la_LIBADD = $(LIBTIFF)
+
+#
+# The PNM loader
+#
+libpixbuf_pnm_la_SOURCES = io-pnm.c
+libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
+libpixbuf_pnm_la_LIBADD =
+
+#
+# The BMP loader
+#
+libpixbuf_bmp_la_SOURCES = io-bmp.c
+libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
+libpixbuf_bmp_la_LIBADD =
+
if HAVE_PNG
PNG_LIB = libpixbuf-png.la
endif
@@ -43,7 +106,9 @@ PNM_LIB = libpixbuf-pnm.la
BMP_LIB = libpixbuf-bmp.la
-libexec_LTLIBRARIES = \
+if BUILD_DYNAMIC_MODULES
+
+libexec_LTLIBRARIES = \
$(PNG_LIB) \
$(JPEG_LIB) \
$(GIF_LIB) \
@@ -54,6 +119,25 @@ libexec_LTLIBRARIES = \
$(PNM_LIB) \
$(BMP_LIB)
+
+extra_sources =
+
+else
+libexec_LTLIBRARIES =
+
+extra_sources = $(libpixbuf_png_la_SOURCES) \
+ $(libpixbuf_jpeg_la_SOURCES) \
+ $(libpixbuf_xpm_la_SOURCES) \
+ $(libpixbuf_gif_la_SOURCES) \
+ $(libpixbuf_ico_la_SOURCES) \
+ $(libpixbuf_ras_la_SOURCES) \
+ $(libpixbuf_tiff_la_SOURCES) \
+ $(libpixbuf_pnm_la_SOURCES) \
+ $(libpixbuf_bmp_la_SOURCES)
+
+builtin_libraries =
+endif
+
noinst_PROGRAMS = testpixbuf testpixbuf-drawable testanimation testpixbuf-scale
DEPS = libgdk_pixbuf.la
@@ -63,7 +147,7 @@ INCLUDES = -I$(top_srcdir) -I$(top_builddir) \
$(GLIB_CFLAGS) $(LIBART_CFLAGS) $(GTK_CFLAGS)
AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(libexecdir)\""
-LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
+LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS) $(STATIC_LIB_DEPS)
if INSIDE_GNOME_LIBS
testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) -lgmodule
@@ -95,10 +179,11 @@ libgdk_pixbuf_la_SOURCES = \
gdk-pixbuf-loader.c \
gdk-pixbuf-render.c \
gdk-pixbuf-scale.c \
- gdk-pixbuf-util.c
+ gdk-pixbuf-util.c \
+ $(extra_sources)
libgdk_pixbuf_la_LDFLAGS = -version-info 1:0:0 $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
-libgdk_pixbuf_la_LIBADD = pixops/libpixops.la
+libgdk_pixbuf_la_LIBADD = pixops/libpixops.la
libgdk_pixbufinclude_HEADERS = \
gdk-pixbuf.h \
@@ -109,65 +194,3 @@ libgdk_pixbufinclude_HEADERS = \
noinst_HEADERS = \
gdk-pixbuf-io.h
-#
-# The PNG plugin.
-#
-libpixbuf_png_la_SOURCES = io-png.c
-libpixbuf_png_la_LDFLAGS = -avoid-version -module
-libpixbuf_png_la_LIBADD = $(LIBPNG)
-
-#
-# The JPEG loader
-#
-libpixbuf_jpeg_la_SOURCES = io-jpeg.c
-libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
-libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
-
-#
-# The XPM loader
-#
-libpixbuf_xpm_la_SOURCES = io-xpm.c
-libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
-libpixbuf_xpm_la_LIBADD =
-
-#
-# The GIF loader
-#
-libpixbuf_gif_la_SOURCES = io-gif.c
-libpixbuf_gif_la_LDFLAGS = -avoid-version -module
-libpixbuf_gif_la_LIBADD =
-
-#
-# The ICO loader
-#
-libpixbuf_ico_la_SOURCES = io-ico.c
-libpixbuf_ico_la_LDFLAGS = -avoid-version -module
-libpixbuf_ico_la_LIBADD =
-
-#
-# The RAS loader
-#
-libpixbuf_ras_la_SOURCES = io-ras.c
-libpixbuf_ras_la_LDFLAGS = -avoid-version -module
-libpixbuf_ras_la_LIBADD =
-
-#
-# The TIFF loader
-#
-libpixbuf_tiff_la_SOURCES = io-tiff.c
-libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
-libpixbuf_tiff_la_LIBADD = $(LIBTIFF)
-
-#
-# The PNM loader
-#
-libpixbuf_pnm_la_SOURCES = io-pnm.c
-libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
-libpixbuf_pnm_la_LIBADD =
-
-#
-# The BMP loader
-#
-libpixbuf_bmp_la_SOURCES = io-bmp.c
-libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
-libpixbuf_bmp_la_LIBADD =
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 71fcf81b74..491543a277 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -166,8 +166,7 @@ pixbuf_check_bmp (guchar *buffer, int size)
return TRUE;
}
-
-GdkPixbufModule file_formats [] = {
+static GdkPixbufModule file_formats [] = {
{ "png", pixbuf_check_png, NULL, NULL, NULL, NULL, NULL, NULL },
{ "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL, NULL, NULL, NULL },
{ "tiff", pixbuf_check_tiff, NULL, NULL, NULL, NULL, NULL, NULL },
@@ -181,6 +180,18 @@ GdkPixbufModule file_formats [] = {
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
};
+#ifdef USE_GMODULE
+static gboolean
+pixbuf_module_symbol (GModule *module, const char *module_name, const char *symbol_name, gpointer *symbol)
+{
+ char *full_symbol_name = g_strconcat ("gdk_pixbuf__", module_name, "_", symbol_name, NULL);
+ gboolean return_value;
+
+ return_value = g_module_symbol (module, full_symbol_name, symbol);
+ g_free (full_symbol_name);
+
+ return return_value;
+}
/* actually load the image handler - gdk_pixbuf_get_module only get a */
/* reference to the module to load, it doesn't actually load it */
@@ -192,10 +203,13 @@ gdk_pixbuf_load_module (GdkPixbufModule *image_module)
char *path;
GModule *module;
gpointer load_sym;
-
+ char *name;
+
g_return_if_fail (image_module->module == NULL);
- module_name = g_strconcat ("pixbuf-", image_module->module_name, NULL);
+ name = image_module->module_name;
+
+ module_name = g_strconcat ("pixbuf-", name, NULL);
path = g_module_build_path (PIXBUF_LIBDIR, module_name);
module = g_module_open (path, G_MODULE_BIND_LAZY);
@@ -220,24 +234,150 @@ gdk_pixbuf_load_module (GdkPixbufModule *image_module)
image_module->module = module;
- if (g_module_symbol (module, "image_load", &load_sym))
+ if (pixbuf_module_symbol (module, name, "image_load", &load_sym))
image_module->load = load_sym;
- if (g_module_symbol (module, "image_load_xpm_data", &load_sym))
+ if (pixbuf_module_symbol (module, name, "image_load_xpm_data", &load_sym))
image_module->load_xpm_data = load_sym;
- if (g_module_symbol (module, "image_begin_load", &load_sym))
+ if (pixbuf_module_symbol (module, name, "image_begin_load", &load_sym))
image_module->begin_load = load_sym;
- if (g_module_symbol (module, "image_stop_load", &load_sym))
+ if (pixbuf_module_symbol (module, name, "image_stop_load", &load_sym))
image_module->stop_load = load_sym;
- if (g_module_symbol (module, "image_load_increment", &load_sym))
+ if (pixbuf_module_symbol (module, name, "image_load_increment", &load_sym))
image_module->load_increment = load_sym;
- if (g_module_symbol (module, "image_load_animation", &load_sym))
+ if (pixbuf_module_symbol (module, name, "image_load_animation", &load_sym))
image_module->load_animation = load_sym;
}
+#else
+
+#define mname(type,fn) gdk_pixbuf__ ## type ## _image_ ##fn
+#define m_load(type) extern GdkPixbuf * mname(type,load) (FILE *f);
+#define m_load_xpm_data(type) extern GdkPixbuf * mname(type,load_xpm_data) (const char **data);
+#define m_begin_load(type) \
+ extern gpointer mname(type,begin_load) (ModulePreparedNotifyFunc prepare_func, \
+ ModuleUpdatedNotifyFunc update_func, \
+ ModuleFrameDoneNotifyFunc frame_done_func,\
+ ModuleAnimationDoneNotifyFunc anim_done_func,\
+ gpointer user_data);
+#define m_stop_load(type) extern void mname(type,stop_load) (gpointer context);
+#define m_load_increment(type) extern gboolean mname(type,load_increment) (gpointer context, const guchar *buf, guint size);
+#define m_load_animation(type) extern GdkPixbufAnimation * mname(type,load_animation) (FILE *f);
+
+m_load (png);
+m_begin_load (png);
+m_load_increment (png);
+m_stop_load (png);
+m_load (bmp);
+m_begin_load (bmp);
+m_load_increment (bmp);
+m_stop_load (bmp);
+m_load (gif);
+m_begin_load (gif);
+m_load_increment (gif);
+m_stop_load (gif);
+m_load_animation (gif);
+m_load (ico);
+m_begin_load (ico);
+m_load_increment (ico);
+m_stop_load (ico);
+m_load (jpeg);
+m_begin_load (jpeg);
+m_load_increment (jpeg);
+m_stop_load (jpeg);
+m_load (pnm);
+m_begin_load (pnm);
+m_load_increment (pnm);
+m_stop_load (pnm);
+m_load (ras);
+m_begin_load (ras);
+m_load_increment (ras);
+m_stop_load (ras);
+m_load (tiff);
+m_begin_load (tiff);
+m_load_increment (tiff);
+m_stop_load (tiff);
+m_load (xpm);
+m_load_xpm_data (xpm);
+
+void
+gdk_pixbuf_load_module (GdkPixbufModule *image_module)
+{
+ image_module->module = (void *) 1;
+
+ if (strcmp (image_module->module_name, "png") == 0){
+ image_module->load = mname (png,load);
+ image_module->begin_load = mname (png,begin_load);
+ image_module->load_increment = mname (png,load_increment);
+ image_module->stop_load = mname (png,stop_load);
+ return;
+ }
+
+ if (strcmp (image_module->module_name, "bmp") == 0){
+ image_module->load = mname (bmp,load);
+ image_module->begin_load = mname (bmp,begin_load);
+ image_module->load_increment = mname (bmp,load_increment);
+ image_module->stop_load = mname (bmp,stop_load);
+ return;
+ }
+
+ if (strcmp (image_module->module_name, "gif") == 0){
+ image_module->load = mname (gif,load);
+ image_module->begin_load = mname (gif,begin_load);
+ image_module->load_increment = mname (gif,load_increment);
+ image_module->stop_load = mname (gif,stop_load);
+ image_module->load_animation = mname (gif,load_animation);
+ return;
+ }
+
+ if (strcmp (image_module->module_name, "ico") == 0){
+ image_module->load = mname (ico,load);
+ image_module->begin_load = mname (ico,begin_load);
+ image_module->load_increment = mname (ico,load_increment);
+ image_module->stop_load = mname (ico,stop_load);
+ return;
+ }
+
+ if (strcmp (image_module->module_name, "jpeg") == 0){
+ image_module->load = mname (jpeg,load);
+ image_module->begin_load = mname (jpeg,begin_load);
+ image_module->load_increment = mname (jpeg,load_increment);
+ image_module->stop_load = mname (jpeg,stop_load);
+ return;
+ }
+ if (strcmp (image_module->module_name, "pnm") == 0){
+ image_module->load = mname (pnm,load);
+ image_module->begin_load = mname (pnm,begin_load);
+ image_module->load_increment = mname (pnm,load_increment);
+ image_module->stop_load = mname (pnm,stop_load);
+ return;
+ }
+ if (strcmp (image_module->module_name, "ras") == 0){
+ image_module->load = mname (ras,load);
+ image_module->begin_load = mname (ras,begin_load);
+ image_module->load_increment = mname (ras,load_increment);
+ image_module->stop_load = mname (ras,stop_load);
+ return;
+ }
+ if (strcmp (image_module->module_name, "tiff") == 0){
+ image_module->load = mname (tiff,load);
+ image_module->begin_load = mname (tiff,begin_load);
+ image_module->load_increment = mname (tiff,load_increment);
+ image_module->stop_load = mname (tiff,stop_load);
+ return;
+ }
+ if (strcmp (image_module->module_name, "xpm") == 0){
+ image_module->load = mname (xpm,load);
+ image_module->load_xpm_data = mname (xpm,load_xpm_data);
+ return;
+ }
+}
+
+
+#endif
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 65d65f1be3..13a173824b 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -172,19 +172,20 @@ struct bmp_progressive_state {
};
gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data);
-void image_stop_load(gpointer data);
-gboolean image_load_increment(gpointer data, guchar * buf, guint size);
+gdk_pixbuf__bmp_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data);
+
+void gdk_pixbuf__bmp_image_stop_load(gpointer data);
+gboolean gdk_pixbuf__bmp_image_load_increment(gpointer data, guchar * buf, guint size);
/* Shared library entry point --> This should be removed when
generic_image_load enters gdk-pixbuf-io. */
-GdkPixbuf *image_load(FILE * f)
+GdkPixbuf *gdk_pixbuf__bmp_image_load(FILE * f)
{
guchar *membuf;
size_t length;
@@ -192,7 +193,7 @@ GdkPixbuf *image_load(FILE * f)
GdkPixbuf *pb;
- State = image_begin_load(NULL, NULL, NULL, NULL, NULL);
+ State = gdk_pixbuf__bmp_image_begin_load(NULL, NULL, NULL, NULL, NULL);
membuf = g_malloc(4096);
g_assert(membuf != NULL);
@@ -201,7 +202,7 @@ GdkPixbuf *image_load(FILE * f)
while (feof(f) == 0) {
length = fread(membuf, 1, 4096, f);
if (length > 0)
- (void) image_load_increment(State, membuf, length);
+ (void) gdk_pixbuf__bmp_image_load_increment(State, membuf, length);
}
g_free(membuf);
@@ -210,7 +211,7 @@ GdkPixbuf *image_load(FILE * f)
pb = State->pixbuf;
- image_stop_load(State);
+ gdk_pixbuf__bmp_image_stop_load(State);
return pb;
}
@@ -305,11 +306,11 @@ static void DecodeHeader(unsigned char *BFH, unsigned char *BIH,
*/
gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__bmp_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
struct bmp_progressive_state *context;
@@ -347,7 +348,7 @@ image_begin_load(ModulePreparedNotifyFunc prepared_func,
*
* free context, unref gdk_pixbuf
*/
-void image_stop_load(gpointer data)
+void gdk_pixbuf__bmp_image_stop_load(gpointer data)
{
struct bmp_progressive_state *context =
(struct bmp_progressive_state *) data;
@@ -658,7 +659,7 @@ void DoCompressedByte(struct bmp_progressive_state *context, guchar ** buf,
*
* append image data onto inrecrementally built output image
*/
-gboolean image_load_increment(gpointer data, guchar * buf, guint size)
+gboolean gdk_pixbuf__bmp_image_load_increment(gpointer data, guchar * buf, guint size)
{
struct bmp_progressive_state *context =
(struct bmp_progressive_state *) data;
diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c
index 1f13983167..71c6288cb9 100644
--- a/gdk-pixbuf/io-gif.c
+++ b/gdk-pixbuf/io-gif.c
@@ -1084,7 +1084,7 @@ new_context (void)
}
/* Shared library entry point */
GdkPixbuf *
-image_load (FILE *file)
+gdk_pixbuf__gif_image_load (FILE *file)
{
GifContext *context;
@@ -1099,11 +1099,11 @@ image_load (FILE *file)
}
gpointer
-image_begin_load (ModulePreparedNotifyFunc prepare_func,
- ModuleUpdatedNotifyFunc update_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__gif_image_begin_load (ModulePreparedNotifyFunc prepare_func,
+ ModuleUpdatedNotifyFunc update_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
GifContext *context;
@@ -1121,7 +1121,7 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func,
}
void
-image_stop_load (gpointer data)
+gdk_pixbuf__gif_image_stop_load (gpointer data)
{
GifContext *context = (GifContext *) data;
@@ -1136,7 +1136,7 @@ image_stop_load (gpointer data)
}
gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__gif_image_load_increment (gpointer data, guchar *buf, guint size)
{
gint retval;
GifContext *context = (GifContext *) data;
@@ -1194,7 +1194,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
}
GdkPixbufAnimation *
-image_load_animation (FILE *file)
+gdk_pixbuf__gif_image_load_animation (FILE *file)
{
GifContext *context;
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c
index 22d1769ee7..4cb699576e 100644
--- a/gdk-pixbuf/io-ico.c
+++ b/gdk-pixbuf/io-ico.c
@@ -153,19 +153,20 @@ struct ico_progressive_state {
};
gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data);
-void image_stop_load(gpointer data);
-gboolean image_load_increment(gpointer data, guchar * buf, guint size);
+gdk_pixbuf__ico_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data);
+void gdk_pixbuf__ico_image_stop_load(gpointer data);
+gboolean gdk_pixbuf__ico_image_load_increment(gpointer data, guchar * buf, guint size);
/* Shared library entry point --> Can go when generic_image_load
enters gdk-pixbuf-io */
-GdkPixbuf *image_load(FILE * f)
+GdkPixbuf *
+gdk_pixbuf__ico_image_load(FILE * f)
{
guchar *membuf;
size_t length;
@@ -173,16 +174,15 @@ GdkPixbuf *image_load(FILE * f)
GdkPixbuf *pb;
- State = image_begin_load(NULL, NULL, NULL, NULL, NULL);
+ State = gdk_pixbuf__ico_image_begin_load(NULL, NULL, NULL, NULL, NULL);
membuf = g_malloc(4096);
g_assert(membuf != NULL);
-
while (feof(f) == 0) {
length = fread(membuf, 1, 4096, f);
if (length > 0)
- (void)image_load_increment(State, membuf, length);
+ gdk_pixbuf__ico_image_load_increment(State, membuf, length);
}
g_free(membuf);
@@ -191,7 +191,7 @@ GdkPixbuf *image_load(FILE * f)
pb = State->pixbuf;
- image_stop_load(State);
+ gdk_pixbuf__ico_image_stop_load(State);
return pb;
}
@@ -365,11 +365,11 @@ static void DecodeHeader(guchar *Data, gint Bytes,
*/
gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__ico_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
struct ico_progressive_state *context;
@@ -405,7 +405,7 @@ image_begin_load(ModulePreparedNotifyFunc prepared_func,
*
* free context, unref gdk_pixbuf
*/
-void image_stop_load(gpointer data)
+void gdk_pixbuf__ico_image_stop_load(gpointer data)
{
struct ico_progressive_state *context =
(struct ico_progressive_state *) data;
@@ -631,7 +631,8 @@ static void OneLine(struct ico_progressive_state *context)
*
* append image data onto inrecrementally built output image
*/
-gboolean image_load_increment(gpointer data, guchar * buf, guint size)
+gboolean
+gdk_pixbuf__ico_image_load_increment(gpointer data, guchar * buf, guint size)
{
struct ico_progressive_state *context =
(struct ico_progressive_state *) data;
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 4cea124e09..0845a3dc3c 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -87,14 +87,14 @@ typedef struct {
struct error_handler_data jerr;
} JpegProgContext;
-GdkPixbuf *image_load (FILE *f);
-gpointer image_begin_load (ModulePreparedNotifyFunc func,
- ModuleUpdatedNotifyFunc func2,
- ModuleFrameDoneNotifyFunc func3,
- ModuleAnimationDoneNotifyFunc func4,
- gpointer user_data);
-void image_stop_load (gpointer context);
-gboolean image_load_increment(gpointer context, guchar *buf, guint size);
+GdkPixbuf *gdk_pixbuf__jpeg_image_load (FILE *f);
+gpointer gdk_pixbuf__jpeg_image_begin_load (ModulePreparedNotifyFunc func,
+ ModuleUpdatedNotifyFunc func2,
+ ModuleFrameDoneNotifyFunc func3,
+ ModuleAnimationDoneNotifyFunc func4,
+ gpointer user_data);
+void gdk_pixbuf__jpeg_image_stop_load (gpointer context);
+gboolean gdk_pixbuf__jpeg_image_load_increment(gpointer context, guchar *buf, guint size);
static void
@@ -151,7 +151,7 @@ explode_gray_into_buf (struct jpeg_decompress_struct *cinfo,
/* Shared library entry point */
GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__jpeg_image_load (FILE *f)
{
gint w, h, i;
guchar *pixels = NULL;
@@ -275,11 +275,11 @@ skip_input_data (j_decompress_ptr cinfo, long num_bytes)
*/
gpointer
-image_begin_load (ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__jpeg_image_begin_load (ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
JpegProgContext *context;
my_source_mgr *src;
@@ -319,7 +319,7 @@ image_begin_load (ModulePreparedNotifyFunc prepared_func,
* free context, unref gdk_pixbuf
*/
void
-image_stop_load (gpointer data)
+gdk_pixbuf__jpeg_image_stop_load (gpointer data)
{
JpegProgContext *context = (JpegProgContext *) data;
@@ -351,7 +351,7 @@ image_stop_load (gpointer data)
* append image data onto inrecrementally built output image
*/
gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__jpeg_image_load_increment (gpointer data, guchar *buf, guint size)
{
JpegProgContext *context = (JpegProgContext *)data;
struct jpeg_decompress_struct *cinfo;
diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c
index 84a2a0acb6..3ad9bb3fd2 100644
--- a/gdk-pixbuf/io-png.c
+++ b/gdk-pixbuf/io-png.c
@@ -148,7 +148,7 @@ free_buffer (gpointer user_data, gpointer data)
/* Shared library entry point */
GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__png_image_load (FILE *f)
{
png_structp png_ptr;
png_infop info_ptr, end_info;
@@ -274,11 +274,11 @@ struct _LoadContext {
};
gpointer
-image_begin_load (ModulePreparedNotifyFunc prepare_func,
- ModuleUpdatedNotifyFunc update_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__png_image_begin_load (ModulePreparedNotifyFunc prepare_func,
+ ModuleUpdatedNotifyFunc update_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
LoadContext* lc;
@@ -329,7 +329,7 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func,
}
void
-image_stop_load (gpointer context)
+gdk_pixbuf__png_image_stop_load (gpointer context)
{
LoadContext* lc = context;
@@ -342,7 +342,7 @@ image_stop_load (gpointer context)
}
gboolean
-image_load_increment(gpointer context, guchar *buf, guint size)
+gdk_pixbuf__png_image_load_increment(gpointer context, guchar *buf, guint size)
{
LoadContext* lc = context;
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c
index c0b0b1df24..c3ac215fa5 100644
--- a/gdk-pixbuf/io-pnm.c
+++ b/gdk-pixbuf/io-pnm.c
@@ -75,14 +75,14 @@ typedef struct {
gboolean got_header; /* have we loaded jpeg header? */
} PnmLoaderContext;
-GdkPixbuf *image_load (FILE *f);
-gpointer image_begin_load (ModulePreparedNotifyFunc func,
- ModuleUpdatedNotifyFunc func2,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data);
-void image_stop_load (gpointer context);
-gboolean image_load_increment(gpointer context, guchar *buf, guint size);
+GdkPixbuf *gdk_pixbuf__pnm_image_load (FILE *f);
+gpointer gdk_pixbuf__pnm_image_begin_load (ModulePreparedNotifyFunc func,
+ ModuleUpdatedNotifyFunc func2,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data);
+void gdk_pixbuf__pnm_image_stop_load (gpointer context);
+gboolean gdk_pixbuf__pnm_image_load_increment(gpointer context, guchar *buf, guint size);
static void explode_bitmap_into_buf (PnmLoaderContext *context);
static void explode_gray_into_buf (PnmLoaderContext *context);
@@ -580,7 +580,7 @@ pnm_read_scanline (PnmLoaderContext *context)
/* Shared library entry point */
GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__pnm_image_load (FILE *f)
{
gint nbytes;
gint rc;
@@ -688,11 +688,11 @@ image_load (FILE *f)
*/
gpointer
-image_begin_load (ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__pnm_image_begin_load (ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
PnmLoaderContext *context;
@@ -717,7 +717,7 @@ image_begin_load (ModulePreparedNotifyFunc prepared_func,
* free context, unref gdk_pixbuf
*/
void
-image_stop_load (gpointer data)
+gdk_pixbuf__pnm_image_stop_load (gpointer data)
{
PnmLoaderContext *context = (PnmLoaderContext *) data;
@@ -740,7 +740,7 @@ image_stop_load (gpointer data)
* append image data onto inrecrementally built output image
*/
gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__pnm_image_load_increment (gpointer data, guchar *buf, guint size)
{
PnmLoaderContext *context = (PnmLoaderContext *)data;
PnmIOBuffer *inbuf;
diff --git a/gdk-pixbuf/io-ras.c b/gdk-pixbuf/io-ras.c
index 17a45942d4..f14fea3399 100644
--- a/gdk-pixbuf/io-ras.c
+++ b/gdk-pixbuf/io-ras.c
@@ -93,18 +93,18 @@ struct ras_progressive_state {
};
gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data);
-void image_stop_load(gpointer data);
-gboolean image_load_increment(gpointer data, guchar * buf, guint size);
+gdk_pixbuf__ras_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data);
+void gdk_pixbuf__ras_image_stop_load(gpointer data);
+gboolean gdk_pixbuf__ras_image_load_increment(gpointer data, guchar * buf, guint size);
/* Shared library entry point */
-GdkPixbuf *image_load(FILE * f)
+GdkPixbuf *gdk_pixbuf__ras_image_load(FILE * f)
{
guchar *membuf;
size_t length;
@@ -112,7 +112,7 @@ GdkPixbuf *image_load(FILE * f)
GdkPixbuf *pb;
- State = image_begin_load(NULL, NULL, NULL, NULL, NULL);
+ State = gdk_pixbuf__ras_image_begin_load(NULL, NULL, NULL, NULL, NULL);
membuf = g_malloc(4096);
@@ -120,7 +120,7 @@ GdkPixbuf *image_load(FILE * f)
while (feof(f) == 0) {
length = fread(membuf, 1, 4096, f);
- (void)image_load_increment(State, membuf, length);
+ (void)gdk_pixbuf__ras_image_load_increment(State, membuf, length);
}
g_free(membuf);
if (State->pixbuf != NULL)
@@ -128,7 +128,7 @@ GdkPixbuf *image_load(FILE * f)
pb = State->pixbuf;
- image_stop_load(State);
+ gdk_pixbuf__ras_image_stop_load(State);
return pb;
}
@@ -208,11 +208,11 @@ static void RAS2State(struct rasterfile *RAS,
*/
gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
- ModuleUpdatedNotifyFunc updated_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__ras_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+ ModuleUpdatedNotifyFunc updated_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
struct ras_progressive_state *context;
@@ -247,7 +247,8 @@ image_begin_load(ModulePreparedNotifyFunc prepared_func,
*
* free context, unref gdk_pixbuf
*/
-void image_stop_load(gpointer data)
+void
+gdk_pixbuf__ras_image_stop_load(gpointer data)
{
struct ras_progressive_state *context =
(struct ras_progressive_state *) data;
@@ -386,7 +387,8 @@ static void OneLine(struct ras_progressive_state *context)
*
* append image data onto inrecrementally built output image
*/
-gboolean image_load_increment(gpointer data, guchar * buf, guint size)
+gboolean
+gdk_pixbuf__ras_image_load_increment(gpointer data, guchar * buf, guint size)
{
struct ras_progressive_state *context =
(struct ras_progressive_state *) data;
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c
index a45a0b1149..587ecf8558 100644
--- a/gdk-pixbuf/io-tiff.c
+++ b/gdk-pixbuf/io-tiff.c
@@ -50,7 +50,7 @@ struct _TiffData
GdkPixbuf *
-image_load_real (FILE *f, TiffData *context)
+gdk_pixbuf__tiff_image_load_real (FILE *f, TiffData *context)
{
TIFF *tiff;
guchar *pixels = NULL;
@@ -123,9 +123,9 @@ image_load_real (FILE *f, TiffData *context)
/* Static loader */
GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__tiff_image_load (FILE *f)
{
- return image_load_real (f, NULL);
+ return gdk_pixbuf__tiff_image_load_real (f, NULL);
}
@@ -138,11 +138,11 @@ image_load (FILE *f)
gpointer
-image_begin_load (ModulePreparedNotifyFunc prepare_func,
- ModuleUpdatedNotifyFunc update_func,
- ModuleFrameDoneNotifyFunc frame_done_func,
- ModuleAnimationDoneNotifyFunc anim_done_func,
- gpointer user_data)
+gdk_pixbuf__tiff_image_begin_load (ModulePreparedNotifyFunc prepare_func,
+ ModuleUpdatedNotifyFunc update_func,
+ ModuleFrameDoneNotifyFunc frame_done_func,
+ ModuleAnimationDoneNotifyFunc anim_done_func,
+ gpointer user_data)
{
TiffData *context;
gint fd;
@@ -169,7 +169,7 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func,
}
void
-image_stop_load (gpointer data)
+gdk_pixbuf__tiff_image_stop_load (gpointer data)
{
TiffData *context = (TiffData*) data;
@@ -178,7 +178,7 @@ image_stop_load (gpointer data)
fflush (context->file);
rewind (context->file);
if (context->all_okay)
- image_load_real (context->file, context);
+ gdk_pixbuf__tiff_image_load_real (context->file, context);
fclose (context->file);
unlink (context->tempname);
@@ -186,7 +186,7 @@ image_stop_load (gpointer data)
}
gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__tiff_image_load_increment (gpointer data, guchar *buf, guint size)
{
TiffData *context = (TiffData *) data;
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c
index dcc4a8c30a..f6fd6a9be3 100644
--- a/gdk-pixbuf/io-xpm.c
+++ b/gdk-pixbuf/io-xpm.c
@@ -436,7 +436,7 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl
/* Shared library entry point for file loading */
GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__xpm_image_load (FILE *f)
{
GdkPixbuf *pixbuf;
struct file_handle h;
@@ -451,7 +451,7 @@ image_load (FILE *f)
/* Shared library entry point for memory loading */
GdkPixbuf *
-image_load_xpm_data (const gchar **data)
+gdk_pixbuf__xpm_image_load_xpm_data (const gchar **data)
{
GdkPixbuf *pixbuf;
struct mem_handle h;
diff --git a/gdk-pixbuf/pixops/Makefile.am b/gdk-pixbuf/pixops/Makefile.am
index 1b7f888502..9cdb3b3197 100644
--- a/gdk-pixbuf/pixops/Makefile.am
+++ b/gdk-pixbuf/pixops/Makefile.am
@@ -2,7 +2,7 @@ noinst_LTLIBRARIES = libpixops.la
INCLUDES = $(GLIB_CFLAGS) $(LIBART_CFLAGS)
-bin_PROGRAMS = timescale
+noinst_PROGRAMS = timescale
timescale_SOURCES = timescale.c
timescale_LDADD = libpixops.la $(GLIB_LIBS) -lm