ChangeLog 152 KB
Newer Older
1 2 3 4 5
Sun Nov 28 12:11:21 2004  Manish Singh  <yosh@gimp.org>

	* makegdkpixbufalias.pl: ytpo fix, so attributes are really
	propagated.

6 7 8 9 10 11
2004-11-28  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf.symbols: 
	* Makefile.am: Mark get_type() functions generated by glib-mkenums 
	as const.

12 13 14 15
Thu Nov 25 14:21:37 2004  Manish Singh  <yosh@gi,p.org>

	* abicheck.sh: filter out G_GNUC stuff when doing the compare.

16 17 18 19 20 21 22 23 24 25 26 27 28
2004-11-23  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-core.h: Don't mark gdk_pixbuf_error_quark() as const,
	to be consistent with all the other error_quark functions. 
	(technically they are const, but since these are called only
	in error paths, giving the compiler better optimization 
	opportunities doesn't matter much)

	* gdk-pixbuf.symbols: Add attribute annotations.
	* makegdkpixbufalias.pl: Keep attribute annotations, but strip PRIVATE.
	* Makefile.am (gdk_pixbuf.def): Strip attribute annotations, but keep 
	PRIVATE.

29 30 31 32 33 34 35
Mon Nov 15 18:58:22 2004  Manish Singh  <yosh@gimp.org>

	* gdk-pixbuf-private.h: _gdk_pixbuf_lock now returns a gboolean.

	* abicheck.sh: don't hardcode lengths for cut, instead split on
	the third field.

Matthias Clasen's avatar
Matthias Clasen committed
36 37
2004-11-15  Matthias Clasen  <mclasen@redhat.com>

38 39 40 41 42 43 44 45
	* gdk-pixbuf-animation.c: 
	* gdk-pixbuf-loader.c: 
	* gdk-pixbuf-io.c: Be extra careful when locking and handle
	the case that the module may initialize the thread system.

	* gdk-pixbuf-io.[hc] (_gdk_pixbuf_lock): Return whether the
	lock was actually taken.

Matthias Clasen's avatar
Matthias Clasen committed
46 47 48 49
	* queryloaders.c (query_module): Set vtable->module before
	calling fill_vtable(), since gdk-pixbuf-io.c does does the
	same and modules may rely on it.  (#158177, Dan Winship)

Matthias Clasen's avatar
2.5.5  
Matthias Clasen committed
50 51
2004-11-12  Matthias Clasen  <mclasen@redhat.com>

52 53 54
	* gdk-pixbuf-io.c (gdk_pixbuf_io_init): Don't use 
	_gdk_pixbuf_load_module_unlocked() in the !USE_GMODULE case.

Matthias Clasen's avatar
2.5.5  
Matthias Clasen committed
55 56
	* === Released 2.5.5 ===
	
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
2004-11-12  Matthias Clasen  <mclasen@redhat.com>

	Changes to make gdk-pixbuf threadsafe  (#157310, #157306, 
	Colin Walters):
	
	* gdk-pixbuf-io.h (enum GdkPixbufFormatFlags): Add 
	GDK_PIXBUF_FORMAT_THREADSAFE to indicate that an image loader
	is threadsafe.

	* gdk-pixbuf-io.c (get_file_formats, _gdk_pixbuf_load_module): 
	Use a lock to make initialization of global data structures 
	threadsafe.
	* gdk-pixbuf-private.h: 
	* gdk-pixbuf-io.c (_gdk_pixbuf_lock, _gdk_pixbuf_unlock): 
	Auxiliary functions which use another lock to protect 
	threadunsafe image loaders.
	
	* gdk-pixbuf-io.c (gdk_pixbuf_real_save): 
	(save_to_callback_with_tmp_file): 
	(gdk_pixbuf_real_save_to_callback): 
	(gdk_pixbuf_new_from_xpm_data): 
	(_gdk_pixbuf_generic_image_load): 
	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): 
	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module): 
	(gdk_pixbuf_loader_close): 
	(gdk_pixbuf_loader_finalize): 
	Use _gdk_pixbuf_lock() and _gdk_pixbuf_unlock().

	* io-ani.c, io-bmp.c, io-gif.c, io-ico.c:
	* io-jpeg.c, io-pcx.c, io-png.c, io-pnm.c:
	* io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c:
	* io-xpm.c: Mark as threadsafe.
	
	* io-tiff.c: Remove pointless locking, mark as 
	threadunsafe.

93 94 95 96 97 98
2004-11-10  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-animation.c: 
	* gdk-pixbuf-io.c: Use g_filename_display_name() instead of
	g_filename_to_utf8() when putting filenames in error messages.

99 100 101 102 103
2004-11-04  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf.c (gdk_pixbuf_class_init): Document current
	restrictions for property values.  (#157409, Matthew H. Plough)

104 105 106 107 108
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-features.h.in: Break the declaration of the three 
	version variables, so that gtk-doc can grok it.

Hans Breuer's avatar
updated  
Hans Breuer committed
109 110 111 112
2004-10-29  Hans Breuer  <hans@breuer.org>

	* makefile.msc : updated

Matthias Clasen's avatar
Matthias Clasen committed
113 114 115 116 117 118 119 120 121
2004-10-27  Matthias Clasen  <mclasen@redhat.com>

	* === Released 2.5.4 ===

2004-10-27  Matthias Clasen  <mclasen@redhat.com>

	* Makefile.am (gdk-pixbuf-alias.h): Fix srcdir != builddir
	builds.

Matthias Clasen's avatar
2.5.3  
Matthias Clasen committed
122 123 124 125
2004-09-19  Matthias Clasen  <mclasen@redhat.com>

	* === Released 2.5.3 ===

Matthias Clasen's avatar
Matthias Clasen committed
126 127 128 129 130
2004-09-15  Matthias Clasen  <mclasen@redhat.com>

	* io-ico.c: 
	* io-xpm.c: Fix some security issues discovered by Chris Evans. 

131 132 133 134 135
Mon Sep 13 19:31:34 2004  Matthias Clasen  <maclas@gmx.de>

	* io-jpeg.c (real_save_jpeg): Drop the alpha channel 
	when saving 4-channel pixbufs.  (#152450, Emmanuel Pacaud)

136 137 138 139 140
2004-09-09  Matthias Clasen  <mclasen@redhat.com>

	* makegdkpixbufalias.pl: Use the short prefix "IA__" for 
	aliases instead of the long suffix "__internal_alias". 
	
141 142 143 144
2004-09-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-core.h: Align argument names with source.

145 146 147 148 149 150 151 152 153
Thu Aug 26 01:23:16 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-core.h: 
	* gdk-pixbuf.symbols: 
	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_scale): 
	Add gdk_pixbuf_new_from_file_at_scale(), which is just
	like gdk_pixbuf_new_from_file_at_size(), but optionally
	ignores the aspect ratio.  (#136395, Dom  Lachowicz)

154 155 156 157
Wed Aug 25 17:23:23 2004  Manish Singh  <yosh@gimp.org>

	* io-gif.c: remove unused set_need_recomposite() function.

Matthias Clasen's avatar
2.5.2  
Matthias Clasen committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171
2004-08-25  Matthias Clasen  <mclasen@redhat.com>

	* === Released 2.5.2 ===

	* abicheck.sh: Make work in make distcheck.

2004-08-25  Matthias Clasen  <mclasen@redhat.com>

	* Makefile.am: Use the same prefix when creating 
	gdk-pixbuf-marshal.c and gdk-pixbuf-marshal.h

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): _-prefix
	the marshalers.

172 173
2004-08-24  Matthias Clasen  <mclasen@redhat.com>

174
	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_mime_type): Use
175 176
	the correct index and compare correctly, reported by Tommi Komulainen.
	(gdk_pixbuf_loader_new_with_mime_type): 
177

