summaryrefslogtreecommitdiff
path: root/source/fitz
AgeCommit message (Collapse)Author
2016-11-04Avoid warning in memento builds.Robin Watts
2016-11-04Avoid warnings in 64bit windows builds of luratech bindings.Robin Watts
2016-11-04Squash 64bit warning in Commercial JBIG2 bindings.Robin Watts
2016-11-03Memento: Silence MSVC warningsRobin Watts
For security and x64 builds.
2016-11-03Fix Luratech builds on MSVC.Robin Watts
ulong is not defined on windows.
2016-11-03Fix signed/unsigned and size_t/int/fz_off_t warnings.Robin Watts
All seen in MSVC, mostly in 64bit builds.
2016-11-02Don't check for NULL before calls to fz_free.Sebastian Rasmussen
2016-11-02Do not drop compressed buffer twice in case of error.Sebastian Rasmussen
Previously, if fz_new_image() threw an exception both fz_new_image_from_compressed_buffer() and fz_new_image_from_buffer attempted to drop the supplied fz_compressed_buffer. Now the full responsibility is handed over to fz_new_image_from_compressed_buffer().
2016-11-02Explain conversion to RGB in jpx/jxr image loading.Sebastian Rasmussen
2016-11-01Don't dereference NULL subarea when rasterizing display list images.Tor Andersson
2016-11-01tiff: Plug leak where superflous pixmaps was created.Sebastian Rasmussen
2016-10-28Clean up link destination handling.Tor Andersson
All link destinations should be URIs, and a document specific function can be called to resolve them to actual page numbers. Outlines have cached page numbers as well as string URIs.
2016-10-26Fix 697215: Script specific punctuation blocks.Tor Andersson
Ideographic and full-width punctuation inherit the script from the surroundings, like all other punctuation. This does not play well with our fallback font lookups. Add special cases for ideographic and fullwidth unicode blocks.
2016-10-26Change space detection heuristic.Tor Andersson
Reduce the amount of extra space required to insert a synthetic space character, but check the sign so we only trigger on extra space, never on reduced space.
2016-10-26Update ios/android to use new way of passion stext options.Sebastian Rasmussen
In addition, make all callers passing 0 as a point pass NULL instead.
2016-10-26tiff: Drop pixmap when exception is thrown.Sebastian Rasmussen
Also don't check for NULL unnecessarily.
2016-10-26tiff: Always set colorspace when reading image info.Sebastian Rasmussen
Commit 3059b6908208fbb9547e6876332a5b42a6406d1a accidentally caused colorspace to not be set when reading image information.
2016-10-26Introduce options for structured text.Sebastian Rasmussen
2016-10-26Don't use local function, use fz_option_eq().Sebastian Rasmussen
2016-10-24Don't return overlapping search results.Tor Andersson
2016-10-24Use correct coordinates for synthesized space characters in stext device.Tor Andersson
2016-10-24Fix 697236: Don't update pen position inside clusters in stext device.Tor Andersson
This caused us to introduce extra space characters after clusters that come from ligatures such as 'fi' which are composed of two characters but only one glyph.
2016-10-24Bug 697235: Change default values for stext options.Sebastian Rasmussen
Previously it was not possible to disable all options, but now this is the default.
2016-10-24When not preserving stext whitespace, only emit space character.Sebastian Rasmussen
Previously both a space character and the original whitespace character were emitted.
2016-10-24When not preserving stext ligatures, remember actual character added.Sebastian Rasmussen
Previously, when the ligatures were not preserved, the ligature glyph itself was remembered but not each individual character it expanded to.
2016-10-24Fix cluster timeouts with test file.Robin Watts
tests_private/pdf/sumatra/1297_-_interpolate_at_lower_resolutions.pdf times out in the cluster. This is due to us having empty t3 glyphs defined that define d1 rectangles that are wildly different to the default font bbox. Add code to spot that t3 glyphs are empty, and to use a tiny font bbox for them. (It might be nicer to drop the empty display lists, but then this produces knock on problems further on, where non-existent display lists lead to NULL pixmaps, which lead to us think that renders failed etc).
2016-10-24Bug 697234: Fix slow rendering.Robin Watts
fz_contains_rect was improperly implemented (the logic in the final test was reversed). This was causing us to use the font bbox for some t3 glyphs, resulting in massive bboxes, that could never be cached. Rerendering these each time was taking ages, even though there was nothing actually in them.
2016-10-19Rename internal headers to follow pattern *-imp.h.Sebastian Rasmussen
2016-10-19Make document handler declarations internal.Sebastian Rasmussen
2016-10-18Internal drop functions don't need to check for NULL.Sebastian Rasmussen
2016-10-18All external drop functions handles NULL.Sebastian Rasmussen
2016-10-18Avoid checking argument to fz_drop_*()/fz_free().Sebastian Rasmussen
As fz_drop_*()/fz_free() all must handle NULL.
2016-10-18Drop scaled pixmap later in draw_fill_image_mask().Sebastian Rasmussen
Following the pattern in draw_fill_image().
2016-10-18Remove unused luminosity.Sebastian Rasmussen
2016-10-18tiff: Support stripped YCbCr images.Sebastian Rasmussen
2016-10-18tiff: Cosmetic cleanup of code.Sebastian Rasmussen
In preparation for YCbCr support, rename some functions and make variable names more generic. Also remove fz_ prefix from static functions.
2016-10-16tiff: Plug pixmap leak should conversion fail.Sebastian Rasmussen
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-10-14Drop 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-14pnm: Workaround for b/w PAM images with packed samples.Sebastian Rasmussen
2016-10-14pnm: Support b/w PAM images with alpha.Sebastian Rasmussen
2016-10-14pnm: PAM images have component inverted compared to PNM.Sebastian Rasmussen
2016-10-14pnm: Premultiply alpha for use in pixmap.Sebastian Rasmussen
2016-10-14pnm: Better guesses when tuple type is not specified.Sebastian Rasmussen
2016-10-14pnm: 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-14pnm: Prefer enum to strings when parsing tuple type.Sebastian Rasmussen
2016-10-14pnm: Prefer enum to strings when parsing header tokens.Sebastian Rasmussen
2016-10-14pnm: Throw exception if image is too big.Sebastian Rasmussen