1. 12 Sep, 2002 2 commits
  2. 06 Sep, 2002 2 commits
  3. 03 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Don't leak memory if g_try_realloc fails. · 8abdfd3d
      Matthias Clasen authored
      	* io-tga.c (io_buffer_append):
      	* io-ico.c (DecodeHeader):
      	* io-bmp.c (grow_buffer): Don't leak memory if g_try_realloc fails.
      
      	* gdk-pixbuf-io.c (pixbuf_check_ico): Fix loading of .CUR files.
      	(#91826)
      8abdfd3d
  4. 24 Aug, 2002 1 commit
    • Tor Lillqvist's avatar
      Add gtk_win32res_lo. (#87101, J. Ali Harlow) · c23090c6
      Tor Lillqvist authored
      2002-08-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/Makefile.am (libgtk_win32_2_0_la_DEPENDENCIES): Add
      	gtk_win32res_lo. (#87101, J. Ali Harlow)
      
      	* gdk-pixbuf/Makefile.am (libgdk_pixbuf_2_0_la_DEPENDENCIES): Add
      	gdk_pixbuf_win32res_lo. (#87101, J. Ali Harlow)
      c23090c6
  5. 22 Aug, 2002 1 commit
    • Matthias Clasen's avatar
      gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus · c22b6145
      Matthias Clasen authored
      	* gdk-pixbuf-io.h:
      	gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer
      	static, thus _gdk_pixbuf-prefixed.
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
      	Keep this logic in sync with gdk_pixbuf_new_from_file().  (Based
      	on a patch by Anders Carlsson)
      
      	* io-png.c (gdk_pixbuf__png_image_save): Plug a memory
      	leak.  (#91422, Sven Neumann)
      c22b6145
  6. 31 Jul, 2002 1 commit
  7. 30 Jul, 2002 1 commit
  8. 16 Jul, 2002 1 commit
  9. 07 Jul, 2002 1 commit
    • Matthias Clasen's avatar
      New function for loading an image from a file either via module->load or · 94218b8c
      Matthias Clasen authored
      	* gdk-pixbuf-io.c (generic_image_load): New function for loading
      	an image from a file either via module->load or incrementally.
      	(prepared_notify): ModulePreparedNotifyFunc for generic_image_load.
      	(gdk_pixbuf_new_from_file): Use generic_image_load.
      	* io-bmp.c, io-ico.c, io-ras.c, io-wbmp.c: Remove trivial
      	implementations of module->load.  (#71266)
      94218b8c
  10. 06 Jul, 2002 3 commits
  11. 02 Jul, 2002 1 commit
    • Matthias Clasen's avatar
      Miscellaneous bmp loader fixes (#85448, #86286, #86287): · 096e8ea2
      Matthias Clasen authored
      	* io-bmp.c (grow_buffer): New function to avoid crashes
      	on unchecked reallocs.
      	(DecodeHeader, DecodeColormap, decode_bitmasks,
      	DoCompressed): Use grow_buffer instead of g_realloc
      	throughout. Change signatures where necessary to pass the
      	errors up.
      	(OneLine16): Fix loading of 16bpp BI_RGB bmps.
      	(DoCompressed): Rewritten to properly support BI_RLE4 and
      	skips and jumps.
      096e8ea2
  12. 01 Jul, 2002 2 commits
    • Matthias Clasen's avatar
      Support for compressed ras images (#84994): · c43a93f9
      Matthias Clasen authored
      	* io-ras.c (RAS2State): Error on unsupported ras variations.
      	(OneLine8): Fix colormap indexing.
      	(OneLine): Call updated_func with proper region.
      	(DoCompressed): New function, handles compressed ras data.
      	(gdk_pixbuf__ras_image_load_increment): Handle compressed ras
      	images.
      c43a93f9
    • Matthias Clasen's avatar
      Better colorspace support for the jpeg loader (#61211): · 155aa55b
      Matthias Clasen authored
      	* io-jpeg.c (convert_cmyk_to_rgb): New function.
      	(gdk_pixbuf__jpeg_image_load,
      	gdk_pixbuf__jpeg_image_load_increment): Allocate a pixbuf with
      	alpha for 4-channel jpegs and call convert_cmyk_to_rgb for these.
      155aa55b
  13. 28 Jun, 2002 1 commit
  14. 13 Jun, 2002 2 commits
  15. 10 Jun, 2002 1 commit
    • Federico Mena Quintero's avatar
      New functions to fetch 32 or 16-bit little-endian values starting at a · ebeb676c
      Federico Mena Quintero authored
      2002-06-07  Federico Mena Quintero  <federico@ximian.com>
      
      	* io-bmp.c (lsb_32):
      	(lsb_16): New functions to fetch 32 or 16-bit little-endian values
      	starting at a specific memory location.  We do this instead of
      	GINT32_FROM_LE() as the latter is simply dereferences a cast,
      	which doesn't work on platforms with alignment requirements.
      	Fixes #84083.
      ebeb676c
  16. 31 May, 2002 1 commit
    • Matthias Clasen's avatar
      Accept xbms starting with a C comment - those seem to be not uncommon, · 61857770
      Matthias Clasen authored
      	* gdk-pixbuf-io.c (pixbuf_check_xbm): Accept xbms starting
      	with a C comment - those seem to be not uncommon, e.g. the Gimp
      	produces them.  (#82706)
      
      	* io-xbm.c (read_bitmap_file_data): Don't leak memory on certain
      	invalid inputs.
      	(gdk_pixbuf__xbm_image_load_real): Don't leak memory on valid inputs.
      61857770
  17. 22 May, 2002 2 commits
    • Tor Lillqvist's avatar
      Use GTK_BINARY_VERSION (and not GTK_VERSION) in the path to the loaders on · 7952906c
      Tor Lillqvist authored
      2002-05-22  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf-io.c (get_libdir): Use GTK_BINARY_VERSION (and not
      	GTK_VERSION) in the path to the loaders on Win32, too.
      
      	* Makefile.am: Pass GTK_BINARY_VERSION.
      7952906c
    • Federico Mena Quintero's avatar
      Ahem, take the rowstride into account!!! Fixes #82515. · 1528b0ad
      Federico Mena Quintero authored
      2002-05-22  Federico Mena Quintero  <federico@ximian.com>
      
      	* io-xpm.c (pixbuf_create_from_xpm): Ahem, take the rowstride into
      	account!!!  Fixes #82515.
      
      	[This bug is not present in the GNOME 1.4 branch as its XPM loader
      	does not use gdk_pixbuf_new(); rather it malloc()s a buffer with
      	no row padding and then uses gdk_pixbuf_new_from_data() on it.]
      
      	[IMPORTANT: The comment above is to make my life easier when
      	merging stuff across branches.  If you make changes to gdk-pixbuf
      	in either branch, please include a comment in the ChangeLog that
      	indicates whether this should be merged into the other branch.
      	Thanks!]
      1528b0ad
  18. 18 May, 2002 1 commit
    • Matthias Clasen's avatar
      Check for endianness. · d2686aa9
      Matthias Clasen authored
      	* configure.in: Check for endianness.
      
      	* io-tiff.c (tiff_image_parse): fix packing order on bigendian
      	systems.  (#81702)
      d2686aa9
  19. 16 May, 2002 2 commits
    • Owen Taylor's avatar
      Patch from Matthias Clasen to fix some typos (#77246) · c7efe6f3
      Owen Taylor authored
      Thu May 16 15:17:30 2002  Owen Taylor  <otaylor@redhat.com>
      
              * pixops/pixops.c: Patch from Matthias Clasen to fix some typos
              (#77246)
      c7efe6f3
    • Owen Taylor's avatar
      Fixes for #78258 · 85a8bdb1
      Owen Taylor authored
      Thu May 16 14:51:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for #78258
      
              * gtk/gtkrbtree.c demos/gtk-demo/editable-cells.c:
              Fix some 64-bit warning problems. (Patch from Matthias
              Clasen.)
      
              * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew_helper): Surround
              a bunch of debug code with G_ENABLE_DEBUG.
      
              * configure.in demos/gtk-demo/main.c: Replace
              #ifndef G_OS_WIN32 with proper #ifdef HAVE_FLOCKFILE.
      85a8bdb1
  20. 07 May, 2002 1 commit
  21. 05 May, 2002 1 commit
    • Soeren Sandmann's avatar
      image files for testing pixbuf loaders the old test-loaders.c split into · d269c210
      Soeren Sandmann authored
      Sun May  5 02:22:59 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/test-images/*: image files for testing pixbuf loaders
      	* tests/pixbuf-*.c: the old test-loaders.c split into four
      	different programs
      	* tests/Makefile.am: add new pixbuf tests
      
      Sun May  5 02:27:01 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* Makefile.am (noinst_PROGRAMS): remove test-loaders (moved to
      	gtk+/tests/)
      	* test-loaders.c, test-images.h: remove
      d269c210
  22. 24 Apr, 2002 1 commit
  23. 11 Apr, 2002 1 commit
    • Matthias Clasen's avatar
      More fixes for #77807: · 69395108
      Matthias Clasen authored
      	* io-tga.c (get_contiguous_pixbuf): Helper function to create
      	a pixbuf with a contiguous pixel array while being careful about
      	overflow.
      
      	* io-tga.c (fill_in_context, get_image_pseudocolor,
      	get_image_truecolor, get_image_grayscale): Use
      	get_contiguous_pixbuf instead of manually allocating image
      	storage.
      
      	* io-xpm.c (pixbuf_create_from_xpm):
      	* io-pnm.c (gdk_pixbuf__pnm_image_load):
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_load): Use gdk_pixbuf_new
      	instead of manually allocating image storage.
      69395108
  24. 09 Apr, 2002 1 commit
  25. 06 Apr, 2002 1 commit
  26. 05 Apr, 2002 1 commit
  27. 03 Apr, 2002 1 commit
  28. 29 Mar, 2002 1 commit
  29. 27 Mar, 2002 1 commit
    • Matthias Clasen's avatar
      Don't leak info_ptr. · ec35e811
      Matthias Clasen authored
      	* io-png.c (gdk_pixbuf__png_image_stop_load): Don't leak info_ptr.
      
      	* io-png.c (gdk_pixbuf__png_image_load): Get rid of unused
      	end_info. Also call png_read_end to check proper ending of the png
      	file and catch text chunks after the image data.
      ec35e811
  30. 26 Mar, 2002 1 commit
  31. 25 Mar, 2002 2 commits
    • Matthias Clasen's avatar
      Don't leak pixbuf on error. · de19229a
      Matthias Clasen authored
      	* io-tiff.c (tiff_image_parse): Don't leak pixbuf on error.
      
      	* io-gif.c (gdk_pixbuf__gif_image_load_increment): Don't leak
      	context->buf on error.
      
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Make sure to call
      	stop_load even for short images to prevent memleaks.
      de19229a
    • Matthias Clasen's avatar
      Changed signature to return success and set a GError parameter, adjusted · 2a8fc72b
      Matthias Clasen authored
      	* io-png.c (setup_png_transformations): Changed signature to
      	return success and set a GError parameter, adjusted all callers.
      	Also work around a possible FPE in libpng and always check that
      	the new info is sane.
      2a8fc72b