summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* Remove now-unnecessary cast.Darin Adler2000-02-141-1/+1
|
* Removed debugging g_print. Thanks to John Sullivan <sullivan@eazel.com>Federico Mena Quintero2000-02-021-22/+28
| | | | | | | | | | | | 2000-02-02 Federico Mena Quintero <federico@helixcode.com> * gdk-pixbuf/io-gif.c (gif_get_lzw): Removed debugging g_print. Thanks to John Sullivan <sullivan@eazel.com> for the patch. * gdk-pixbuf/testpixbuf-drawable.c (configure_cb): Get a new area of the screen when the window is resized. Thanks to David N. Welton <davidw@linuxcare.com> for pointing this out. Misc. cleanups to the rest of the file.
* Return the same pixbuf as the input parameter.Federico Mena Quintero2000-01-211-0/+1
| | | | | | | | | | 2000-01-21 Federico Mena Quintero <federico@helixcode.com> * gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_ref): Return the same pixbuf as the input parameter. * gdk-pixbuf/gdk-pixbuf-animation.c (gdk_pixbuf_animation_ref): Return the same animation as the input parameter.
* Added gdk_pixbuf_copy_area() to gdk-pixbuf-utils.c and gdk-pixbuf.h.Cody Russell2000-01-131-4/+2
| | | | Removed some unused variable warnings in gdk-pixbuf-drawable.c.
* Added scaling functions into gtk-doc framework.Owen Taylor2000-01-061-16/+7
| | | | | | | | | | | | | | | 2000-01-05 Owen Taylor <otaylor@redhat.com> * doc/Makefile.am doc/gdk-pixbuf-sections.txt doc/gdk-pixbuf.sgml doc/tmpl/scaling.sgml: Added scaling functions into gtk-doc framework. * gdk-pixbuf/gdk-pixbuf-scale.c: Documentation fixes. * gdk-pixbuf/testpixbuf-scale.c (expose_cb): Simplify a bit. * gdk-pixbuf/pixops/pixops.c (pixops_composite_color): Return immediately if scale_x or scale_y is 0.
* Added a README with a TODO and some explainations of the algorithms.Owen Taylor2000-01-051-0/+2
| | | | | | | | | | 2000-01-05 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf/pixops/README: Added a README with a TODO and some explainations of the algorithms. * gdk-pixbuf/testpixbuf-scale.c: Set a background pixmap of None to reduce flashing when resizing.
* Directory full of pixel data scaling code that will eventually migrateOwen Taylor2000-01-051-0/+163
| | | | | | | | | | | | | | | | 2000-01-05 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf/pixops/: Directory full of pixel data scaling code that will eventually migrate into libart. * configure.in acconfig.h: Add checks for MMX compiler support * gdk-pixbuf/gdk-pixbuf.h gdk-pixbuf/gdk-pixbuf-scale.c: Nice wrapper routines for the code in pixops that operate on pixbufs instead of raw data. * gdk-pixbuf/testpixbuf-scale: Test program for scaling routines.
* forgot thisJonathan Blandford1999-12-171-0/+462
|
* Filled in body of function. (rgbconvert): Added GdkColormap parameter, andMichael Zucchi1999-12-091-2/+2
| | | | | | | | | | | | | | | 1999-12-09 Michael Zucchi <zucchi@zedzone.mmc.com.au> * gdk-pixbuf/gdk-pixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Filled in body of function. (rgbconvert): Added GdkColormap parameter, and to all conversion functions also. * gdk-pixbuf/Makefile.am: Re-enabled building of textpixbuf-drawable. * gdk-pixbuf/testpixbuf-drawable.c (main): Changed to use gdk_pixbuf_get_from_drawable().
* #include <config.h>, and fix includes.Federico Mena Quintero1999-12-022-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* make the symlink. Does not work for srcdir != buildir != . Beats me why; IJonathan Blandford1999-11-222-5/+5
| | | | | | | | 1999-11-22 Jonathan Blandford <jrb@redhat.com> * configure.in (GDK_PIXBUF_DIR): make the symlink. Does not work for srcdir != buildir != . Beats me why; I can't figure it out. AC_OUTPUT_COMMANDS doesn't seem to let me substitute it correctly.
* use includes from the current directory rather then from the systemGeorge Lebl1999-11-161-2/+2
| | | | | | | | Mon Nov 15 17:18:28 1999 George Lebl <jirka@5z.com> * src/testpixbuf-drawable.c: use includes from the current directory rather then from the system include directory as gdk-pixbuf includes are not yet installed when this is compiled.
* Added testpixbuf-drawable test programCody Russell1999-11-131-0/+107
|
* Make default loading speed 40kB/s.Michael Fulbright1999-11-101-1/+1
| | | | Dr Mike
* Fixed loading of ASCII PNM files.Michael Fulbright1999-11-101-0/+4
| | | | | | | | | 1999-11-10 Michael Fulbright <drmike@redhat.com> * src/io-pnm.c (pnm_ascii_read_scanline): Fixed loading of ASCII PNM files. * src/testpixbuf.c: Added final queued draw when done loading image.
* cleanup to remove warnings.Michael Fulbright1999-11-101-1/+1
| | | | Dr Mike <drmike@redhat.com>
* Warning fixes - FedericoArturo Espinosa1999-11-101-1/+1
|
* Fixed up testpixbuf.c to simulate downloading at certain speed, setMichael Fulbright1999-11-091-37/+62
| | | | | | env var TBF_KBPS=n to get n kBytes/sec. Dr Mike
* added the update_func abilityJonathan Blandford1999-11-041-2/+0
| | | | | | 1999-11-04 Jonathan Blandford <jrb@redhat.com> * src/io-gif.c (gif_get_lzw): added the update_func ability
* fix .tiff loader.Jonathan Blandford1999-11-041-0/+13
| | | | add a testcase for the "updated_area"
* minor packing changeJonathan Blandford1999-11-031-1/+5
|
* s/lwz/lzw/gJonathan Blandford1999-11-031-1/+1
| | | | | | 1999-11-03 Jonathan Blandford <jrb@redhat.com> * src/io-gif.c (gif_prepare_lzw): s/lwz/lzw/g
* A GtkFunction needs to return a value for deterministic behaviour. AlsoElliot Lee1999-11-031-2/+4
| | | | A GtkFunction needs to return a value for deterministic behaviour. Also put dot printing back in.
* Now progressive gif loading works! It's a little slow though. )-:Jonathan Blandford1999-11-021-2/+2
| | | | | | | 1999-11-02 Jonathan Blandford <jrb@redhat.com> * src/io-gif.c (gif_main_loop): Now progressive gif loading works! It's a little slow though. )-:
* Allow using $TBF_READLEN to specify the size of the chunks that are readElliot Lee1999-11-021-12/+17
| | | | | * src/testpixbuf.c: Allow using $TBF_READLEN to specify the size of the chunks that are read from the input file.
* Added title to windows so you can identify progressive and file windows.Michael Fulbright1999-10-291-11/+22
| | | | | | | 1999-10-29 Michael Fulbright <drmike@redhat.com> * src/testpixbuf.c: Added title to windows so you can identify progressive and file windows.
* blank space cleanupsHavoc Pennington1999-10-271-1/+1
|
* Display the progressive loadHavoc Pennington1999-10-271-16/+70
| | | | | | | | | | 1999-10-27 Havoc Pennington <hp@pobox.com> * src/testpixbuf.c (main): Display the progressive load * src/io-png.c (setup_png_transformations): Break transformation code into separate function (png_info_callback): Use setup_png_transformations
* Check properly whether the XPM module has already been loadedHavoc Pennington1999-10-271-1/+1
| | | | | | | | | | | | | | | | | | | 1999-10-27 Havoc Pennington <hp@pobox.com> * src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Check properly whether the XPM module has already been loaded (gdk_pixbuf_new_from_file): Check properly if loader module was already loaded (was checking if load symbol was present in order to decide whether to re-load; should check module != NULL, then load != NULL) (image_handler_load): Check in present working directory, makes it easier to debug for now (file_formats): This array initializer was seriously on crack, was assigning a function pointer to a GModule* * src/testpixbuf.c (main): Change type of pixbuf_loader to GdkPixbufLoader* * src/io-png.c: Progressive loading stuff compiles, untested.
* gdk-pixbuf-loader.c: Fixed init function to properly initialize allMichael Fulbright1999-10-271-13/+16
| | | | | | structure members. testpixbuf.c: Added call to close and destroy pixbuf loader properly.
* more work on the incremental loadingJonathan Blandford1999-10-261-0/+20
|
* Clean up stupid increment-inside-array-dereference thingHavoc Pennington1999-10-221-0/+130
| | | | | | | | | | | | 1999-10-22 Havoc Pennington <hp@pobox.com> * src/io-xpm.c (mem_buffer): Clean up stupid increment-inside-array-dereference thing * src/testpixbuf.c: Add XPM data tests. * src/io-xpm.c: Make the XPM data buffer const, fix const correctness throughout the code.
* Removed the unref_fn field. Now all memory management of the buffer isFederico Mena Quintero1999-10-201-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-10-20 Federico Mena Quintero <federico@redhat.com> * src/gdk-pixbuf.h (GdkPixbuf): Removed the unref_fn field. Now all memory management of the buffer is done by libart. * src/gdk-pixbuf.c (gdk_pixbuf_unref): Do destruction here. Removed gdk_pixbuf_destroy, gdk_pixbuf_duplicate. * src/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Implemented in terms of the libart functions. Removed the old code. * src/gdk-pixbuf-io.c (image_handler_load): Removed the save symbols. Saving will not be implemented in GdkPixbuf. * src/io-gif.c: Removed the saving stub. (image_load): Fixed memory management to fail gracefully if we run out of memory while loading the image. Close the gif file when we are done. This still needs more error handling for the DGif functions. * src/io-jpeg.c (image_load): Some robustness fixes. * src/io-png.c: Removed the saving stuff. (image_load): Some memory management fixes. * src/io-tiff.c (image_load): Ditto. * src/io-xpm.c (pixbuf_create_from_xpm): Ditto.
* Reindented to use the GNOME Indentation.Federico Mena Quintero1999-10-181-259/+255
| | | | | | 1999-10-18 Federico Mena Quintero <federico@redhat.com> * src/*: Reindented to use the GNOME Indentation.
* Added support for loading pixbuf from rgb data in memory. AugmentedMichael Fulbright1999-10-081-11/+175
| | | | | | | | test program to demonstrate its use. Need to add support for an alpha channel next. Dr Mike <drmike@redhat.com>
* Added translation to the rotateMark Crichton1999-07-201-1/+1
| | | | Added translation to the rotate
* Ok minor changes.Mark Crichton1999-07-191-14/+3
| | | | | | | | | | | | Ok minor changes. No longer make a version.h, and cleaned up some code here and there, and added a quickie dirty-hack rotation function. However, it rotates at the origin. Is this what we want? Or do we want a rotate w.r.t. the center of the pixbuf? Anyone. Mark
* reverted the expose everything changes, I'm not sure why these went in.Larry Ewing1999-07-171-36/+39
| | | | | | | | | | | | | | | | | 1999-07-16 Larry Ewing <lewing@gimp.org> * src/testpixbuf.c (expose_func): reverted the expose everything changes, I'm not sure why these went in. (config_func): bring this up to date with the new pixbuf_scale semantics. * src/gdk-pixbuf-io.c: added a couple of warnings to the module loading code so that poeple can diagnose problems better. * src/gdk-pixbuf.c (gdk_pixbux_scale): fix the borkedness, also it no longer allocates a new pixbuf, which make things nicer for the rest of the code. Unfortunately there is still a problem with scaling rgba images.
* Added scaling of pixmaps. Currently doesn't work, however, since I'mMark Crichton1999-07-161-36/+51
| | | | | | | Added scaling of pixmaps. Currently doesn't work, however, since I'm guessing how art_rgb_affine really works. Mark
* add raph@gimp.org's fix to the jpeg indexing routineLarry Ewing1999-07-151-4/+20
| | | | | | | | | | 1999-07-15 Larry Ewing <lewing@gimp.org> * src/io-jpeg.c (image_load): add raph@gimp.org's fix to the jpeg indexing routine * src/testpixbuf.c (main): fix up the file routines a little so that you can load multiple files given the file names
* More fixes. See ChangeLogMark Crichton1999-07-151-38/+32
| | | | More fixes. See ChangeLog
* Massive update...Mark Crichton1999-07-081-0/+148
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