Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-14 | epub: Add hyperlinks. | Tor Andersson | |
2016-10-14 | Be stricter when parsing css length units. | Tor Andersson | |
2016-10-14 | Drop all contexts the same way. | Sebastian Rasmussen | |
* Handle multiple calls to fz_drop_colorspace_context() and fz_drop_font_context(). * Allow missing context in call to fz_drop_aa_context() and fz_drop_glyph_cache_context(). * Only drop font context objects when dropping the last reference. * Avoid unnecessary NULL checks. | |||
2016-10-14 | pnm: Workaround for b/w PAM images with packed samples. | Sebastian Rasmussen | |
2016-10-14 | pnm: Support b/w PAM images with alpha. | Sebastian Rasmussen | |
2016-10-14 | pnm: PAM images have component inverted compared to PNM. | Sebastian Rasmussen | |
2016-10-14 | pnm: Premultiply alpha for use in pixmap. | Sebastian Rasmussen | |
2016-10-14 | pnm: Better guesses when tuple type is not specified. | Sebastian Rasmussen | |
2016-10-14 | pnm: Interpret binary b/w image samples correctly. | Sebastian Rasmussen | |
Commit c2acdba7e9b72e18afdd3aa8dfdf66088b1ea1be mistakenly inverted the interpretation of samples for both both binary and ascii b/w PNM images when, at the time, there was only a mistake for ascii images. | |||
2016-10-14 | pnm: Prefer enum to strings when parsing tuple type. | Sebastian Rasmussen | |
2016-10-14 | pnm: Prefer enum to strings when parsing header tokens. | Sebastian Rasmussen | |
2016-10-14 | pnm: Throw exception if image is too big. | Sebastian Rasmussen | |
2016-10-14 | pnm: Cosmetic reordering of code. | Sebastian Rasmussen | |
2016-10-13 | Bug 696885: Handle subsampled components in openjpeg decoder wrapper. | Robin Watts | |
Also add simple ycc to rgb conversion (stolen from Sebastian's code). | |||
2016-10-12 | Optimise fz_new_buffer_from_image_as_png. | Robin Watts | |
This function calls png_from_pixmap, an auxiliary function to do the work. This was done deliberately to allow us to make the optimisation of dropping the pixmap early if it is not required. This keeps the memory use down in the case when a color conversion is required. Sadly, I never appear to have made the trivial change to actually use it in this mode. Do that now. | |||
2016-10-13 | crypt: Handle null pointer when dropping crypt object. | Sebastian Rasmussen | |
Exposed by weird-jpx.pdf from bug 696885. | |||
2016-10-12 | Bug 697065: Fix bug in CMYK -> RGB pixmap converter. | Robin Watts | |
When caching the cmyk values used to generate a given rgb value, it is best to cache the values before processing. | |||
2016-10-12 | Fix leak in fz_load_jpx_info. | Robin Watts | |
2016-10-12 | Bug 697151: Pacify valgrind when reading padding while unpacking tiles | Sebastian Rasmussen | |
If e.g. an 18 x 11 PNG image used 1 bit depth and a single component the source data fed to fz_unpack_tile() would have padding bits at the end of each line of whole bytes, because 18 bits is not a multiple of 8. The optimized 1 component versions of fz_unpack_tile() for a bit depth of 1 deliberately read the padding when doing the table lookups, knowing that this does not matter because of the construction of the table. Valgrind is incapable of understanding this, so we provide some extra masking (used only in PACIFY_VALGRIND builds) that explicitly mask off the invalid bits. | |||
2016-10-12 | css: Remove unused variables. | Tor Andersson | |
2016-10-12 | svg: Remove newlines from fz_warn messages. | Tor Andersson | |
2016-10-12 | Remove unused function. | Tor Andersson | |
2016-10-12 | Use pool allocator when parsing CSS. | Tor Andersson | |
Fixes memory leaks when parsing throws exceptions and saves a lot of tiny mallocs for objects that have common life times. | |||
2016-10-12 | Bug 696958: parse css hex colors that are missing the '#' prefix. | Tor Andersson | |
2016-10-12 | Bug 696958: Workarounds for 'rem' and 'ch' units in epub. | Tor Andersson | |
2016-10-12 | Remove superfluous context null checks. | Tor Andersson | |
Code MUST pass a non-null context to all functions. Checking ctx for null and failing silently is no more useful than segfaulting. fz_keep_imp and fz_drop_imp handle NULL pointers safely, so the NULL checks for this can also be dropped at the same time. | |||
2016-10-12 | Fix (harmless) typo in function prototypes. | Tor Andersson | |
2016-10-12 | Split fz_html into fz_html and fz_html_box for nodes. | Tor Andersson | |
Removes the need to carry fz_pool along in all boxes. | |||
2016-10-12 | Bug 697012: Avoid overflow in xps_parse_real_num. | Robin Watts | |
2016-10-12 | Bug 696939: Fix mutool info -I flag. | Robin Watts | |
When using -I without -X we were not seeing the expected images listed. Adopt the solution suggested by the bug reporter. Many thanks! | |||
2016-10-12 | Change code from using bandheight to using band_height. | Robin Watts | |
Keep to our naming conventions. | |||
2016-10-12 | Regularize band writer interface. | Robin Watts | |
We have various functions that, for different image formats, write a header, then a band, then (sometimes) a trailer. Push them all through a single interface. This change also fixes potential problems caused by the trailer writing being an implicit destructor, which can cause problems in cleanup code if the trailer writing throws an error. | |||
2016-10-12 | Always call fz_drop_document() to drop the document. | Sebastian Rasmussen | |
2016-10-11 | Free document in fz_drop_document(), not in subclassing documents. | Sebastian Rasmussen | |
2016-10-10 | Bug 697050: Allow mutool extract to keep JPEGs as JPEGs. | Robin Watts | |
If an image is a JPEG (without a mask, or a colorkey, or using decode), then extract it as such. | |||
2016-10-10 | PDF Images: Add a flag for if we need to apply the decode array | Robin Watts | |
This avoids us having to check the entire array each time, and makes the next commit simpler. | |||
2016-10-10 | Remove unused variable. | Robin Watts | |
2016-10-10 | Bug 697075: Fix tile repeat calculations. | Robin Watts | |
When calculating how many repeats of tiles are required, we need to allow for the fact that the bbox of the tile can be larger than the repeat step in PDF. The calculation to do this before was incorrectly being done using the scissor bbox, when it should have been the tile bbox. | |||
2016-10-10 | Bug 697123: epub: Adjust anchor positions using fragments. | Robin Watts | |
2016-10-10 | Simplify linked list handling in epub-doc.c | Robin Watts | |
2016-10-10 | Remove needless parameter passing. | Robin Watts | |
2016-10-10 | HTML: Keep 'Anchors' in the html box list. | Robin Watts | |
Keep them as 'FLOW' entries rather than box entries. Although they technically enclose areas of text, we only ever use them as points. Thanks to Tor for fixing this code. | |||
2016-10-10 | Use more bitfields in HTML. | Robin Watts | |
Saves 12 bytes per fz_html, and we have a lot. | |||
2016-10-10 | Change HTML agent to use bitfields rather than chars. | Robin Watts | |
Saves 8 bytes on every css_style (and we have a lot of those). | |||
2016-10-09 | Open document file in fz_open_document(). | Sebastian Rasmussen | |
This relieves all document formats from reimplementing opening a fz_stream unless the format wants to do something more than just opening the raw file. | |||
2016-10-09 | html: Fix leak of buffer when opening as stream. | Sebastian Rasmussen | |
2016-10-09 | html: Add missing function pointer when opening as stream. | Sebastian Rasmussen | |
2016-10-09 | cbz: Remove unused variable. | Sebastian Rasmussen | |
2016-10-09 | Fix HAVE_JPEGXR and HAVE_LURATECH code for colorspace changes. | Sebastian Rasmussen | |
2016-10-07 | Ensure we always layout the document before loading the outlines. | Robin Watts | |
Intended as a fix for bug 697123, but the problem turns out to be something else entirely. Nonetheless, this is worth having. |