1. 07 Jan, 2000 1 commit
    • Jonathan Blandford's avatar
      Added progressive animation loading. Added progressive animation loading. · 959b45be
      Jonathan Blandford authored
      2000-01-07  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk-pixbuf/gdk-pixbuf-io.c: Added progressive animation loading.
      	* gdk-pixbuf/gdk-pixbuf-io.h: Added progressive animation loading.
      	* gdk-pixbuf/gdk-pixbuf-loader.c: Added progressive animation
      	loading.
      	* gdk-pixbuf/gdk-pixbuf-loader.h: Added progressive animation
      	loading.
      	* gdk-pixbuf/io-gif.c (image_load_increment): I think the
      	ref-counting mess is finally fixed.  Added progressive animation
      	loading.
      
      I think progressive animation loading all works now.  It's all
      documented too, if anyone wants to play with it.
      959b45be
  2. 05 Jan, 2000 1 commit
    • Jonathan Blandford's avatar
      Change the order of the update func to make it more compatible with the · 8b34aeb6
      Jonathan Blandford authored
      2000-01-05  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk-pixbuf/gdk-pixbuf-io.h: Change the order of the update func
      	to make it more compatible with the rest of GTK.  Added animation
      	framework for progressive loading.
      
      	* gdk-pixbuf/io-bmp.c (image_begin_load): Modified to handle new
      	system.
      	* gdk-pixbuf/io-ico.c (image_begin_load): ditto
      	* gdk-pixbuf/io-png.c (image_begin_load): ditto
      	* gdk-pixbuf/io-ras.c (image_begin_load): ditto
      	* gdk-pixbuf/io-jpeg.c (image_begin_load): ditto
      	* gdk-pixbuf/io-pnm.c (image_begin_load): ditto
      	* gdk-pixbuf/io-tiff.c (image_begin_load): ditto
      	* gdk-pixbuf/io-gif.c (image_begin_load): ditto
      8b34aeb6
  3. 02 Jan, 2000 1 commit
    • Federico Mena Quintero's avatar
      Added reference counting to animations. A web browser may want to share a · e55155f9
      Federico Mena Quintero authored
      2000-01-01  Federico Mena Quintero  <federico@helixcode.com>
      
      	* gdk-pixbuf/gdk-pixbuf.h (GdkPixbufAnimation): Added reference
      	counting to animations.  A web browser may want to share a single
      	copy of an animated GIF if it appears multiple times in a web
      	page, for example.
      
      	* gdk-pixbuf/gdk-pixbuf-animation.c: New file.  Moved the
      	animation functions here.
      	(gdk_pixbuf_animation_new_from_file): Prettified.  Return a NULL
      	animation if the loader does not support multiframe loading and
      	the single-frame load returned NULL.  Check that the filename is
      	not NULL.  Updated inline documentation.
      	(gdk_pixbuf_animation_ref): New function.
      	(gdk_pixbuf_animation_unref): New function.
      	Removed gdk_pixbuf_animation_destroy() in favor of reference
      	counting.
      
      	* gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file):
      	Prettified.  Made ref_count assertion more paranoid.  Check that
      	the filename is not NULL.
      	(gdk_pixbuf_get_module): Use guchar * and guint for buffer and
      	size, respectively.
      	(gdk_pixbuf_new_from_xpm_data): Changed the "data" argument to
      	const char **.
      
      	* gdk-pixbuf/io-gif.c (image_load_animation): Create the animation
      	with a reference count of 1.
      
      	* gdk-pixbuf/Makefile.am (libgdk_pixbuf_la_SOURCES): Added
      	gdk-pixbuf-animation.c.
      
      	* doc/tmpl/animation.sgml: Populated.  It is still missing a
      	description of the overlay modes.
      
      	* doc/gdk-pixbuf-sections.txt: Added the animation section.  Moved
      	the canvas item section to the end, as it will be moved later to
      	gnome-libs.
      
      	* doc/gdk-pixbuf.sgml: Added the animation section.
      
      	* doc/Makefile.am (tmpl_sources): Added tmpl/animation.sgml.
      e55155f9
  4. 11 Dec, 1999 1 commit
    • Jonathan Blandford's avatar
      thinking about the new loading API. · b5550663
      Jonathan Blandford authored
      1999-12-10  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk-pixbuf/gdk-pixbuf-io.h: thinking about the new loading API.
      
      	* gdk-pixbuf/gdk-pixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
      	make a warning go away.
      b5550663
  5. 02 Dec, 1999 1 commit
    • Federico Mena Quintero's avatar
      #include <config.h>, and fix includes. · 90ca9061
      Federico Mena Quintero authored
      1999-12-02  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/testpixbuf.c: #include <config.h>, and fix includes.
      
      	* src/testpixbuf-drawable.c: #include <config.h>, and fix includes.
      
      	* src/io-xpm.c: Fix includes.
      
      	* src/io-tiff.c: Fix includes.
      
      	* src/io-ras.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-pnm.c: Fix inlcudes, and do not include more stuff than needed.
      
      	* src/io-png.c: Fix includes.
      
      	* src/io-ico.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-gif.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-bmp.c: Fix includes, and do not include more stuff than needed.
      
      	* src/gnome-canvas-pixbuf.c: Fix includes.
      
      	* src/gdk-pixbuf.c: Fix includes.
      
      	* src/gdk-pixbuf-util.c: Fix includes.
      
      	* src/gdk-pixbuf-render.c: Fix includes.
      
      	* src/gdk-pixbuf-io.h: Fix includes.
      
      	* src/gdk-pixbuf-drawable.c: Fix includes.
      
      	* src/gdk-pixbuf-drawable.h: Use angle brackets for the gdk-pixbuf
      	include files.
      
      	* src/gdk-pixbuf-data.c: Fix includes.
      
      	* src/gdk-pixbuf-loader.c: #include <config.h>
      
      	* src/gdk-pixbuf-loader.h: Use angle brackets for the gdk-pixbuf
      	include files.
      
      	* src/Makefile.am: Commented out the gdk-pixbuf-drawable stuff,
      	since it is not finished.
      90ca9061
  6. 23 Nov, 1999 1 commit
  7. 22 Nov, 1999 1 commit
  8. 04 Nov, 1999 1 commit
    • Jonathan Blandford's avatar
      handle the actual update. add a update_func callback. add a update_func · 09dd8450
      Jonathan Blandford authored
      1999-11-04  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_update): handle the
      	actual update.
      	* src/io-png.c (image_begin_load): add a update_func callback.
      	* src/io-gif.c (image_begin_load): add a update_func callback.
      	* src/io-tiff.c (image_begin_load): add a update_func callback.
      09dd8450
  9. 02 Nov, 1999 2 commits
  10. 29 Oct, 1999 1 commit
    • Michael Fulbright's avatar
      Actually load the image handler when we determine the image type. · 2580cb68
      Michael Fulbright authored
      1999-10-29  Michael Fulbright  <drmike@redhat.com>
      
              * src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Actually
              load the image handler when we determine the image type.
      
              * src/gdk-pixbuf-io.[ch] (gdk_pixbuf_load_module): Changed the
              previously static function load_image_handler () to
              a public function gdk_pixbuf_load_module (). It is needed in
              gdk-pixbuf-loader.c to load image handler modules.  This function
              is different from gdk_pixbuf_get_module (), which only returns
              a reference to the required handler, because it actually loads
              the handler into memory. Both actions should possibly be combined
              in a convenience function since one w/o the other doesn't seem to
              make much sense.
      2580cb68
  11. 28 Oct, 1999 1 commit
    • Jonathan Blandford's avatar
      started work on the tiff non-incremental loader. · 0da5c74f
      Jonathan Blandford authored
      
      1999-10-28  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/io-tiff.c (image_load_increment): started work on the tiff
      	non-incremental loader.
      
      	* src/io-gif.c (image_load_increment): started work on the gif
      	incremental loader.
      
      	* src/gdk-pixbuf-io.h: Changed ModuleType to GdkPixbufModule.
      0da5c74f
  12. 27 Oct, 1999 2 commits
    • Arturo Espinosa's avatar
      Make it build - Federico · 2c343c99
      Arturo Espinosa authored
      2c343c99
    • Federico Mena Quintero's avatar
      Return a GdkPixbufLoader, not a GtkObject. · e1e7523b
      Federico Mena Quintero authored
      1999-10-27  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_new): Return a
      	GdkPixbufLoader, not a GtkObject.
      	(gtk_marshal_NONE__INT_INT_INT_INT): Made static.
      	(gdk_pixbuf_loader_get_type): Documented.
      	(gdk_pixbuf_loader_class_init): Initialize the parent class
      	correctly.
      	(gdk_pixbuf_loader_destroy): Added sanity checks. Call the parent
      	class destroy function.
      	(gdk_pixbuf_loader_new): Documented.
      	(gdk_pixbuf_loader_finalize): Call the parent class finalize
      	function.
      	(gdk_pixbuf_loader_write): Use size_t for count.
      e1e7523b
  13. 26 Oct, 1999 3 commits
  14. 08 Jul, 1999 1 commit
    • Mark Crichton's avatar
      Massive update... · 86003a8d
      Mark Crichton authored
      
      
      Massive update...
      
      gdk-pixbuf-io.c: Fixed to compile and run in a very crippled state.
      
      io-bpm.c: Rough start on a WIN/OS2 BMP loader
      
      testpixbuf.c: Really crude test program for gdk-pixbuf
      
      io-gif.c: Fixed some boneheaded uninitalized variables causing the
      loader to choke
      86003a8d