178 179 180 181
	* gdk-pixdata.c (gdk_pixdata_from_pixbuf): Work around bugs in
	the runlength encoder by forcing rowstride * height to be 
	divisible by bpp.  (#150882)

182 183 184 185 186
Sun Aug 22 03:20:56 2004  Matthias Clasen  <maclas@gmx.de>

	* pixops/pixops.c (pixops_scale_nearest): Fix a mixup in the handling
	of dest_channels.  (#111922, Christophe Fergeau)

187 188 189 190 191
Fri Aug 20 11:59:10 2004  Owen Taylor  <otaylor@redhat.com>

	* io-bmp.c: Fix infinite loop that can occur for bad
	image data (#150601, Chris Evans, Manish Singh)

192 193 194 195 196 197 198 199 200 201 202 203 204
2004-08-17  Matthias Clasen  <mclasen@redhat.com>

	* abicheck.sh: No need for INCLUDE_INTERNAL_SYMBOLS any more.

	* Makefile.am (gdk-pixbuf-alias.h): Don't use cpp to filter the symbols.

	* makegdkpixbufalias.pl: Move the #ifdef processing into the perl script,
	and keep the #ifdefs which differentiate between platforms.

	* gdk-pixbuf.symbols: Remove the marshalers.

	* Makefile.am (stamp-gdk-pixbuf-marshal.h): _-prefix the marshalers.

205 206 207 208 209
Thu Aug 12 22:19:12 2004  Matthias Clasen  <maclas@gmx.de>

	* io-bmp.c (DecodeHeader): Properly determine the number of 
	colors in an OS/2 BMP file.  (#150003, Jon-Kare Hellan)

210 211 212 213
2004-08-12  Matthias Clasen  <mclasen@redhat.com>

	* pixops/pixops.c: Remove C99-isms.  (#149967, Vincent Noel)

Matthias Clasen's avatar
Matthias Clasen committed
214 215 216 217
Wed Aug 11 22:56:55 2004  Matthias Clasen  <maclas@gmx.de>

	* abicheck.sh: Check all symbols.

218 219
2004-08-11  Matthias Clasen  <mclasen@redhat.com>

220 221 222
	* pixops/pixops.c: Make scaling and compositing functions handle
	edge pixels consistently.  (#111922, Brian Cameron)

223 224 225 226 227 228 229 230 231
	* pixops/pixops-internal.h: 
	* pixops/pixops.c:
	* pixops/*.S: underscore prefix the mmx implementations, in order
	to not export them.

	* gdk-pixbuf.symbols: Remove the mmx pixops implementations.

	* abicheck.sh: No need to define INCLUDE_MMX_SYMBOLS any more.

232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Tue Aug 10 23:53:59 2004  Matthias Clasen  <maclas@gmx.de>

	Add hidden aliases for exported symbols which are
	used internally in order to get rid of many PLT 
	entries.  (#145519, Arjan van de Ven)
	
	* gdk/Makefile.am: Add rules to generate gdk_pixbuf.def and 
	gdk-pixbuf-alias.h from gdk-pixbuf.symbols, and make make 
	check check the abi with abicheck.sh.

	* gdk/gdk-pixbuf.symbols: New file. Definition of the gdk-pixbuf 
	ABI. The file can be processed by cpp to filter out certain 
	subsets of symbols.

	* gdk/abicheck.sh: New file. Script to check the actually 
	symbols exported from libgdk_pibuf.2.0.so against the symbols
	found in gdk-pixbuf.symbols.

	* gdk/makegdkpixbufalias.pl: New file. Perl script to generate the 
	header containing the alias definitions for internally used 
	exported symbols from a list of symbols.

	* *.c: Include gdk-pixbuf-alias.h

Hans Breuer's avatar
updated  
Hans Breuer committed
256 257 258 259
2004-08-06  Hans Breuer  <hans@breuer.org>

	* gdk_pixbuf.def makefile.msc : updated

260 261 262 263 264
Sun Aug  1 23:57:06 2004  Matthias Clasen  <maclas@gmx.de>

	* io-pcx.c (pcx_increment_load_data_1): Fix progressive
	loading of 8bit pcx files. (#148518, Magnus Bergman)

Matthias Clasen's avatar
2.5.1  
Matthias Clasen committed
265 266 267 268
2004-08-01  Matthias Clasen  <mclasen@redhat.com>
                                                                                
        * === Released 2.5.1 ===
                                                                                
269 270 271 272 273
Tue Jul 20 22:23:26 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.h: Remove trailing commas from 
	enumerations.  (#148035)

Soeren Sandmann's avatar
Soeren Sandmann committed
274 275 276 277
Sun Jul 18 20:17:41 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* === released 2.5.0 ==

278 279 280 281 282 283
Thu Jul 15 19:19:21 2004  Matthias Clasen  <maclas@gmx.de>

	* io-png.c (real_save_png): 
	* gdk-pixbuf-io.c (gdk_pixbuf_io_init): Use 'cannot' instead
	of 'can not' in messages.   (#144226, Morten Welinder)

284 285 286 287 288 289 290 291 292 293 294
Fri Jul  9 15:38:06 2004  Manish Singh  <yosh@gimp.org>

	* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): function doesn't
	return a value, so don't use g_return_val_if_fail()

	* gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple): initialize dest in
	the can't happen case, to quiet gcc.

	* io-tiff.c (tifflibversion): enclose in #if TIFFLIB_VERSION >=
	20031226.

295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
Wed Jul  7 23:53:58 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.h: 
	* gdk-pixbuf-io.c (gdk_pixbuf_format_is_disabled): 
	* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): 
	* gdk-pixbuf-io.c (gdk_pixbuf_format_get_license): 
	New functions to disable/enable individual loaders and to
	obtain license information about loaders.
	
	* gdk-pixbuf-io.h (GdkPixbufFormat): Add disabled and 
	license fields.

	* gdk-pixbuf-io.c (_gdk_pixbuf_get_module): 
	* gdk-pixbuf-io.c (_gdk_pixbuf_get_named_module): Skip
	disabled loaders.

	* io-*.c: Add license information in the fill_info
	functions.
	
Matthias Clasen's avatar
Matthias Clasen committed
314 315 316 317
2004-07-07  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-features.h.in: Fix the build.

318 319
2004-07-06  Tor Lillqvist  <tml@iki.fi>

Tor Lillqvist's avatar
Tor Lillqvist committed
320 321 322 323
	* gdk-pixbuf-features.h.in
	* gdk-pixbuf.c: Mark the version variables for proper import and
	export from Windows DLLs. Thanks to Laurent Sansonetti for
	reporting the problem.
324

325 326 327 328 329
Sat Jul  3 00:41:44 2004  Matthias Clasen  <maclas@gmx.de>

	* pixops/pixops.c (bilinear_box_make_weights): Correct the
	math to calculate bilinear weights. (#112412, Brian Cameron)

330 331 332 333 334 335 336 337
Mon Jun 21 00:44:51 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-transform.h: 
	* gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple): 
	* gdk-pixbuf-scale.c (gdk_pixbuf_flip): New functions to
	rotate pixbufs by multiples of 90 degrees and to flip them
	horizontally or vertically.

338 339 340 341 342 343 344 345 346 347 348 349 350 351
Sun Jun 20 01:06:48 2004  Matthias Clasen  <maclas@gmx.de>

	Header reorganization.  (#51999, Jeff Franks, reorganization
	proposed by Havoc Pennington)
	
	* gdk-pixbuf.h: This is now an include-only header, and the only
	one which applications should directly use.
	
	* gdk-pixbuf-animation.h: Add animation api from gdk-pixbuf.h.
	* gdk-pixbuf-io.h: Add io api from gdk-pixbuf.h.
	* gdk-pixbuf-loader.h: Add loader api from gdk-pixbuf.h.
	* gdk-pixbuf-transform.h: New header.
	* gdk-pixbuf-core.h: New header.

352 353 354 355 356
Sat Jun 19 01:44:12 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-scale.c (gdk_pixbuf_composite): Add a figure which
	explains pixbuf compositing.

357 358 359 360 361
2004-06-16  Matthias Clasen  <mclasen@redhat.com>

	* io-tiff.c: Make the tiff loader work with both 
	libtiff 3.5.7 and libtiff 3.6.1.  (#135541, Marco Ghirlanda)

362 363 364 365 366 367 368 369
Fri Jun 11 22:02:56 2004  Matthias Clasen  <maclas@gmx.de>

	* io-gif.c, io-pnm.c, io-tga.c, io-xpm.c: Don't use
	contractions like "don't" or "isn't" in error messages.
	It isn't nice to use them in log entries either...
	(#137774, Morten Welinder, patch by Alexander Winston)

Sat Jun  5 00:59:12 2004  Matthias Clasen  <maclas@gmx.de>
370 371 372 373 374 375 376
 
	Merged from 2.4

	* gdk-pixbuf-animation.c: 
	* gdk-pixbuf-io.c: Convert filenames to UTF-8 when embedding
 	them in error messages.  (#143654, Sven Neumann)
 
Matthias Clasen's avatar
Matthias Clasen committed
377 378 379 380 381 382 383
Sun May 16 22:53:47 2004  Matthias Clasen  <maclas@gmx.de>

        Merged from 2.4

	* io-pnm.c (pnm_read_next_value): Don't read integers 
	partially.  (#142584, Kouichirou Hiratsuka) 

384 385 386 387 388 389 390 391 392 393
2004-05-10  Matthias Clasen  <mclasen@redhat.com>

	Merged from 2.4:
	
	* pixops/timescale.c: 
	* pixops/pixops.c: 
	* pixops/pixops.h: 
	* gdk-pixbuf-scale.c: _-prefix the nonstatic pixops_... 
	functions.  (#142233, Morten Welinder)
	
394 395 396 397 398 399 400 401 402
Wed May  5 23:09:48 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.h (GdkPixbufFormatFlags): New format flag
	GDK_PIXBUF_FORMAT_SCALABLE to mark scalable formats.

	* gdk-pixbuf.h: 
	* gdk-pixbuf-io.c (gdk_pixbuf_format_is_scalable): New function.
	(#137995, Dom Lachowicz)

Matthias Clasen's avatar
Matthias Clasen committed
403 404 405 406
2004-04-30  Matthias Clasen  <mclasen@redhat.com>

	* === Released 2.4.1 ===

407 408 409 410 411 412 413 414 415
2004-04-13  Matthias Clasen  <mclasen@redhat.com>

	* io-ani.c (gdk_pixbuf__ani_image_load_animation): 
	* gdk-pixbuf-io.c (gdk_pixbuf_get_file_info) 
	(_gdk_pixbuf_generic_image_load) 
	(gdk_pixbuf_new_from_file_at_size): When calling fread()
	in a loop, check for ferror() as well as for feof() to
	avoid infinite loops on directories.  (#137804, Alex Converse)

Owen Taylor's avatar
Owen Taylor committed
416 417 418 419
Mon Mar 15 15:01:59 2004  Owen Taylor  <otaylor@redhat.com>

	* === Released 2.4.0 ===

420 421
2004-03-15  Tor Lillqvist  <tml@iki.fi>

422 423 424
	* queryloaders.c (main): [Win32] Look up installation prefix at
	run-time, replace prefix in PIXBUF_LIBDIR with that. (#106141)

425
	Merges from stable branch that had been left out. (#136282, J. Ali
426
	Harlow):
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443

	Changes for run-time lookup of installation location on Win32:
	
	* Makefile.am (INCLUDES): Define GTK_PREFIX as $(prefix).

	* gdk-pixbuf-io.c (get_sysconfdir): New function, look up
	installation location at runtime and deduce GTK_SYSCONFDIR
	from it.
	(get_toplevel): Similar, for the top-level installation directory.
	(correct_prefix): Replace compile-time prefix with run-time
	prefix.
	(get_libdir): Remove, not used any longer.
	(gdk_pixbuf_io_init): Call correct_prefix() on Win32.

	* queryloaders.c (query_module): [Win32] Change backslahses into
	slashes in path.

Owen Taylor's avatar
Owen Taylor committed
444 445 446 447
Tue Mar  9 09:33:28 2004  Owen Taylor  <otaylor@redhat.com>

	* === Released 2.3.6 ===

448 449 450 451
2004-03-05  Tor Lillqvist  <tml@iki.fi>

	* gdk_pixbuf.def: Add missing entries. Thanks to J. Ali Harlow.

452 453 454 455 456 457
Fri Mar  5 22:22:25 2004  Matthias Clasen  <maclas@gmx.de>

	* io-bmp.c (OneLine32): Don't try to load an alpha channel
	from the BMP, since there is no evidence that even 32bit
	BMPs have an alpha channel.  (#135502)

Owen Taylor's avatar
Owen Taylor committed
458 459 460 461
Mon Mar  1 19:47:48 2004  Owen Taylor  <otaylor@redhat.com>

	 * === Released 2.3.5 ====

462 463 464 465 466
2004-02-28  Hans Breuer  <hans@breuer.org>

	* io-tiff.c : include <io.h> for lseek()
	* io-xbm.c : use HAVE_UNISTD_H

Owen Taylor's avatar
Owen Taylor committed
467 468 469 470
Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>

	* === Released 2.3.3 ===

Matthias Clasen's avatar
Matthias Clasen committed
471 472 473 474 475
Sun Feb 22 01:09:55 2004  Matthias Clasen  <maclas@gmx.de>

	* io-bmp.c (gdk_pixbuf__bmp_image_begin_load): Remove debugging
	code.

476 477 478 479 480 481 482
Fri Feb 20 22:25:32 2004  Matthias Clasen  <maclas@gmx.de>

	* io-bmp.c (DecodeHeader): Store and sanity-check the clrUsed field 
	from the header for use in DecodeColormap.
	* io-bmp.c (DecodeColormap): Don't read more colormap entries than
	the header says are there.  (#134235, Kazuho Okui)

483 484 485 486 487 488 489 490 491
Sun Feb  8 01:07:20 2004  Manish Singh  <yosh@gimp.org>

	* gdk-pixbuf-io.c: removed unnecessary G_OBJECT() cast checks.

	* io-jpeg.c: make the return type for to_callback_empty_output_buffer
	"boolean", which should be defined by the jpeg headers. The right
	return type for this function depends on how the jpeg library
	was built (one wonders what happens if different compilers are used).

Hans Breuer's avatar
Hans Breuer committed
492 493 494 495
2004-01-28  Hans Breuer  <hans@breuer.org>

	* gdk_pixbuf.def : updated externals

Matthias Clasen's avatar
Matthias Clasen committed
496 497 498 499 500 501 502
Sat Jan 17 23:02:55 2004  Matthias Clasen  <maclas@gmx.de>

	The second part of the fix for #114351 (see also 
	../Changelog)
	
	* gdk-pixbuf-i18n.h (P_): Use translation domain gtk20-properties.

503 504 505 506 507 508 509 510 511
Sat Jan 17 00:01:51 2004  Matthias Clasen  <maclas@gmx.de>

	The first part of the fix for #114351 (see also
	../ChangeLog): 

	* gdk-pixbuf-i18n.h: Define P_() for property blurbs and nicks.

	* gdk-pixbuf.c:  Mark property blurbs and nicks with P_().

512 513 514 515 516
Thu Jan  8 22:01:14 2004  Matthias Clasen  <maclas@gmx.de>

	* queryloaders.c (loader_sanity_check): Don't use bitwise operators
	on booleans.  (#130923, reported by Telsa Gwynne, fix by Dave Jones)

517 518
2004-01-06  Federico Mena Quintero  <federico@ximian.com>

519 520 521 522
	* gdk-pixbuf-io.c (gdk_pixbuf_save): Escape an ampersand in the
	documentation comment, and hack around an empty line in the code
	example so that gtk-doc won't put a <para> due to it.

523 524 525
	* gdk-pixbuf.c (gdk_pixbuf_get_pixels): Link to the documentation
	section on image data.

526 527 528 529 530
2004-01-06  Federico Mena Quintero  <federico@ximian.com>

	* gdk-pixdata.c (gdk_pixbuf_new_from_inline): Fix example in
	documentation comment.  Fixes #130701.

531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
Wed Jan  7 02:41:14 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_bufferv): 
	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_buffer): 
	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_callbackv): 
	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_callback): New public API
	to save pixbufs to non-file locations.  (#82203, Tim Evans)

	* gdk-pixbuf.h:
	* gdk-pixbuf.def: Declare the new public API.

	* gdk-pixbuf-io.h: Add save_to_callback to the module interface.
	
	* io-jpeg.c: 
	* io-png.c: Implement save_to_callback.

	* gdk-pixbuf-io.c (gdk_pixbuf_savev): 
	* gdk-pixbuf-io.c (gdk_pixbuf_save): Update documentation. 

	* gdk-pixbuf-io.c (gdk_pixbuf_real_save): Support saving via
	image_module->save_to_callback.

	* gdk-pixbuf-io.c (gdk_pixbuf_real_save_to_callback): New generic
	save_to_callback function which falls back to image_module->save 
	on a temp file.
	
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581
Wed Jan  7 01:17:36 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_size_func): 
	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_set_size): 
	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_init): Make it possible
	to call gdk_pixbuf_loader_set_size (loader, 0, 0) by changing
	the initial values of priv->width/height to -1.
	
	* io-tiff.c (tiff_image_parse): 
	* io-ras.c (RAS2State): 
	* io-pnm.c (gdk_pixbuf__pnm_image_load_increment): 
	* io-pcx.c (gdk_pixbuf__pcx_load_increment): 
	* io-jpeg.c (gdk_pixbuf__jpeg_image_load_increment): 
	* io-png.c (png_info_callback): 
	* io-ico.c (DecodeHeader): 
	* io-bmp.c (DecodeHeader): Call size_func once the size is known,
	even if the module can't make use of the scaling information. If
	size_func returns 0, don't allocate a pixbuf and return, if 
	necessary with an error.

	* gdk-pixbuf.h: 
	* gdk-pixbuf-io.c (gdk_pixbuf_get_file_info): A new function 
	to determine the type and size of an image file without loading
	it completely.  (#53725)

582 583 584 585 586 587 588 589 590
Sun Jan  4 00:44:57 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf.c (gdk_pixbuf_class_init): Turn the pixbuf 
	attributes into (construct-only, but always readable) 
	properties.  (#130196)

	* gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Set properties
	in g_object_new().

591 592 593 594 595 596 597
Mon Dec 22 01:35:36 2003  Matthias Clasen  <maclas@gmx.de>

	* Makefile.am (gdk-pixbuf.loaders): Fix building with
	--disable-modules --with-included-loaders, create an 
	empty gdk-pixbuf.loaders file.  (#124496, Arno Charlet, fix 
	proposed by Owen Taylor)

598 599 600 601
Thu Dec 11 01:57:05 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): Move
	the documentation for signals inline, to get proper parameter
602
	documentation.  (#128977) 	
603

604 605 606 607 608 609
Sat Nov 15 00:26:19 2003  Matthias Clasen  <maclas@gmx.de>

	* queryloaders.c (loader_sanity_check): Check that the mask
	is NULL or a string of the same length consisting entirely of
	' ', '!', 'x', 'z', 'n'. 

Matthias Clasen's avatar
Matthias Clasen committed
610 611 612 613
Mon Nov 10 00:17:52 2003  Matthias Clasen  <maclas@gmx.de>

	* Makefile.am (install-data-local): Typo fix in warning.

614 615 616 617 618 619 620
Sun Nov  9 23:07:05 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): If neither
	load nor begin_load are available fall back to load_animation 
	and use gdk_pixbuf_animation_get_static_image() to obtain a 
	pixbuf. Inefficient, but at least doesn't crash.

621 622 623 624 625 626 627 628 629
Sun Nov  9 21:56:20 2003  Matthias Clasen  <maclas@gmx.de>

	* queryloaders.c (write_loader_info): New function to write 
	out the information for a single loader, factored out of 
	query_module().
	(loader_sanity_check): New function to perform
	sanity checks on a loader.
	(query_module): Use the new functions.

630 631 632 633 634
Thu Nov  6 00:27:27 2003  Matthias Clasen  <maclas@gmx.de>

	* io-pcx.c (gdk_pixbuf__pcx_load_increment): Fold two similar
	strings into on.  (#126204, Danilo Segan)

635 636 637 638 639
2003-09-19  Matthias Clasen  <maclas@gmx.de>

	* io-tga.c (try_preload): Remove a pointless check.  
	(#122710, Kjartan Maraas)

640 641 642 643 644 645
Mon Aug 18 10:25:29 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixdata.c (gdk_pixdata_to_csource): Add the correct
	alignment magic for Sun compiler and for GCC to get
	the strings aligned. (Patch from Brian Cameron, #117217)

646 647 648 649 650
2003-08-14  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixdata.c (gdk_pixdata_to_csource): Improve doc comment
	wording. (#119754, Doug Quale)

651 652 653
2003-08-03  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf.c (gdk_pixbuf_get_rowstride): 
Matthias Clasen's avatar
Matthias Clasen committed
654 655
	* gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Clarify misleading
	explanation of rowstride.  (#119000)
656

657 658
2003-07-24  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
659 660
	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Preserve the
	aspect ratio.  (#118145, Owen Taylor) 
661

662 663
2003-07-23  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
664 665
	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Close loader
	before unref'ing it.  (#118146, Owen Taylor)
666

Hans Breuer's avatar
updated  
Hans Breuer committed
667 668 669 670 671 672
2003-03-01  Hans Breuer  <hans@breuer.org>

	* makefile.msc : updated

	* gdk_pixbuf.def : export a bunch of new functions

673 674
2003-07-18  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
675 676 677
	* pixops/pixops.c (correct_total): Split correction into multiple
	pieces if no single weight is large enough to apply the unsplit
	correction.  (#117431, problem reported by Tomas gren) 
678

679 680 681
2003-07-13  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf.h: 
Matthias Clasen's avatar
Matthias Clasen committed
682 683 684
	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): New function
	to load an image from a file at a  specified size.  (#105326, Dom
	Lachowicz) 
685

686 687
2003-07-11  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
688 689
	* queryloaders.c (query_module): Handle absolute filenames
	properly. (#117170, Jens Elkner) 
690 691

	* gdk-pixbuf-io.c: Mention that NULL-terminated arrays returned by 
Matthias Clasen's avatar
Matthias Clasen committed
692 693
	gdk_pixbuf_format_get_mime_types() and
	gdk_pixbuf_format_get_extensions() must be freed with g_strfreev().
694

695 696 697 698
2003-07-04  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.c: Document ICO save parameters.

Matthias Clasen's avatar
Matthias Clasen committed
699 700 701 702 703
	* io-ico.c: Support saving of ICOs and CURs. Currently, only
	single-image ICOs are produced, but the code for multi-image ICOs
	is already in place. The saver understands the options "depth"
	(can be "32", "24" or "16") and "x_hot"/"y_hot" for hotspot
	coordinates of CURs. 
704

705 706
2003-06-28  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
707 708 709 710 711 712 713 714
	* io-ico.c (DecodeHeader): Stop discriminating against 32bpp ICOs
	a): Use the byte size of the image as a heuristic when selecting
	the bitmap  to load - this lets us select 32bpp bitmaps which come
	after a 8bpp bitmap. 
	(OneLineTransp): Stop discriminating against 32bpp ICOs b): Don't
	overwrite the alpha channel of 32bpp ICOs. 
	(gdk_pixbuf__ico_image_load_increment): Stop decoding the header
	unnecessarily. 
715

716 717 718 719 720
Fri Jun 27 03:56:59 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Make
	it compile with C89 compilers.

721 722
2003-06-23  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
723 724 725
	* io-gif.c (gif_get_frame_info): Remove the pointless refusal to
	load images with dubious disposal mode on the first frame. Just
	ignore it, as everybody else does. 
726 727

2003-06-22  Matthias Clasen  <maclas@gmx.de>
728

Matthias Clasen's avatar
Matthias Clasen committed
729 730 731
	* gdk-pixbuf-loader.[hc] (gdk_pixbuf_loader_new_with_mime_type):
	New function to obtain a loader for a specific mime type.
	(#105324, Dom Lachowicz) 
732

Matthias Clasen's avatar
Matthias Clasen committed
733 734 735
	* io-gif.c (gif_get_extension): Reset block_count to 0 for all
	application extensions, otherwise the data blocks of unknown
	extensions are not propertly skipped.  
736

Matthias Clasen's avatar
Matthias Clasen committed
737 738
	Second half of the fix for #106962, handle frames extending beyond
	the logical screen: 
739
	
Matthias Clasen's avatar
Matthias Clasen committed
740 741 742 743 744 745
	* io-gif.c (clip_frame): New helper function to clip a rectangle
	to the logical screen size of the gif. 
	(maybe_update): New helper function to call update_func only if
	the rectangle is not completely off-bounds. 
	(gif_get_lzw): Read frames extending outside the logical screen
	size, but be careful clip to the logical screen size 
746 747
	when operating on the composite pixbuf and when calling update_func.
	(gif_init): Set the animation size to the logical screen size.
Matthias Clasen's avatar
Matthias Clasen committed
748 749
	(gif_get_frame_info): Don't refuse to load images with frames
	extending beyond the logical screen size. 
750

Matthias Clasen's avatar
Matthias Clasen committed
751 752 753
	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Be
	careful to clip all rectangles to the logical screen size, also
	handle the fact that frames may be completely off-bounds. 
754

Matthias Clasen's avatar
Matthias Clasen committed
755 756
2003-06-21  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
757 758
	* io-gif.c: Merge from 2.2: Fix update_func() arguments and accept
	empty frames.  (#106962)
Matthias Clasen's avatar
Matthias Clasen committed
759 760 761 762 763 764

2003-06-17  Matthias Clasen  <maclas@gmx.de>

	* Makefile.am (man_MANS): Removed, man pages are now installed
	from docs/reference/gdk-pixbuf.

765 766 767 768 769
2003-06-03  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixdata.c (gdk_pixbuf_new_from_inline): Document
	data_length == -1, add an example.  (#97290)

770 771 772 773 774
2003-06-01  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixdata.h (struct _GdkPixdata): Fix misleading documentation
	of rowstride.  (#113924, Noah Levitt)

775 776 777 778 779 780
2003-05-27  Matthias Clasen  <maclas@gmx.de>

	* io-wbmp.c: Remove dubious bitfields of
	unspecified signedness.  (#112919, Morten Welinder)gdk-p

	* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
Matthias Clasen's avatar
Matthias Clasen committed
781 782
	of g_string_new ("") by g_string_new (NULL). (#106975, Morten
	Welinder) 
783

784 785 786 787 788 789 790 791
2003-05-21  Matthias Clasen  <maclas@gmx.de>

	* pixbufloader_pcx.def: 
	* io-pcx.c: A loader for PCX files.  (#113035, Josh Beam)

	* gdk-pixbuf-io.c: 
	* Makefile.am: Add PCX loader.

792 793 794 795 796 797 798 799 800 801 802 803
2003-05-19  Matthias Clasen  <maclas@gmx.de>

	Improve progressive loading from slow sources:  (#107368)
	
	* io-gif-animation.c (gdk_pixbuf_gif_anim_get_iter): Initialize
	first_loop_slowness. 
	(gdk_pixbuf_gif_anim_iter_advance): Don't wrap during loading if
	the datasource falls behind the speed of the display.

	* io-gif-animation.h: Add a loading flag to GdkPixbufGifAnim and  
	first_loop_slowness to GdkPixbufGifAnimIter.

804 805 806 807 808
Wed May 14 18:24:50 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixdata.c (gdk_pixdata_deserialize): Add a 
	(gint32 *) => (guint32 *) cast. (#108615, Rick Jones)

809 810 811 812 813 814 815 816 817 818 819
2003-04-24  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): 
	(gdk_pixbuf_loader_new_with_type): 
	(gdk_pixbuf_loader_close): 
	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): 
	(gdk_pixbuf_save): 
	(gdk_pixbuf_savev): 
	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): 
	Add sanity checks for GError handling.  (#108345) 

820 821 822 823 824 825 826 827 828 829
Tue Apr  1 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>

	* pixops/pixops.c (make_weights): Exploit the fact that all
	our filters are separable to simplify the calculation of
	the weight tables. (Based on a patch from Brian Cameron.)

	* pixops/Makefile.am pixbuf-transform-math.ltx: 
	Add a short article describing how the math in pixops.c
	works.

830 831
2003-03-21  Matthias Clasen  <maclas@gmx.de>

832 833 834
	* gdk-pixbuf-animation.c (gdk_pixbuf_non_anim_get_type): Add
	missing static.  (#108614)

835 836 837 838
	* io-jpeg.c (gdk_pixbuf__jpeg_image_begin_load): 
	* io-ico.c (gdk_pixbuf__ico_image_stop_load): Add missing static
	qualifiers apparently causing problems on some platforms. (#108617)

839 840 841 842 843
2003-03-11  Matthias Clasen  <maclas@gmx.de>

	* io-ico.c (DecodeHeader): Calculate LineWidth for 16bpp from
	width, like for the other depths.  (noticed by Marijn Ros)

844 845 846 847 848
2003-03-08  Matthias Clasen  <maclas@gmx.de>

	Bug #107664 continued: 
	
	* io-xpm.c (find_color): Fix 0/FALSE confusion
Matthias Clasen's avatar
Matthias Clasen committed
849 850
	* gdk-pixbuf.c (gdk_pixbuf_get_has_alpha): Fix -1/gboolean
	confusion. 
851

852 853
2003-03-06  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
854 855
	* io-gif.c (gif_read): Fix 0/FALSE confusion (#107664, Morten
	Welinder) 
856

857 858 859 860
2003-02-20  Matthias Clasen  <maclas@gmx.de>

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): 
	Always clear the initial frame and "disposed" areas with
Matthias Clasen's avatar
Matthias Clasen committed
861
	transparent pixels, no matter whether the frame has transparency 
862 863
	or not.  (#55502)

864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
2003-02-18  Matthias Clasen  <maclas@gmx.de>

	* io-tga.c (pixbuf_flip_row): 
	(pixbuf_flip_vertically): Auxiliary functions used to implement
	support for arbitrary origins.
	(parse_data_for_row_pseudocolor): 
	(parse_data_for_row_truecolor): 
	(parse_data_for_row_grayscale): 
	(parse_data_for_row): 
	(fill_in_context): Remove the check for upper-left origin.
	(parse_rle_data): Support arbitrary origins. (#105912)

	* io-tga.c (fread_check): 
	(fseek_check): 
	(get_header_from_file): 
	(get_colormap_from_file): 
	(get_image_pseudocolor): 
	(swap_channels_pixbuf): 
	(get_image_truecolor): 
	(get_image_grayscale): 
	(gdk_pixbuf__tga_load): Remove the non-incremental load
	implementation, since we have generic_image_load () now.

	(gdk_pixbuf__tga_stop_load): Fix a potential crash discovered by
	pixbuf-lowmem.

890 891 892 893 894 895 896 897 898 899 900
2003-02-14  Matthias Clasen  <maclas@gmx.de>

	* io-tga.c (try_preload): 
	(gdk_pixbuf__tga_load): Actually reject images with origin
	not in the upper-left corner.  (#105912)  

2003-02-06  Matthias Clasen  <maclas@gmx.de>

	* queryloaders.c (query_module): Better error message if
	module_open() fails.  (#105349, Tim Mooney)

901 902 903 904 905 906 907 908 909
Mon Jan 27 17:10:30 2003  Owen Taylor  <otaylor@redhat.com>
 
 	* Makefile.am (gdk-pixbuf.loaders): Rewrite to run
 	on the .la files rather than looking for .so files.
 	(#102142, Martin Gansser)
 
 	* Makefile.am: Don't build gdk-pixbuf.loaders when
 	cross-compiling.
 
910 911 912 913 914 915
2003-01-05  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (gdk-pixbuf.loaders): Use @SOEXT@ in the find command.

	* gdk_pixbuf.def: Add gdk_pixbuf_loader_set_size.

916 917 918 919 920
2003-01-03  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Don't crash if
	gdk-pixbuf.loaders file is missing.  (#102222)

Matthias Clasen's avatar
Matthias Clasen committed
921 922 923 924 925
2002-12-08  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-animation.h: 
	* gdk-pixbuf-io.h: Add /*< public|private >*/ markers.

926 927 928 929 930
Sat Dec  7 10:14:05 2002  Owen Taylor  <otaylor@redhat.com>

	* Makefile.am (gdk-pixbuf.loaders): Make gdk-pixbuf.loaders
	also depend gdk-pixbuf-query-loaders. (#97096, Daniel Elstner)

931 932 933 934
2002-12-05  Matthias Clasen  <maclas@gmx.de>

	* io-ico.c: Remove leftover debug output.  (#100357, Owen Taylor)

935 936 937 938 939
2002-12-04  Bastien Nocera  <hadess@hadess.net>

	* io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of
	WORDS_BIGENDIAN which isn't set by configure.in

Matthias Clasen's avatar
Matthias Clasen committed
940 941 942 943 944
2002-11-29  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-animation.c: 
	* gdk-pixbuf.c: Add deprecation docs. 

Matthias Clasen's avatar
Matthias Clasen committed
945 946 947 948 949 950 951 952
2002-11-28  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf/gdk-pixbuf-io.c:
	* gdk-pixbuf/gdk-pixbuf-loader.c:
	* gdk-pixbuf/gdk-pixbuf.c: Document 2.2 API additions. I'm not
	going to list all individual functions here; if you want to see
	the list, grep for "Since: 2.2".

953 954 955 956 957
Fri Nov  8 19:06:07 2002  Owen Taylor  <otaylor@redhat.com>

	* Makefile.am (gdk-pixbuf.loaders): Make gdk-pixbuf.loaders
	file depend on the loaders (#97096, Jeff Waugh)

958 959 960 961 962
Wed Nov  6 15:19:53 2002  Owen Taylor  <otaylor@redhat.com>
 
 	* io-gif.c (CHECK_LZW_SP): Fix trailing semicolon on macro,
 	clean up a bit.
 
Matthias Clasen's avatar
Matthias Clasen committed
963 964 965 966
2002-11-05  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c: Reindent to follow the gdk-pixbuf indentation.  

967 968 969 970 971
Tue Nov  5 14:16:17 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Fix 
	leaked pixbuf reference (#96823, Morten Welinder)

972 973 974 975 976
2002-10-23  Matthias Clasen  <maclas@gmx.de>

	* io-gif.c (lzw_read_byte): Check for stack overflow throughout.
	(#91808, Elliot Lee)

977 978 979 980 981 982 983 984 985 986 987 988 989
2002-10-21  Matthias Clasen  <maclas@gmx.de>

	Support the Netscape application extension for gif animations 
	(#95060):
	
	* io-gif-animation.h: 
	* io-gif-animation.c (gdk_pixbuf_gif_anim_iter_advance): 
	Add loop count to GdkPixbufGifAnim and use it in the advance
	method of GdkPixbufGifAnimIter.
	
	* io-gif.c (gif_get_extension): Parse Netscape application
	extension block and set the animation loop count. 

Matthias Clasen's avatar
Matthias Clasen committed
990 991 992 993 994 995 996 997
2002-10-11  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_format): Remove
	unused variable.

	* gdk-pixbuf-io.h: Remove unused typedef 
	GdkPixbufModuleGetSignatureFunc.

jacob berkman's avatar
jacob berkman committed
998 999 1000 1001
2002-10-04  jacob berkman  <jacob@ximian.com>

	* queryloaders.c (query_module): make legal C

1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
2002-10-04  Matthias Clasen  <maclas@gmx.de>

	* Makefile.am gdk-pixbuf-animation.c gdk-pixbuf-data.c 
	gdk-pixbuf-io.c gdk-pixbuf-io.h gdk-pixbuf-loader.c 
	gdk-pixbuf-loader.h gdk-pixbuf-private.h gdk-pixbuf.h 
	gdk-pixdata.c io-ani-animation.h io-ani.c io-bmp.c 
	io-gif-animation.c io-gif-animation.h io-gif.c io-ico.c 
	io-jpeg.c io-png.c io-pnm.c io-ras.c io-tga.c io-tiff.c 
	io-wbmp.c io-xbm.c io-xpm.c pixbufloader_ani.def 
	pixbufloader_bmp.def pixbufloader_gif.def pixbufloader_ico.def 
	pixbufloader_jpeg.def pixbufloader_png.def 
	pixbufloader_pnm.def pixbufloader_ras.def pixbufloader_tga.def 
	pixbufloader_tiff.def pixbufloader_wbmp.def 
	pixbufloader_xbm.def pixbufloader_xpm.def test-gdk-pixbuf.c 
	gdk-pixbuf-animation.h queryloaders.c: Support for separately
	installed loaders.  (#77486)

Owen Taylor's avatar
Owen Taylor committed
1019 1020 1021 1022 1023
Thu Oct  3 18:25:57 2002  Owen Taylor  <otaylor@redhat.com>

	* io-jpeg.c (gdk_pixbuf__jpeg_image_save): 
	Fix memory leak. (#94399)

1024 1025 1026 1027 1028 1029
Tue Oct  1 17:35:43 2002  Owen Taylor  <otaylor@redhat.com>

	* gdkpixdata.c: Patch from Andy Wingo to always 
	escape ? to avoid accidentally generating trigraphs
	in the output (#94631)

1030 1031 1032 1033 1034
2002-09-28  Tor Lillqvist  <tml@iki.fi>

	* pixops/*.S: Don't use .type on Cygwin, either (#91597, Masahiro
	Sakai).

1035 1036 1037 1038 1039
2002-09-27  Federico Mena Quintero  <federico@ximian.com>

	* io-ico.c (gdk_pixbuf__ico_image_begin_load): Free the context if
	we cannot allocate the HeaderBuf.

1040 1041 1042 1043 1044
2002-09-27  Federico Mena Quintero  <federico@ximian.com>

	* io-bmp.c (OneLine): Fix the update region notification to handle
	top-to-bottom and bottom-to-top BMPs correctly.

1045 1046 1047 1048 1049
2002-09-19  Matthias Clasen  <maclas@gmx.de>

	* Revert the previous change; the symbols need to be exported 
	to be usable from dlopened modules.
	
1050 1051 1052 1053 1054 1055 1056
2002-09-18  Matthias Clasen  <maclas@gmx.de>

	* io-xpm.c, io-xbm.c, io-ico.c, io-ani.c, io-png.c,
	gdk-pixbuf.c, gdk-pixbuf-animation.c, gdk-pixbuf-loader.c,
	gdk-pixbuf-private.h: _-prefix gdk_pixbuf_non_anim_new and
	gdk_pixbuf_set_option. Adjust all callers. 

Hans Breuer's avatar
Hans Breuer committed
1057 1058 1059 1060
2002-09-14  Hans Breuer  <hans@breuer.org>

	* pixops/Makefile.am : added makefile.msc to EXTRA_DIST

1061 1062 1063 1064 1065 1066
2002-09-12  Matthias Clasen  <maclas@gmx.de>

	* io-gif-animation.h: 
	* gdk-pixbuf.h: Move GdkPixbufFrame from the public header to
	the gif-animation-specific private header.  (#91929)

1067 1068 1069 1070 1071
2002-09-12  Federico Mena Quintero  <federico@ximian.com>

	* io-jpeg.c (gdk_pixbuf__jpeg_image_load): Unref the pixbuf if we
	hit an unsupported colorspace.

1072 1073
2002-09-06  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
1074 1075 1076 1077
	* io-ani.c, io-ani-animation.h, io-ani-animation.c, 
	pixbufloader_ani.def, Makefile.am, gdk-pixbuf-io.c: New loader,
	for .ANI animations.
	
1078 1079 1080 1081 1082
	* io-xpm.c (pixbuf_create_from_xpm): 
	* io-xbm.c (gdk_pixbuf__xbm_image_load_real): 
	* io-ico.c (DecodeHeader): Attach hotspot coordinates to the
	pixbuf as options "x_hot" and "y_hot". 

1083 1084 1085 1086 1087 1088 1089 1090 1091
2002-09-04  Matthias Clasen  <maclas@gmx.de>

	* 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)

1092 1093 1094 1095 1096
2002-08-25  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (libgdk_pixbuf_2_0_la_DEPENDENCIES): Add
	gdk_pixbuf_win32res_lo. (#87101, J. Ali Harlow)

1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109
2002-08-22  Matthias Clasen  <maclas@gmx.de>

	* 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)

1110 1111 1112 1113 1114
2002-07-31  Sven Neumann  <sven@gimp.org>

	* gdk-pixdata.c (gdk_pixdata_to_csource): free the result of
	gdk_pixdata_serialize() (bug #89411).

1115 1116 1117 1118 1119
Mon Jul 29 23:06:10 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixbuf-scale.c: Fix some warnings by adding
	casts to PixopsInterpType. (#85839, David L. Cooper, II.)

Matthias Clasen's avatar
Matthias Clasen committed
1120 1121 1122 1123
2002-07-16  Matthias Clasen  <maclas@gmx.de>

	* io-ras.c (DoCompressed): Avoid unnecessary casting.

1124 1125
2002-07-07  Matthias Clasen  <maclas@gmx.de>

1126 1127 1128 1129 1130 1131 1132
	* 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)
	
1133 1134 1135
	* io-ico.c (DecodeHeader): Correct computation of image height.
	(OneLine): Correct update notification.

1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164
	Load-at-size functionality  (#53726): 
	
	* gdk-pixbuf-io.h (ModuleSizeFunc): New. 
	(_GdkPixbufModule): Prepend a ModuleSizeFunc to the 
	begin_load arguments. Adjust all modules.
	* gdk-pixbuf-loader.c (struct GdkPixbufLoaderPrivate): Add
	fields width, height, size_fixed, need_scale.
	(gdk_pixbuf_loader_class_init): Add size_prepared signal.
	(gdk_pixbuf_loader_set_size): New function.
	(gdk_pixbuf_loader_size_func): ModuleSizeFunc which gets
	passed to the module, emits size_prepared.
	(gdk_pixbuf_loader_prepare): Call gdk_pixbuf_loader_size_func
	if necessary, only emit area_prepared if no separate scaling
	is required.
	(gdk_pixbuf_loader_update): Only emit area_updated if no 
	separate scaling is required.
	(gdk_pixbuf_loader_load_module): Add size_func as first argument.
	(gdk_pixbuf_loader_close): If necessary scale the image
	to the desired size and emit area_prepared and area_updated.
	* gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Add
	size_prepared signal.
	(gdk_pixbuf_loader_set_size) New API.
	* gdk-pixbuf-marshal.list: Add VOID:INT,INT.
	* io-jpeg.c: User cinfo->output_width/height instead of 
	cinfo->image_width/height throughout when adressing the pixbuf.
	(gdk_pixbuf__jpeg_image_load_increment): Call size_func, and
	find the nearest possible output size which libjpeg can produce
	that is still larger than the desired size.
	
1165 1166 1167 1168 1169 1170 1171 1172 1173
2002-07-06  Matthias Clasen  <maclas@gmx.de>

	* io-tiff.c (tiff_set_error): Handle global_error == NULL
	better.
	(tiff_image_parse): Don't trust TIFFRGBAImageBegin to set
	the "put" routine.  (Fixes #87384)
	(gdk_pixbuf__tiff_image_stop_load): Don't call TIFFClose too 
	early.

1174 1175
2002-07-02  Matthias Clasen  <maclas@gmx.de>

1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187
	Miscellaneous bmp loader fixes (#85448, #86286, #86287):
	
	* 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.

1188 1189 1190 1191 1192 1193 1194 1195 1196
	Support for compressed ras images (#84994):
	
	* 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.

1197 1198 1199 1200 1201 1202 1203
	Better colorspace support for the jpeg loader (#61211):
	
	* 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.

1204 1205
	All of this needs to be merged to GNOME 1.4 gdk-pixbuf.
	
Sven Neumann's avatar
Sven Neumann committed
1206 1207 1208 1209
2002-06-28  Sven Neumann  <sven@gimp.org>

	* gdk-pixbuf-csource.c (print_blurb): converted a Tab to spaces.

1210 1211 1212 1213 1214 1215 1216 1217
Thu Jun 13 18:11:11 2002  Owen Taylor  <otaylor@redhat.com>

	* pixops/pixops.c: Fix problem where when no alpha was
	involved, we scaled rather than composited, but then
	went ahead and composited anyways. (#76958, Patch
	from Matthias Clasen). Needs to be merged to GNOME
	1.4 gdk-pixbuf.

1218 1219 1220 1221 1222
2002-06-13  Matthias Clasen  <maclas@gmx.de>

	* io-jpeg.c: Use libjpeg in buffered-image mode in order to
	incrementally display incrementally loaded progressive jpegs.

1223 1224 1225 1226 1227 1228 1229 1230 1231
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.

1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
2002-06-01  Matthias Clasen  <maclas@gmx.de>

	* 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.

1242 1243 1244 1245 1246 1247 1248
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.

1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263
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!]

Matthias Clasen's avatar
Matthias Clasen committed
1264 1265 1266 1267 1268
2002-05-18  Matthias Clasen  <maclas@gmx.de>

	* io-tiff.c (tiff_image_parse): fix packing order on bigendian 
	systems.  (#81702)

1269 1270 1271 1272 1273
Thu May 16 15:17:30 2002  Owen Taylor  <otaylor@redhat.com>

	* pixops/pixops.c: Patch from Matthias Clasen to fix some typos 
	(#77246)

Owen Taylor's avatar
Owen Taylor committed
1274 1275 1276 1277 1278
Thu May 16 15:02:46 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixdata.c (gdk_pixdata_to_csource): Fix 64-bit warning.
	(#78258)

1279 1280 1281 1282 1283 1284
2002-05-07  Michael Natterer  <mitch@gimp.org>

	* gdk-pixbuf/Makefile.am: build the static pixbuf loaders
	conditionally like the dynamic ones so --without-lib<foo> is
	honored when building with --disable-modules. (#66867)

1285 1286 1287 1288 1289 1290
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 

1291 1292 1293 1294 1295 1296 1297 1298 1299
2002-04-24  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.c (gdk_pixbuf_save): Remove the ISO8859-1
	restriction from the description of png tEXt parameters.

	* io-png.c (png_text_to_pixbuf_option): 
	(gdk_pixbuf__png_image_save): If libpng supports it,
	store and retrieve non-ISO8859-1 text as UTF-8.  (#76172)

Matthias Clasen's avatar
Matthias Clasen committed
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317
2002-04-11  Matthias Clasen  <maclas@gmx.de>

	More fixes for #77807:
	
	* 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.

1318 1319 1320 1321 1322 1323
2002-04-09  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module): Use 
	priv->image_module->module_name instead of image_type which may 
	be NULL.

1324 1325 1326 1327 1328 1329
2002-04-06  Matthias Clasen  <maclas@gmx.de>

	* io-png.c (gdk_pixbuf__png_image_load): Restructured to use
	gdk_pixbuf_new instead of manually allocating image storage. This
	gives us a good rowstride and overflow checks.  (#77807)

1330 1331 1332 1333 1334 1335 1336
2002-04-05  Matthias Clasen  <maclas@gmx.de>

	* io-tiff.c (tiff_image_parse): Avoid allocating an extra copy of
	the image by using a TIFFRGBAImage{Begin,Get,End} with suitable
	put functions instead of TIFFRGBAImage. And check image dimensions
	for overflow. 

Matthias Clasen's avatar
Matthias Clasen committed
1337 1338 1339 1340
2002-04-03  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_type): Fix a doc typo.

1341 1342 1343 1344 1345 1346
2002-03-29  Matthias Clasen  <maclas@gmx.de>

	* io-png.c (png_simple_error_callback): libpng error handlers must
	not return to their callers, thus longjmp out. This prevents
	annoying stderr output from the default error handler.

Matthias Clasen's avatar
Matthias Clasen committed
1347 1348 1349 1350 1351 1352 1353 1354
2002-03-27  Matthias Clasen  <maclas@gmx.de>

	* 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.

1355 1356 1357 1358 1359 1360
2002-03-27  Matthias Clasen  <maclas@gmx.de>

	* io-png.c (gdk_pixbuf__png_image_load,
	gdk_pixbuf__png_image_begin_load): Make libpng use g_malloc
	instead of system malloc. 

Matthias Clasen's avatar
Matthias Clasen committed
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
2002-03-26  Matthias Clasen  <maclas@gmx.de>

	* 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.

1371 1372 1373 1374 1375 1376 1377
2002-03-25  Matthias Clasen  <maclas@gmx.de>

	* 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.

1378 1379 1380 1381 1382 1383
2002-03-23  Matthias Clasen  <maclas@gmx.de>

	* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment):
	context->updated_func is NULL during a nonincremental load.
	(gdk_pixbuf__wbmp_image_load): Stop reading after the first error.

1384 1385 1386 1387 1388 1389 1390
2002-03-18  Matthias Clasen  <maclas@gmx.de>

	* io-tga.c: Fix assumptions on rowstride by manually allocating a
	contiguous pixel buffer. Catch buffer overruns in RLE-modi. 
	Support grayscale + alpha (which can be written, but not read (!)
	by the Gimp). 

1391 1392 1393 1394
2002-03-15  Matthias Clasen  <maclas@gmx.de>

	* io-gif.c (gif_get_frame_info): Catch invalid frame dimensions.

1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406
2002-03-13  Matthias Clasen  <maclas@gmx.de>

	* test-images.h: Add valid_ras_test and invalid_bmp_1.

	* test-loaders.c (main): Add random tests for ras and pnm and an
	invalid bmp which was a crasher until my 2002-03-12 commit.

	* io-pnm.c (gdk_pixbuf__pnm_image_load_increment): Don't unref the
	pixbuf on errors.

	* io-ras.c: Handle some errors.

1407 1408 1409 1410 1411
2002-03-12  Sven Neumann  <sven@gimp.org>

	* gdk-pixbuf.c (gdk_pixbuf_fill): use sequential writes instead of
	calling memcpy(). Simpler and potentially faster. (#70332)

1412 1413 1414 1415 1416
2002-03-12  Matthias Clasen  <maclas@gmx.de>

	* io-bmp.c (DecodeHeader): Replace a g_assert_not_reached ()
	which could actually be reached by a proper error status return.

Matthias Clasen's avatar
Matthias Clasen committed
1417 1418 1419 1420 1421 1422
2002-03-05  Matthias Clasen  <maclas@gmx.de>

	* test-loaders.c, test-images.h: More random tests. 

	* io-bmp.c (DecodeHeader): Fail gracefully on OOM here.

1423 1424 1425 1426 1427 1428
Tue Mar  5 10:39:03 2002  Owen Taylor  <otaylor@redhat.com>

	* Makefile.am (loaderdir): Put the modules into the
	GTK_BINARY_VERSION directory for consistency with
	immodules and theme engines.

1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439
Sat Mar  2 22:11:10 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixbuf-io.c (_gdk_pixbuf_load_module): If we
	can't load the module using the g_module_build_path()
	filename, try loading it as a .la file.

	* test-loaders.c: Look for modules in current directory
	rather than .libs, so we find the right .la files.

	* test-loaders.c: Back out some accidental commits.

1440 1441 1442 1443 1444
Sat Mar  2 21:28:03 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixbuf.c (gdk_pixbuf_new): Bullet-proof against integer
	overflow.

Tor Lillqvist's avatar
Remove.  
Tor Lillqvist committed
1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455
2002-03-03  Tor Lillqvist  <tml@iki.fi>

	* gtk-pixbuf.rc.in: Remove.

	* gdk_pixbuf.rc.in: Name like this instead (wrong name used by
	mistake by Hans).

	* makefile.msc: Corresponding changes.

	* Makefile.am: Use gdk_pixbuf.rc on Win32. Distribute it.

1456 1457 1458 1459 1460
2002-02-28  Matthias Clasen  <maclas@gmx.de>

	* pixops/pixops.c (tile_make_weights): Move the call to
	correct_total() to the right spot. (#72732)

1461 1462 1463 1464
Wed Feb 27 18:33:04 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk-pixdata.c (gdk_pixdata_to_csource): Use {} not
	() to group around string assigned to char[]. (#72767,
1465
	Tomas gren)
1466

1467 1468 1469 1470 1471
2002-02-21  Havoc Pennington  <hp@pobox.com>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module): remove
	C++-commented debug spew, reported by David L. Cooper

1472
2002-02-15  Matthias Clasen  <maclas@gmx.de>
1473 1474 1475 1476 1477 1478 1479

	* pixops/pixops.c (correct_total): New function to make sure
	that the weights sum up to the correct total without introducing
	negative weights.
	(tile_make_weights, bilinear_make_fast_weights, 
	bilinear_make_weights): Use correct_total.

1480
2002-02-10  Matthias Clasen  <maclas@gmx.de>
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496

	* test-images.h (tiff1_test_3), test-loaders.c (main): Add a
	(#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory(). 
	
	* io-ico.c (DecodeHeader): Check that pixbuf could be allocated.

	* test-images.h (ico_test_2), test-loaders.c (main): Test the 
	previous change.

	* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Don't write 
	beyond the end of buffer if width % 8 != 0.

	* io-tga.c (try_preload): Enforce that ctx->hdr->type is one of
	the supported types, otherwise parse_data_for_row () will not make
	any progress, leading to an infinite loop.

Owen Taylor's avatar
Owen Taylor committed
1497