summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-jpeg.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Figured out problem with loading Progressive JPEG's progressively (sayMichael Fulbright1999-11-091-9/+11
| | | | | | | | | | | | 1999-11-09 Michael Fulbright <drmike@redhat.com> * src/io-jpeg.c (image_load_increment): Figured out problem with loading Progressive JPEG's progressively (say that 10 times fast). Currently for Progressive JPEG's the entire image is loaded before it is displayed. libjpeg supports a fancier mechanism which I may implement later. With these changes all JPEG formats appear to load properly for me.
* Prettied up code slightly. Start of pnm loader (from file andMichael Fulbright1999-11-051-5/+2
| | | | | | | | | 999-11-04 Michael Fulbright <drmike@redhat.com> * src/io-jpeg.c: Prettied up code slightly. * src/io-pnm.c: Start of pnm loader (from file and progressively). Doesn't do much yet (will finish tomorrow). * src/gdk-pixbuf-io.c: Added pnm to structure of known types.
* Add update_func callback. Call updated callback when new graphic dataMichael Fulbright1999-11-041-13/+26
| | | | | | | | 1999-11-04 Michael Fulbright <drmike@redhat.com> * src/io-jpeg.c (image_begin_load): Add update_func callback. * src/io-jpeg.c (image_load_increment): Call updated callback when new graphic data decoded.
* Further removal of bugginess in local buffering code. Handles grayscaleMichael Fulbright1999-11-031-21/+52
| | | | | | | | | | | 1999-11-03 Michael Fulbright <msf@redhat.com> * src/io-jpeg.c (image_load_increment): Further removal of bugginess in local buffering code. Handles grayscale jpegs correctly now. * src/io-jpeg.c (image_load_stop): Was freeing local context for jpeg library before calling jpeg_decompres_finish ().
* Fixed code which moved buffer around as new data comes in to workMichael Fulbright1999-11-031-21/+22
| | | | | | | | 1999-11-03 Michael Fulbright <drmike@redhat.com> * src/io-jpg.c image_load_increment(): Fixed code which moved buffer around as new data comes in to work properly. JPEG progressive loading should be working now except for grayscale JPEG's, which I
* revertElliot Lee1999-11-021-25/+23
|
* Reorganize gdk_pixbuf_loader_write into three functions, and eliminateElliot Lee1999-11-021-25/+27
| | | | | | * src/gdk-pixbuf-loader.c: Reorganize gdk_pixbuf_loader_write into three functions, and eliminate duplication of code from write() and close(). Also fix bug where the 128-byte header was being written twice.
* Fixed small oopsie with grayscale jpeg handling - still not working for ↵Michael Fulbright1999-10-291-4/+9
| | | | progressive
* Removed erroneous comments.Michael Fulbright1999-10-291-10/+2
| | | | Dr Mike <drmike@redhat.com>
* image_load_increment(): Fixed bug when image width was not a multiple of 4Michael Fulbright1999-10-291-2/+2
| | | | | | | | 1999-10-29 Michael Fulbright <drmike@redhat.com> * src/io-jpeg.c: image_load_increment(): Fixed bug when image width was not a multiple of 4 - always use the gdk_pixbuf rowstride to increment pointers!
* Added first cut at progressive jpeg loading. Currently does not handleMichael Fulbright1999-10-291-19/+378
| | | | | | | | | | | 999-10-29 Michael Fulbright <drmike@redhat.com> * src/io-jpeg.c: Added first cut at progressive jpeg loading. Currently does not handle either progressive jpeg files (jpeg files with multiple scans at different quality settings), but I plan on adding this support soon. These are fairly rare in my experience, so it shouldn't slow people down too much. Grayscale jpegs also don't work but that should be easy to fix.
* more work on the incremental loadingJonathan Blandford1999-10-261-1/+2
|
* Removed the unref_fn field. Now all memory management of the buffer isFederico Mena Quintero1999-10-201-70/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-8/+8
| | | | | | 1999-10-18 Federico Mena Quintero <federico@redhat.com> * src/*: Reindented to use the GNOME Indentation.
* Add pixbuf_duplicate,Michael Meeks1999-09-221-10/+5
| | | | | | Fix 'scale' API, Add gdk_pixbuf_new, clean io modules a tad.
* Set the initial ref_count to 1.Federico Mena Quintero1999-09-171-1/+1
| | | | | | | | | | | | | | | | | | | 1999-09-17 Federico Mena Quintero <federico@redhat.com> * src/io-bmp.c (image_load): Set the initial ref_count to 1. * src/io-gif.c (image_load): Likewise. * src/io-jpeg.c (image_load): Likewise. * src/io-png.c (image_load): Likewise. * src/io-tiff.c (image_load): Likewise. * src/io-xpm.c (_pixbuf_create_from_xpm): Likewise. * src/gdk-pixbuf-io.c (gdk_pixbuf_load_image): Added an assertion for the ref_count to be != 0.
* Fixed compiler warnings. Fixed write to unallocated memory (row_ptr), andFederico Mena Quintero1999-08-091-2/+2
| | | | | | | | | | | | | 1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx> * src/io-png.c (image_save): Fixed compiler warnings. Fixed write to unallocated memory (row_ptr), and fixed its type as well. Take into account the ArtPixbuf's rowstride when assigning the row pointers. * src/gdk-pixbuf.c: Fixup includes. * src/gdk-pixbuf-io.c: Likewise.
* Fix a few memory leaks in the, most of them in error cases but one or twoLarry Ewing1999-07-191-1/+4
| | | | | | | | | | | 1999-07-18 Larry Ewing <lewing@gimp.org> * src/io-xpm.c: * src/io-gif.c: * src/io-png.c: * src/io-jpeg.c: Fix a few memory leaks in the, most of them in error cases but one or two in the common case. There are probably a few small ones left.
* add raph@gimp.org's fix to the jpeg indexing routineLarry Ewing1999-07-151-2/+2
| | | | | | | | | | 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
* Fixed crash-on-loading bug (width and height are not set untilMark Crichton1999-07-121-1/+3
| | | | | | | Fixed crash-on-loading bug (width and height are not set until decompression starts) Mark
* Added loader for jpeg->RGB.Michael Zucci1999-06-291-0/+129
Based really loosely on imlib's io-jpeg.c