summaryrefslogtreecommitdiff
path: root/source/fitz/load-gif.c
AgeCommit message (Collapse)Author
2017-10-12Make image loading use const data pointers.Tor Andersson
2017-07-19Add spots to fz_pixmaps.Robin Watts
Update separations interface further to cope with whether spots should be rendered separately, or as composite colors.
2017-04-27Include required system headers.Tor Andersson
2017-03-22Rename fz_putc/puts/printf to fz_write_*.Tor Andersson
Rename fz_write to fz_write_data. Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*. Be consistent in naming: fz_write_* calls write to fz_output. fz_append_* calls append to fz_buffer. Update documentation.
2016-12-26Bug 697362: GIF frames use LZW encoding similar to TIFF.Sebastian Rasmussen
Commit c0759acc6e5bd8167ab4983fc51eb1212da6a216 introduced a laxer LZW encoding. The bug shows that this may also apply to GIF images.
2016-11-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-10-16gif: Do not paste frame data if frame and image do not overlap.Sebastian Rasmussen
2016-10-16gif: Handle frames bigger than image correctly.Sebastian Rasmussen
The existing fix for bug 697161 introduced in commit 651c9f1d93c81c84deaf76debec0a30e54a67d7e was broken as frames would be constrained to the image size - 1. Now we decompress all available data, not suggesting an uncompressed size, but still checking the size after the uncomprsseion.
2016-10-16gif: Constrain frames to image boundaries.Sebastian Rasmussen
2016-09-27Bug 697163: gif: Fix integer overflow in image dimensions.Sebastian Rasmussen
2016-09-27Bug 697162: gif: Color index must be inside color table.Sebastian Rasmussen
2016-09-27Bug 697161: gif: Frames may not be bigger than the image.Sebastian Rasmussen
2016-09-27Bug 697160: gif: Transparency index must be inside color table.Sebastian Rasmussen
2016-09-26gif: If decompression fails, don't rely on uninitialized buffer data.Sebastian Rasmussen
2016-09-26gif: Use frame size when parsing a frame, not size of entire image.Sebastian Rasmussen
2016-06-17Use 'size_t' instead of int as appropriate.Robin Watts
This silences the many warnings we get when building for x64 in windows. This does not address any of the warnings we get in thirdparty libraries - in particular harfbuzz. These look (at a quick glance) harmless though.
2016-06-14Update TIFF LZW decode.Robin Watts
TIFF 5.0 uses a slightly laxer set of rules for TIFF decode. Specifically, when we hit the maximum code, we are not required to send a clear code immediately, but it can overrrun. We don't bother storing codes > 12 bits, because they can never be used. This avoids the need to extend the table.
2016-05-24fz_pixmap revamp: add stride and make alpha optionalRobin Watts
fz_pixmaps now have an explicit stride value. By default no change from before, but code all copes with extra gaps at the end of the line. The alpha data in fz_pixmaps is no longer compulsory. mudraw: use rgb not rgba (ppmraw), cmyk not cmyka (pkmraw). Update halftone code to not expect alpha plane. Update PNG writing to cope with alpha less input. Also hide repeated params within the png output context. ARM code needs updating.
2016-04-27Remove useless try/catch/rethrows.Tor Andersson
2016-04-27Fix 696649: remove fz_rethrow_message calls.Tor Andersson
2016-04-22gif: Render image into pixmap instead of temporary buffer.Sebastian Rasmussen
Also remove comment with links used for reference during implementation.
2015-08-20Fix a few signedness issues in gif decoder.Sebastian Rasmussen
2015-07-29Add support for parsing GIF images.Sebastian Rasmussen